Ubuntu 更新后出现sh:grub错误
2012-01-09 19:09
246 查看
这个错误网上很多指导.我也在今天更新10.10到11.04版本时出现了这个错误。网上给出的解决办法是根据安装的系统安装盘符解答.
其实基本都一样,我问题是再虚拟机上.
GUN GRUB version 1.97~beta4
[Minimal BASH-like line editing is suported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device/file completions.]
sh:grub >
进不了系统的解决方法: 出现这个提示符是进入了 grub2 的command line模式,先用
代码:ls一下。
#sh:grub >ls
看你的/分区装在那个分区了.一般显示结果有这样几个
(hd0) (hd0,1) (hd0,5) (hd0,6)...或者更多,找到你系统的安装盘
然后你按下面这个顺序运行命令就可以了启动了。
代码:set root=(hdX,Y)
#sh:grub >set root=(hd0,1)
//我的系统是在hd0,1下安装.如果不了解hd0,1是什么意思的话建议去查找下关键字 【Linux硬盘 分区结构】本人也是初学者,怕自己解释不清楚误导大家了。
接着如果出现错误提示,则证明系统没有在此分区下安装,继续操作命令更换下分区 例如 set root=(hd0,5)、set root=(hd0,6)、set root=(hd0,7) 直到没有出现错误提示。
代码:linux /vmlinuz root=/dev/sdXY
#sh:grub >linux /vmlinuz root=/dev/sda1
继续命令会提示一些内容,没有错误信息的话我们继续下一步
代码:initrd /initrd.img
#sh:grub >initrd /initrd.img
代码:boot
#sh:grub >boot
这样来说就可以启动进入系统了,后续的例如使用其他的安装方式我也没有涉及.
其实基本都一样,我问题是再虚拟机上.
GUN GRUB version 1.97~beta4
[Minimal BASH-like line editing is suported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device/file completions.]
sh:grub >
进不了系统的解决方法: 出现这个提示符是进入了 grub2 的command line模式,先用
代码:ls一下。
#sh:grub >ls
看你的/分区装在那个分区了.一般显示结果有这样几个
(hd0) (hd0,1) (hd0,5) (hd0,6)...或者更多,找到你系统的安装盘
然后你按下面这个顺序运行命令就可以了启动了。
代码:set root=(hdX,Y)
#sh:grub >set root=(hd0,1)
//我的系统是在hd0,1下安装.如果不了解hd0,1是什么意思的话建议去查找下关键字 【Linux硬盘 分区结构】本人也是初学者,怕自己解释不清楚误导大家了。
接着如果出现错误提示,则证明系统没有在此分区下安装,继续操作命令更换下分区 例如 set root=(hd0,5)、set root=(hd0,6)、set root=(hd0,7) 直到没有出现错误提示。
代码:linux /vmlinuz root=/dev/sdXY
#sh:grub >linux /vmlinuz root=/dev/sda1
继续命令会提示一些内容,没有错误信息的话我们继续下一步
代码:initrd /initrd.img
#sh:grub >initrd /initrd.img
代码:boot
#sh:grub >boot
这样来说就可以启动进入系统了,后续的例如使用其他的安装方式我也没有涉及.
相关文章推荐
- ubuntu更新后出现grub-efi-amd64 not configure yet错误
- 使用Ubuntu13.04更新软件时出现了以下的错误:W: 校验签名出错。此仓库未被更新...
- 安装Win7和Ubuntu12.04双系统后,意外删除Ubuntu12.04引导文件,出现error:unknown filesystem;grub rescue>错误的解决方案
- ubuntu更新时出现错误 E: Some index files failed to download, they have been ignored, or old ones used inst
- ubuntu 安装软件 更新出现错误:Requires Installation of Untrusted Packages
- Ubuntu 16.04更新grub-pc提示脚本/var/lib/dpkg/info/grub-pc.postinst 执行错误
- ubuntu 14.04 编译android4.0 出现gcc-version.sh: line 11: cc: command not found错误解决方法
- Ubuntu GRUB出现ERROR 17错误的对策
- (问题解决篇)ubuntu更新时,出现错误E: Some index files failed to download。。。
- 【Ubuntu】更新系统时出现Hash校验和不符的错误(已解决)
- 在ubuntu更新时,出现错误E: Some index files failed to download, they have been ignored, or old ones used ins
- Xubuntu15.04更新系统源时出现错误提示W: GPG 错误:http://archive.ubuntukylin.com:10006 xenial InRelease: 由于没有公钥,无法验证
- 在ubuntu更新时,出现错误E: Some index files failed to download, they have been ignored, or old ones used inst
- Ubuntu更新出现"The system is running in low-graphics mode"错误提示的解决办法
- ubuntu: windows安装错误 sh:grub
- 【Ubuntu】更新系统时出现Hash校验和不符的错误(已解决)
- Xubuntu15.04更新系统源时出现错误提示W: GPG 错误:http://archive.ubuntukylin.com:10006 xenial InRelease: 由于没有公钥,无法验证
- 安装Win7和Ubuntu12.04双系统后,意外删除Ubuntu12.04引导文件,出现error:unknown filesystem;grub rescue>错误的解决方案
- 在ubuntu更新时,出现错误E: Some index files failed to download, they have been ignored, or old ones used inst
- Ubuntu使用sudo命令出现must be setuid root错误的解决方法