RED HAT ENTERSPRISE LINUX 5 grub启动文件

简介:
[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
// 重新启动系统
这样系统就没有阻碍的运行起来
 









本文转自 chen138 51CTO博客,原文链接:http://blog.51cto.com/chenboqiang/281651,如需转载请自行联系原作者
目录
相关文章
|
5天前
|
Linux 开发工具
Linux E325: 注意 发现交换文件 “*.swp“
Linux E325: 注意 发现交换文件 “*.swp“
14 0
|
1天前
|
Linux
如何在 Linux 中递归更改文件的权限?
【5月更文挑战第10天】
12 3
|
1天前
|
Linux
Linux如何查询较大文件的方法
【5月更文挑战第8天】Linux如何查询较大文件的方法
5 0
|
2天前
|
Linux 程序员 Shell
【Linux】详解core dump文件的作用以及用法&&ubuntu20.04下无法形成core dump文件的解决办法
【Linux】详解core dump文件的作用以及用法&&ubuntu20.04下无法形成core dump文件的解决办法
|
2天前
|
存储 Linux
Redhat Enterprise Linux磁带机简单操作
Redhat Enterprise Linux磁带机简单操作
|
2天前
|
Linux Shell
Linux操作系统下查找大文件或目录的技巧
Linux操作系统下查找大文件或目录的技巧
10 2
|
2天前
|
算法 Linux
Linux:文件增删 & 文件压缩指令
Linux:文件增删 & 文件压缩指令
6 0
|
4天前
|
Linux
在 Linux 中创建文件
在 Linux 中创建文件
|
2月前
|
安全 Linux 网络安全
如何在 VM 虚拟机中安装 Red Hat Enterprise Linux 9.3 操作系统保姆级教程(附链接)
如何在 VM 虚拟机中安装 Red Hat Enterprise Linux 9.3 操作系统保姆级教程(附链接)
|
架构师 中间件 Linux
Red Hat Enterprise Linux 8/7/6/5/4 合集下载地址
Red Hat Enterprise Linux 8/7/6/5/4 合集下载地址