今天 我在我的ubuntu 上把我的 磁盘分区改了一下 结果开机时 无法进入系统
屏幕上显示 grub rescue >
首先 输入 grub rescue > ls
屏幕上显示 hd0 (hd0,xx) (hd0,xx) 。。。。
接着 输入
grub rescue > ls (hd0,xx0)/
如果 屏幕 显示 unkown filesystem 说明 linux 不是安装在(hd0,xx0)中 接着 输入
grub rescue > ls (hd0,xx1) /
依次输入 ls (hd0,xx2)/ 。。。。ls (hd0,xx3)/
如果 显示 linux 系统 的 文件 目录 中 的 /boot 则说明 grub 在 这块 硬盘中
例如 当输入
grub rescue > ls (hd0,msdos10)/
grub rescue > . .. /bin /boot /home /lib
/lost+found /media /usr /var /proc /dev
说明 linux 安装在 (hd0,msdoa10)/ 中
假设 linux 中的 /boot 在 (hd0,,msdos10) 中 接着输入
grub rescue > set root= (hd0,msdos10)
grub rescue > set prefix =(hd0,msdos10)/boot/grub
grub rescue > insmod normal
grub rescue > normal
这个时候 就会 进入 启动 界面 , 经如 linux 中后
再 执行
sudo update-grub
更新 启动文件 。。。。。。
这个问题就解决好了