ubuntu 12.04
分区:
/dev/sda 1 / 主分区
/dev/sda2 扩展分区
/dev/sda6 swap swap
/dev/sda5 /home 逻辑分区
sudo fdisk -l
Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders, total 78165360 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00030f7d
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 38086655 19042304 83 Linux
/dev/sda2 38088702 78163967 20037633 5 Extended
/dev/sda5 76165120 78163967 999424 82 Linux swap / Solaris
/dev/sda6 38088704 76165119 19038208 83 Linux
Partition table entries are not in disk order
分割磁区的位置顺序没有依照次序,这常发生于删除前面的分割磁区后又再次划分新的分割区所引起的问题
1)在win7下删除分区或格式化都出错
2)尝试了多种工具后都出现错误无法删除分区或格式化
3)在ubuntu live CD下 用fdisk删除分区出错
修复分区顺序:
ubuntu@ubuntu:~$ sudo fdisk /dev/sda
Command (m for help): m
Command action
x extra functionality (experts only)
Command (m for help): x
Expert command (m for help): m
Command action
f fix partition order
Expert command (m for help): f
Done.
Expert command (m for help): r
Command (m for help): p
Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders, total 78165360 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00030f7d
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 38086655 19042304 83 Linux
/dev/sda2 38088702 78163967 20037633 5 Extended
/dev/sda5 38088704 76165119 19038208 83 Linux
/dev/sda6 76165120 78163967 999424 82 Linux swap / Solaris
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
Reboot 后分区依旧没变
在系统修改过的配置或删除数据 reboot后都会还原...

硬盘报废??小白一枚