安装了win7 32位系统之后,格出一块盘 又安装了 CentOS 5.6 x86_64
由于准备重新装一下CentOS6 加图形化界面,可开始格出来的盘又太小了。于是又进入win7下重新 整理了一部分空间出来。重启竟然没办法按照平常的步骤登,而是进入Grub 命令 引导界面了。
boot 后,提示没有加载kernel
网络上资料 搜索一番,整理了下有用资料如下:
grub> root (hd0,n)
grub> kernel /boot/vmlinuz-2.6.22-10-generic root=/dev/sda2 ro
grub> initrd /boot/initrd.img-2.6.22-10-generic
grub> boot
try:
rootnoverify (hd0,0)
chainloader +1
boot
This worked for me ‘:|
我一开机就出现grub>,我root (hd0,后按TAB后出现:
Possible partitions are:
Partition num: 0, Filesystem type unknown, partition type 0×7
Partition num: 4, Filesystem type unknown, partition type 0×7
Partition num: 5, Filesystem type unknown, partition type 0×7
Partition num: 6, Filesystem type unknown, partition type 0×7
Partition num: 7, Filesystem type unknown, partition type 0×7
Partition num: 8, Filesystem type is ext2fs, partition type 0×83
Partition num: 9, Filesystem type unknown, partition type 0x8e
我按root (hd0,10)后出现:
Filesystem type unknown, partition type 0×82
你的/boot分区是哪个区? 选它就对了!
进windows,应该是
rootnoverify (hd0,0)
chainloader +1
boot
—————————————————————————–
上面的 显的有点乱, 这边我简单记录一下 解决过程。(上面的root (hd+Tab+Tab出现的Possible partitions 信息就是我的个人电脑信息咯,请根据自己的环境做具体的修改 )
首先是进入Windows系统 ,Grub 界面下
grub > rootnoverify (hd0,0)
grub > chainloader +1
grub > boot
可以成功进入win7
重启回到 Grub 界面,尝试进入 CentOS ,结合上面的资料 加自身的安装 信息
grub > root (hd0,8)
grub > kernel /vmlinuz-2.6.18-*****
grub > initrd /initrd.img-2.6.18-*******
grub > boot
成功进入CentOS
这边,linux内核 有更新过,所以 可能会有不同的选择,具体的信息也没记录下来,可以根据实际情况,参考操作。
现在虽说可以顺利的进入两个已装的系统,但是每次开机的时候都得敲一下键盘,很是不方便,就先记到这边,待问题解决之后再作补充