标题: fdisk重新分区后要求重启,重启时无法启动 [打印本页] 作者: 一点萤火 时间: 2015-05-03 01:23 标题: fdisk重新分区后要求重启,重启时无法启动 大家好,我在用fdisk删除新增分区时遇到些问题,内核无法重新取得分区表信息,用partprobe没有解决,重启也没有解决,详细情况如下,恳求大家帮我解答一下。比较长,谢谢大家有耐心看完。
我用fdisk p查到的原始分区情况如下; Device Boot Start End Blocks Id System
/dev/sda1 * 1 38 305203+ 83 Linux
/dev/sda2 39 4960 39535965 83 Linux
/dev/sda3 4961 5221 2096482+ 82 Linux swap / Solaris
我想新增加一个分区,就把/dev/sda2删除了,新增分区情况如下: Device Boot Start End Blocks Id System
/dev/sda1 * 1 38 305203+ 83 Linux
/dev/sda2 39 525 3911827+ 83 Linux
/dev/sda3 4961 5221 2096482+ 82 Linux swap / Solaris
/dev/sda4 526 4960 35624137+ 5 Extended
/dev/sda5 526 1012 3911796 83 Linux
执行w后 Command (m for help): w
The partition table has been altered!
出现以下警告 Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
于是我按照鸟哥的做法用了# partprobe,结果出现一大堆警告,要求重启。第一次我就乖乖重启了,结果不行,重启的时候卡在了下图所在的位置
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 38 305203+ 83 Linux
/dev/sda2 39 2349 18563107+ 83 Linux
/dev/sda3 2350 2610 2096482+ 82 Linux swap / Solaris
Disk /dev/sdb: 19.3 GB, 19327352832 bytes
255 heads, 63 sectors/track, 2349 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table 作者: lyhabc 时间: 2015-05-05 09:22
会不会分区的时候有问题,这种问题还未碰到过