On 04/27/2011 01:15 PM, Pasi Kärkkäinen wrote:
On Wed, Apr 27, 2011 at 10:18:28AM -0500, Robert Nichols wrote:
It would make life so much easier if fdisk would simply accept those same numbers as Kilobytes, but alas it keeps trying to round up to the next "cylinder" boundary, so you have to fiddle a bit to get it right. Yes, fdisk is a very old, crufty, and slightly buggy program. Newer programs are either much too "user-friendly" (e.g., cfdisk "enter partition size in decimal magabytes"), or way too dangerous (e.g., parted, which writes each change out to disk immediately without giving you a chance to verify what it just did).
sfdisk has "dump" mode, and it can also import old dump to new disk.
That dump mode doesn't help if the partition table is currently munged, and sfdisk is extraordinarily unforgiving of the tiniest mistake in human-generated input.