时间:2015-02-03 15:20:46 作者:qipeng 来源:系统之家 1. 扫描二维码随时看资讯 2. 请使用手机浏览器访问: https://m.xitongzhijia.net/xtjc/20150203/36851.html 手机查看 评论 反馈
但是挂载出错了。 下面报了一个错,
Partition table entries are not in disk order
说硬盘分区表不在硬盘的顺序里面,意思就是移动硬盘的分区表乱了,
既然是这样就简单了, 用fdisk来重建分区表即可, fdisk 挂载设备, 然后f w 就可以更新分区表了。
root@debian:/# fdisk /dev/sdb
Command (m for help): x
Expert command (m for help): f
Done.
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
i change the disk identifier
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): p
Disk /dev/sdb: 255 heads, 63 sectors, 121601 cylinders
Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
1 00 1 1 0 254 63 522 63 8401932 0b
2 00 0 1 523 254 63 1023 8401995 201519360 0f
3 00 254 63 1023 254 63 1023 209921355 629764065 07
4 00 254 63 1023 254 63 1023 839685420 1113834645 07
5 00 1 1 523 254 63 1023 63 201519297 07
Expert command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
这里就更新成功了分区表, 因为我这是移动硬盘,上面并没有挂载操作系统OS, 所以不需要更新挂载/etc/fstab 和/boot/grub/menu.list 这几个文件的对应挂载。
再次执行fdisk -l 发现已经成功挂载, 直接桌面可以直接点进去了。
Disk /dev/sdb: 1000.2 GB, 1000204138496 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953523708 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: 0x6b7612b3
Device Boot Start End Blocks Id System
/dev/sdb1 63 8401994 4200966 b W95 FAT32
/dev/sdb2 8401995 209921354 100759680 f W95 Ext’d (LBA)
/dev/sdb3 209921355 839685419 314882032+ 7 HPFS/NTFS/exFAT
/dev/sdb4 839685420 1953520064 556917322+ 7 HPFS/NTFS/exFAT
/dev/sdb5 8402058 209921354 100759648+ 7 HPFS/NTFS/exFAT
df 看下挂载点成功挂载
root@debian:/# df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 328236772 10801844 300761392 4% /
udev 10240 0 10240 0% /dev
tmpfs 813700 972 812728 1% /run
/dev/disk/by-uuid/4c487d8c-396c-4601-b76d-eff7118d6775 328236772 10801844 300761392 4% /
tmpfs 5120 0 5120 0% /run/lock
tmpfs 4446660 26196 4420464 1% /run/shm
/dev/sdb1 4192756 578312 3614444 14% /media/usb0
/dev/sdb5 100759648 14680144 86079504 15% /media/T1
/dev/sdb3 314882032 35480048 279401984 12% /media/T2
/dev/sdb4 556917320 193748248 363169072 35% /media/T3
上面就是Debian挂载移动硬盘读取分区报错的解决方法的介绍了,你需要查看下移动硬盘的挂载状况,再使用fdisk重建分区,重新挂载即可。
发表评论
共0条
评论就这些咯,让大家也知道你的独特见解
立即评论以上留言仅代表用户个人观点,不代表系统之家立场