ubuntu修复grub,u盘引导问题
电脑是win7 与ububtu双系统,昨天了调整分区,用u盘重装了ubuntu,安装过程顺利,可不知怎么搞的,拔出u盘就无法启动,提示分区找不到,然后是grub模式,屏幕显示grub resucue。 google了下,照着命令敲就好了。 grub resuce>ls (hd0) (hd0,msdos9) (hd0,msdos8) ..... #列出了硬盘得分区信息 #哪个才是我们得ubntu分区呢?用下面命令,一个个试试,能显示linux文件得就是。我的是(hd0,msdos8) grub resuce>ls (hd0,8)/ grub resuce>root=(hd0,msdos8) grub resuce>prefix=/boot/grub grub resuce>set root=(hd0,msdos8) grub resuce>set prefix=(hd0,msdos8)/boot/grub grub resuce>insmod normal grub resuce>normal 很神奇得命令,这样就搞定了 进入ubuntu后更新下grub就行 sudo update-grub 也可以预先用u盘引导进入ubuntu,使用“磁盘使用工具”查看ubuntu的分区信息 如图,我的ubuntu安装在/dev/sda8 来源: oschina 链接: https://my