解决Partition table entries are not in disk order 的问题
分割磁区的位置顺序没有依照次序,这常发生于删除前面的分割磁区后又再次划分新的分割区所引起的问题
问题:
[root@dbserver133 ~]# fdisk -l
Disk /dev/hda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 1275 10241406 83 Linux
/dev/hda2 1276 8688 59544922+ f W95 Ext'd (LBA)
/dev/hda3 * 8689 9964 10249470 bf Solaris
/dev/hda5 3826 7012 25599546 b W95 FAT32
/dev/hda6 7013 7649 5116671 83 Linux
/dev/hda7 7650 8493 6779398+ 83 Linux
/dev/hda8 8494 8688 1566306 82 Linux swap
/dev/hda9 1276 1529 2040192 82 Linux swap
/dev/hda10 1530 3823 18426523+ 83 Linux
Partition table entries are not in disk order
解决方法:
[root@dbserver133 ~]# fdisk /dev/hda
The number of cylinders for this disk is set to 9964.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): x
Expert command (m for help): m
Command action
b move beginning of data in a partition
c change number of cylinders
d print the raw data in the partition table
e list extended partitions
f fix partition order
g create an IRIX (SGI) partition table
h change number of heads
m print this menu
p print the partition table
q quit without saving changes
r return to main menu
s change number of sectors/track
v verify the partition table
w write table to disk and exit
Expert command (m for help): f
Done.
Expert command (m for help): r
Command (m for help): p
Disk /dev/hda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 1275 10241406 83 Linux
/dev/hda2 1276 8688 59544922+ f W95 Ext'd (LBA)
/dev/hda3 * 8689 9964 10249470 bf Solaris
/dev/hda5 1276 1529 2040192 82 Linux swap
/dev/hda6 1530 3823 18426523+ 83 Linux
/dev/hda7 3826 7012 25599546 b W95 FAT32
/dev/hda8 7013 7649 5116671 83 Linux
/dev/hda9 7650 8493 6779398+ 83 Linux
/dev/hda10 8494 8688 1566306 82 Linux swap
============另一篇============
如果你使用fdisk -l 来查看分区信息里出现了Partition table entries are not in disk order提示,这就说明你现在分区表中分区的顺序的硬盘物理顺序不一致,想要修复很简单。
声明:如果你对硬盘一窍不通,这个提示也不并不影响到你什么 ,那我建议你关了这个见面吧,毕竟分区表操作还是有一定风险的。
在终端执行以下命令:
fdisk /dev/sdb (用你的硬盘位置代替/dev/sdb)
有提示后输入 x 回车,
在命令列表中会有一项
f fix partition order
输入 f 回车
成功会提示 done.
然后输入 p 回车,查看调整后的分区表
最后输入 w 回车,这个命令是将之前的操作写入硬盘
重启之后就会启用新的分区表。
提示:最好在重启之前先将修改前后的分区表信息比较一下,查看引导分区和交换分区的路径是否变动,如果有变动还要更新 /etc/fstab 和 /boot/grub/menu.lst 文件,以免发生无法开机的问题。