解决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

上一篇: debian忘记root密码的解决办法   下一篇: 命令行方式建立swap分区及swap策略修改

提交疑问

回顶部