You are not logged in.

#1 2020-06-21 09:30:36

JimDeadlock
Member
From: London
Registered: 2019-03-20
Posts: 83

[SOLVED] Parted - moving partition to the left

I have a disk with a single partition and some free space at the start. I want to move the partition to the start (left) and then grow it to fill the disk. There is no 'move' command so how do I accomplish this?

Last edited by JimDeadlock (2020-06-21 10:42:21)

Offline

#2 2020-06-21 10:06:46

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [SOLVED] Parted - moving partition to the left

Two ways if you care about the existing data:

  1. Backup, repartition, restore

  2. Backup, use gparted to move

Two ways if you don't care about the existing data:

  1. Repartition

  2. Use gparted to move

Last edited by Mr.Elendig (2020-06-21 10:09:09)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2020-06-21 10:42:03

JimDeadlock
Member
From: London
Registered: 2019-03-20
Posts: 83

Re: [SOLVED] Parted - moving partition to the left

It seem silly that Gparted has a move function but Parted doesn't. Oh well, thanks for the clarification.

The machine the disk is on is headless, that's why I was trying to use Parted.

Last edited by JimDeadlock (2020-06-21 10:43:46)

Offline

#4 2020-06-21 10:48:20

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [SOLVED] Parted - moving partition to the left

Parted used to have a move function, but it was removed together with the bitrotted and broken filesystem operations almost a decade ago. Also note that parted and gparted, despite the name, are two different projects.

Last edited by Mr.Elendig (2020-06-21 10:48:35)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB