首页 运维 网络学院 查看内容

RED HAT ENTERSPRISE LINUX 5 grub启动文件

2012-2-21 14:49 722 0

摘要: [root@localhost ~]#more /boot/grub/grub.conf //显示 grub.conf系统启动文件 #grub.conf generated by anacon...
关键词: nbsp grub root localhost 内核 initrd conf kernel boot 系统

[root@localhost ~]#more /boot/grub/grub.conf //显示 grub.conf系统启动文件 #grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE:  You have a /boot partition.  This means that #          all kernel and initrd paths are relative to /boot/, eg. #          root (hd0,0) #          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 #          initrd /initrd-version.img #boot=/dev/sda 以#开始是注释说明信息 default=0 #default=0表示默认启动第一个系统 timeout=5 #timeout就是默认在启动选择界面停留的时间单位是秒。等待5秒自动进入默认操作系统 splashimage=(hd0,0)/grub/splash.xpm.gz #显示第一块硬盘的,第一个分区/grub目录下的启动背景界面(splash.xpm.gz) Hiddenmenu #隐藏的菜单 title Red Hat Enterprise Linux Server (2.6.18-128.el5) #标题红帽子企业版内核版本,启动后显示的信息         root (hd0,0) #root启动文件所在位置         kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet #kernel内核版本和内核所在位置         initrd /initrd-2.6.18-128.el5.img #initrd内核镜像 [root@localhost ~]#cd /boot/grub //切换到grub目录 [root@localhost grub]#rm –rf menu.lst //删除grub.conf软件接名menu.lst [root@localhost grub]#rm –rf grub.conf //删除grub.conf系统启动文件 [root@localhost grub]#reboot //重启系统 grub>splashimage=(hd0,0)/grub/splash.xpm.gz //显示grub启动背景画面 grub>root (hd0,0) //root启动文件所在位置 grub>kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet //kernel内核版本和内核所在位置 grub>initrb /initrb-2.6.18-128.el5.img //initrd内核镜像的名字 grub>boot //执行boot启动红帽子 [root@localhost ~]#cd /boot/grub //切换到grub目录 [root@localhost grub]#vim grub.conf //打开编辑grub.conf default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Red Hat Enterprise Linux Server (2.6.18-128.el5)         root (hd0,0)         kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet         initrd /initrd-2.6.18-128.el5.img [root@localhost grub]#ln –s ./grub.conf menu.lst //建立一个./grub.conf软连接名为menu.lst,”./”表示当前grub目录 [root@localhost grub]#ll //显示文件详细信息 [root@localhost grub]#reboot //重新启动系统 这样系统就没有阻碍的运行起来         了解更多请点击:http://blog.csdn.net/vcchen_bo_qiang 本文出自 “嵌入式技术” 博客,请务必保留此出处http://chenboqiang.blog.51cto.com/1068057/281651
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部