fdisk blank disk chicken and egg problem...
Andre
armcc2000 at yahoo.com
Thu Feb 23 01:05:51 UTC 2006
fdisk in Busybox v1.1.0 won't let me create a partition table on a
disk which doesn't already contain one...
e.g.
pnx0106:# dd if=/dev/zero of=/dev/hda count=1
1+0 records in
1+0 records out
pnx0106:# fdisk /dev/hda
Disk /dev/hda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/hda doesn't contain a valid partition table
Even when the disk contains a valid partition table signature it
still doesn't work quite right (fdisk drops back to a prompt without
becoming interactive).
e.g.
pnx0106:# echo -e '\x55\xAA' | dd bs=1 seek=510 count=2 > /dev/hda
pnx0106:# fdisk /dev/hda
Disk /dev/hda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
pnx0106:#
fdisk in busybox v1.00 works as expected in both cases.
Andre
--
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the busybox
mailing list