I'm trying to recreate a partition I deleted, but parted refuses, and instead offers me some bogus location. I'm using the same size parameters the partition had before it was deleted.
# parted /dev/sda unit B print free Model: ATA WDC WD10EACS-00D (scsi) Disk /dev/sda: 1000204886016B Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 32256B 16779571199B 16779538944B Free Space 2 16779571200B 28311413759B 11531842560B primary ext4 28311413760B 28311551999B 138240B Free Space 3 28311552000B 57671679999B 29360128000B primary ntfs 4 57671680000B 1000204886015B 942533206016B extended lba 5 57672728576B 501709012991B 444036284416B logical ext2 501709012992B 501709178879B 165888B Free Space 6 501710061568B 507999420415B 6289358848B logical linux-swap(v1) 8 507999945728B 738061930495B 230061984768B logical ext4 7 738061931008B 993915526143B 255853595136B logical 9 993915526656B 1000204886015B 6289359360B logical linux-swap(v1) # parted /dev/sda unit B mkpart l ntfs 1048576 16779313151 Warning: You requested a partition from 1048576B to 16779312640B. The closest location we can manage is 57671681024B to 57671681024B. Is this still acceptable to you? Yes/No? n Here is some diagnostic output that I hope will be useful. # parted /dev/sda unit s print Model: ATA WDC WD10EACS-00D (scsi) Disk /dev/sda: 1953525168s Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 2 32772600s 55295729s 22523130s primary ext4 3 55296000s 112639999s 57344000s primary ntfs 4 112640000s 1953525167s 1840885168s extended lba 5 112642048s 979900415s 867258368s logical ext2 6 979902464s 992186367s 12283904s logical linux-swap(v1) 8 992187394s 1441527207s 449339814s logical ext4 7 1441527209s 1941241261s 499714053s logical 9 1941241263s 1953525167s 12283905s logical linux-swap(v1) # parted -v parted (GNU parted) 2.3 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by <http://git.debian.org/?p=parted/parted.git;a=blob_plain;f=AUTHORS>. Using gparted will allow me to create a partition in the free space, but I cannot safely recreate the partition with the units that gparted uses (because it may destroy data on the lost filesystem)