I'm attaching a log which shows how sfdisk thinks the disk is smaller than it really is. In particular, I can dump "sfdisk -d" the partition table and then sfdisk will refuse to use its own dump as input on the basis that the disk is not large enough. ===== $ sfdisk -v sfdisk (util-linux-ng 2.17-rc3) $ cat /sys/block/sda/size 184549376 $ sfdisk -L -uS -l /dev/sda Disk /dev/sda: 11487 cylinders, 255 heads, 63 sectors/track Units = sectors of 512 bytes, counting from 0 Device Boot Start End #sectors Id System /dev/sda1 2048 2099199 2097152 83 Linux /dev/sda2 2099200 14682111 12582912 83 Linux /dev/sda3 14682112 99616767 84934656 83 Linux /dev/sda4 99616768 184549375 84932608 83 Linux $ sfdisk -d /dev/sda > part.dump $ cat part.dump # partition table of /dev/sda unit: sectors /dev/sda1 : start= 2048, size= 2097152, Id=83 /dev/sda2 : start= 2099200, size= 12582912, Id=83 /dev/sda3 : start= 14682112, size= 84934656, Id=83 /dev/sda4 : start= 99616768, size= 84932608, Id=83 $ sfdisk -L /dev/sda < part.dump Checking that no-one is using this disk right now ... OK Disk /dev/sda: 11487 cylinders, 255 heads, 63 sectors/track Old situation: Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/sda1 0+ 130- 131- 1048576 83 Linux /dev/sda2 130+ 913- 784- 6291456 83 Linux /dev/sda3 913+ 6200- 5287- 42467328 83 Linux /dev/sda4 6200+ 11487- 5287- 42466304 83 Linux Warning: given size (84932608) exceeds max allowable size (84921887) <===== sfdisk: bad input <===== $ $ sfdisk -L --force /dev/sda < part.dump Checking that no-one is using this disk right now ... OK Disk /dev/sda: 11487 cylinders, 255 heads, 63 sectors/track Old situation: Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/sda1 0+ 130- 131- 1048576 83 Linux /dev/sda2 130+ 913- 784- 6291456 83 Linux /dev/sda3 913+ 6200- 5287- 42467328 83 Linux /dev/sda4 6200+ 11487- 5287- 42466304 83 Linux Warning: given size (84932608) exceeds max allowable size (84921887) New situation: Units = sectors of 512 bytes, counting from 0 Device Boot Start End #sectors Id System /dev/sda1 2048 2099199 2097152 83 Linux /dev/sda2 2099200 14682111 12582912 83 Linux /dev/sda3 14682112 99616767 84934656 83 Linux /dev/sda4 99616768 184549375 84932608 83 Linux Warning: partition 4 extends past end of disk <================== Successfully wrote the new partition table Re-reading the partition table ... If you created or changed a DOS partition, /dev/foo7, say, then use dd(1) to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1 (See fdisk(8).) $ sfdisk -L -uS -l /dev/sda Disk /dev/sda: 11487 cylinders, 255 heads, 63 sectors/track Units = sectors of 512 bytes, counting from 0 Device Boot Start End #sectors Id System /dev/sda1 2048 2099199 2097152 83 Linux /dev/sda2 2099200 14682111 12582912 83 Linux /dev/sda3 14682112 99616767 84934656 83 Linux /dev/sda4 99616768 184549375 84932608 83 Linux $ -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html