错误:cat:/boot/grub/video.lst:没有此文件或目录

错误:cat:/boot/grub/video.lst:没有此文件或目录

我最近从 Windows (Windows7) 转到 Ubuntu (10.10) 64 位。安装后,我执行了常规更新,并收到了新的内核版本 (2.6.35-28-generic)。

之后我阅读了以下地址上的帖子:

http://osdir.com/ml/ubuntu-users/2011-03/msg00932.html

从 grub(以及我的系统)中删除额外的内核版本,因为我不想保留它们。

现在使用下面提到的 shell 命令更新 grub:

sudo update-grub

我得到以下结果:

cat: /boot/grub/video.lst: No such file or directory
Found linux image: /boot/vmlinuz-2.6.35-28-generic
Found initrd image: /boot/initrd.img-2.6.35-28-generic
Found FreeDOS on /dev/sda1
Found Windows Vista (loader) on /dev/sda4
done

现在我不知道这是什么意思:

cat: /boot/grub/video.lst: No such file or directory

如果是错误,我该如何修复?有人可以指导我修复它吗?

问候,法哈德

答案1

/boot/grub/video.lst 保存了您的机器能够使用的所有视频模式。根据 GRUB 文档,它是由 grub-install 生成的。我以前没有遇到过这个问题,但也许可以尝试重新安装 grub。

答案2

尝试这个命令:

echo vbe | sudo tee /boot/grub/video.lst

然后update-grub再一次!

答案3

更新 grub 或该路径中的其他任何内容时,请确保 /boot 路径以读写 (rw) 方式挂载。为了保护,通常在安装后挂载 (ro),但如果是 (ro),更新将失败。

相关内容