fdisk shows wrong partition type
Hello
I just formatted a disk from terminal: I deleted the old partitions, created the new ones and saved the changes. In the end, I got the following warning, which I guess is pretty normal: Quote:
What bothers me is this: Code:
root@Sheevaplug:~# fdisk -l /dev/sda1 I guess is because the kernel doesn't use the new partition table, but rebooting didn't help and neither did giving partprobe. If I give partprobe /dev/sda1, I get this: Code:
root@Sheevaplug:~# partprobe /dev/sda1 What is wrong? The system is actually an external hard drive connected through eSata and no operative systems are on it. |
Basically you created a partition table on the first partition /dev/sda1p1 vs the MBR. When using fdisk make sure you use the drive device ID i.e. /dev/sda vs /dev/sda1.
Since you just formatted the drive you can recreate the partition table on the MBR and reformat sda1. |
Unless you have been particularly diligent in building /dev/sda1 (the partition) as a block device, none of the above commands are valid.
Try Code:
fdisk /dev/sda |
using fdisk on /dev/sda made everything work like a charm.
Thank you! |
All times are GMT -5. The time now is 06:53 AM. |