接分啦!!!解决ubuntu启动的grub问题,,100分送了

gaga_xiaomaozi 2012-07-17 05:48:28
今天打开ubuntu10.04虚拟机,发现进不去了提示:
error:unknown filesystem
grub rescue>

我尝试自己解决:
输入ls查看分区时显示的是:(hd0) (hd0,5) (hd0,1) (fd0)
用set命令查看时显示的是:
profix=(hd0,1)/boot/grub
root=hd0,1

这就说明(hd0,1)这个分区不对了,那我就尝试(hd0,5)但是还是提示unknow filesystem:
set profix=(hd0,5)/boot/grub
set root=hd0,5
接着输入insmod normal,此时又报错了error:unknow filesystem

这到底是什么原因呢,为什么所有的分区都不对啊??该怎么解决呢?请高手来接分啊!!!
...全文
199 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
gaga_xiaomaozi 2012-07-24
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 的回复:]

是不是挂错磁盘了?查看分区和文件系统类型,如
>root (hd0, (tab)
Partition num: 0, Filesystem type is ext2fs, partition type 0x83
Partition num: 1, Filesystem type unknown, partition type 0x82
Partition num: 2, Filesyst……
[/Quote]呵呵 直接重装虚拟机了
root_jli 2012-07-18
  • 打赏
  • 举报
回复
是不是挂错磁盘了?查看分区和文件系统类型,如
>root (hd0, (tab)
Partition num: 0, Filesystem type is ext2fs, partition type 0x83
Partition num: 1, Filesystem type unknown, partition type 0x82
Partition num: 2, Filesystem type unknown, partition type 0x7
Partition num: 4, Filesystem type is reiserfs, partition type 0x83
Partition num: 5, Filesystem type is reiserfs, partition type 0x83
然后再挂载磁盘,一般grub支持 ext2fs和reiserfs
gaga_xiaomaozi 2012-07-18
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 的回复:]

ubuntu grub救助模式命令
在 grub rescue> 提示符下
1. ls 显示已知分区。
2. set root=/dev/sdXY (例如:(hd0,1) 是 sda1。(hd3.5) 是 sdc5。)
3. ls /boot 检验內容。应该能看到多个内核、initrd 影像和 grub 目录。
4. insmod /boot/grub/……
[/Quote]ls /boot提示no such disk,那接下来咋办呢?
morris88 2012-07-18
  • 打赏
  • 举报
回复
虚拟机磁盘映像文件还在不?
简单直接的方式就是重装一下
帅得不敢出门 2012-07-18
  • 打赏
  • 举报
回复
不会是虚拟机什么文件被你删除了吧。
root_jli 2012-07-18
  • 打赏
  • 举报
回复
ubuntu grub救助模式命令
在 grub rescue> 提示符下
1. ls 显示已知分区。
2. set root=/dev/sdXY (例如:(hd0,1) 是 sda1。(hd3.5) 是 sdc5。)
3. ls /boot 检验內容。应该能看到多个内核、initrd 影像和 grub 目录。
4. insmod /boot/grub/_linux.mod 装载linux 模块。此模块没有加载会出现「Unknown command linux」。
5. linux /vmlinuz root=/dev/sdXY ro 加载 linux 内核,替换掉「X」和「Y」(例如:sda1)
6. initrd /initrd.img 加载initrd 镜像。
7. boot 开机。
gaga_xiaomaozi 2012-07-17
  • 打赏
  • 举报
回复
没有大虾吗?坐等答案啊!!!

18,773

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 专题技术讨论区
社区管理员
  • 专题技术讨论区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧