I saw in https://unix.stackexchange.com/a/501410/ that gparted can move a partition in a disk.
Since gparted
is said to be a frontend of parted
, what is the corresponding command(s) using parted
to move a partition anywhere? Sorry, I only know parted
has resizepart
which only changes the end of a position, instead of moving a whole partition.
Thanks.
parted
now? If you can use something else, what would you use for moving a partition? – Tim Feb 22 '19 at 13:42gparted
. I avoid partitions anyway, so I never need to move or resize partitions; I use LVM everywhere, and skip partitions entirely on non-bootable disks. – Stephen Kitt Feb 22 '19 at 13:46/boot
on BIOS or U-boot systems), and one big partition occupying all the available space, which is used as a PV in LVM. On non-bootable disks, I use the entire disk as a PV, with no partitions at all. – Stephen Kitt Feb 22 '19 at 13:51/
and/home
are in different partitions? – Tim Feb 22 '19 at 13:53/dev/sda2
) is a PV, used in a VG, containing however many LVs you want (one for/
and one for/home
). – Stephen Kitt Feb 22 '19 at 14:01/
and another for/home
? Can that help to protect/
and/home
from each other? Can you reply to the linked question for how to use LVM to do that step by step? Much appreciated. I haven't used LVM before – Tim Feb 22 '19 at 14:02/
is messed up, you data in/home
can still be intact. Is my question understandable now? – Tim Feb 22 '19 at 14:23gparted
; typically, boot from a recovery USB stick with a GUI andgparted
. – Stephen Kitt Feb 27 '19 at 06:35