打印

GRUB学习笔记

GRUB学习笔记

GRUB学习笔记

附件

GRUB学习笔记.doc (61.5 KB)

2008-9-15 23:30, 下载次数: 16

TOP

不错的东西,谢谢分享

TOP

GRUB 恢复注意事项

恭喜您,您遇上财神了,送给你2庆典金币!
CENTOS 4  使用的是  GNU GRUB  version 0.95  (640K lower / 3072K upper memory)
CENTOS 5  使用的是  GNU GRUB  version 0.97  (640K lower / 3072K upper memory)
当CENTOS 4出问题的时候,用CENTOS 5的光盘启动,linux rescue, 默认用0.97的版本的去操作,
这样即使安装成功grub,也不能成功启动。
必须要用原来的grub来安装,/sbin/grub 才能成功启动系统。

[root@jupiter boot]# grub
Probing devices to guess BIOS drives. This may take a long time.


    GNU GRUB  version 0.95  (640K lower / 3072K upper memory)

[ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename.]
grub> device (hd0) /dev/sda
device (hd0) /dev/sda
grub> root (hd0,0)
root (hd0,0)
Filesystem type is ext2fs, partition type 0xfd
grub> setup (hd0)
setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd0)"...  16 sectors are embedded.
succeeded
Running "install /grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/grub/stage2 /grub/grub.conf"... succeeded
Done.




#reboot

Finished.
今天碰到的。
每一天都在努力。

TOP

恭喜您,您遇上财神了,送给你17庆典金币!
thanks  !

TOP

恭喜您,您遇上财神了,送给你16庆典金币!
GRUB学习笔记
技術的積累是一種收穫,問題的研究是一種享受;
Linux Command:http://terminal.wen.la
                               http://www.linuxdiyf.com/blog/?113478
HPUX:http://docs.hp.com/zh_cn/index.html
QQ:35257414
MSN:diveming@126.com

TOP

恭喜您,您遇上财神了,送给你21庆典金币!
謝謝樓主,GRUB學習。

TOP

谢谢分享

TOP

回复 1 楼 lklkxcxc的帖子

恭喜您,您遇上财神了,送给你23庆典金币!
haodongdong
xiexie fenxiang

TOP

恭喜您,您遇上财神了,送给你27庆典金币!
好东西 谢谢楼主了 先学习一下的
伟大是熬出来的。。。

TOP

恭喜您,您遇上财神了,送给你18庆典金币!
好东西,顶起来啊啊

TOP


感谢一直以来您对我们的支持!
当前时区 GMT+8, 现在时间是 2008-12-2 16:33 京ICP证060528 号

Designed By 17DST