Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Command : cfdisk -P s /dev/sdb gives the output FATAL ERROR: Bad primary partition 0: Partition ends in the final partial cylinder

while "Parted -l" successfully lists the partition table for the drive.

Plz explain the FATAL ERROR part. How can i list the partition table using the cfdisk command itself?

share|improve this question
add comment

1 Answer

The partition table might be invalid. How did you partition this disk? Some OSes and tools do make technically invalid partitions. They still work with that OS, but do not play well with other OSes. This could be what is happening.

You could try plain old fdisk:

fdisk -lu /dev/sdb

I've seen cfdisk be quite strict(this is good in most cases), but fdisk or others will be able to show disk info rather than exiting with an error - as you have seen with parted.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.