#cfdisk -P st /dev/hda
Segmentation fault

#cfdisk -v
cfdisk 2.11n

My testing indicates this is caused when the MBR does not have a valid
signature, which could be caused when somebody does a 'dd if=/dev/zero
of=/dev/hda' command.  After a valid signature is written (with cfdisk
or any other fdisk program), the fault goes away.

A suggestion would be to test for this condition and handle as you see
fit?

BTW, I bring this to your attention because I believe
'cfdisk -P st <dev>' produces the most thorough and easy to read
display of the partition table.  I use it extensively to test many
different drives that come to me with unknown contents.  Also, I
wish Redhat didn't remove it from their 7.1 util-linux rpm. (oh, well.
sources are fine.)

Thank you for your time.



_______________________________________________
Bug-fileutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-fileutils

Reply via email to