手动安装ubuntu的grub

来源:互联网 发布:管理货的软件 编辑:程序博客网 时间:2024/06/06 08:52

步骤:

1、执行mount /dev/sda1 /mnt
2、执行grub-install --root-directory=/mnt /dev/sda
3、重启。
4、在grub命令行下执行root (hd0,0)
5、执行命令kernel (hd0,0)/boot/vmlinuz-3.5.0-17-generic root=/dev/sda1
6、执行命令boot
7、系统启动后,打开终端执行命令update-grub

原创粉丝点击