歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 解決Partition table entries are not in disk order 的問題

解決Partition table entries are not in disk order 的問題

日期:2017/2/28 16:08:48   编辑:Linux教程

解決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 文件,以免發生無法開機的問題。

Copyright © Linux教程網 All Rights Reserved