免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: netstree
打印 上一主题 下一主题

[已解决]ubuntu 9.10 Alternate光盘进入救援模式如何重新安装grub? [复制链接]

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
11 [报告]
发表于 2010-02-05 16:05 |只看该作者
呵呵,这样还算复杂啊,特别是最后一种方法,多简单啊,连系统都不用进去,直接就挂载根目录,重装grub了。 ...
netstree 发表于 2010-02-05 15:50



    你完全不需要重装 grub 的,只需要把 grub 写入到你的 mbr 中,而要完成这样的目的,只需要两步

root ( hdx , y )
setup ( hdx )

x 是你的 linux 所在的物理硬盘,y是你的linux 所在的分区。

setup 中的那个 hdx 多数情况下是 hd0 , 即你的 mbr 是在第一块硬盘上的。

论坛徽章:
0
12 [报告]
发表于 2010-02-05 17:00 |只看该作者
本帖最后由 netstree 于 2010-02-05 17:04 编辑

grub
grub>root ( hd0 , 1 )
grub>setup ( hd0 )

grub-install /dev/sda

有啥本质区别?不都是安装grub到mbr吗?
1,Installing GRUB natively
grub> root (hd0,0)
grub> setup (hd0)

2,Installing GRUB using grub-install
# grub-install /dev/hda

Note that @command{grub-install} is actually just a shell script and the real task is done by the grub shell @command{grub} (see section Invoking the grub shell). Therefore, you may run @command{grub} directly to install GRUB, without using @command{grub-install}. Don't do that, however, unless you are very familiar with the internals of GRUB. Installing a boot loader on a running OS may be extremely dangerous.

参考:
http://www.linuxselfhelp.com/gnu/grub/html_chapter/grub_3.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP