17
7
How to move a partition to the beginning of the disk a bit? Parted wants a filesystem for some reason (I don't know why), I want just to shift all sectors left...
r@l:15:32:45:~# parted /dev/sdb
GNU Parted 2.3
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: HGST HTS 541010A9E680 (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 32.2GB 32.2GB primary fat32
2 32.2GB 37.6GB 5360MB primary
3 37.6GB 1000GB 963GB primary
(parted) move 3
WARNING: you are attempting to use parted to operate on (move) a file system.
parted's file system manipulation code is not as robust as what you'll find in
dedicated, file-system-specific packages like e2fsprogs. We recommend
you use parted only to manipulate partition tables, whenever possible.
Support for performing most operations on most types of file systems
will be removed in an upcoming release.
Error: Could not detect file system.
gparted
did it well for me in a simular situation. – palacsint – 2017-10-11T11:49:53.977Maybe finally the in the end they have implemented this? – Vi. – 2017-10-11T17:18:33.707
@Vi. I don't think gparted can do this yet (no LUKS support afaik), however KDE Partition Manager can and it's fantastically simple these days, see here
– Sam3000 – 2018-07-28T21:47:28.8771Parted vesion 3.2 does not have "move" as an option. – Lenne – 2018-09-14T23:21:11.090
Are you using the partitions without FS? You can just set the FS to anyone with
fdisk
and then move them. – Peter – 2013-01-24T13:10:57.597Thus is actually a LUKS container. But I don't think a partition mover should ever look inside the filesystem. – Vi. – 2013-01-24T13:25:03.293