免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1240 | 回复: 0
打印 上一主题 下一主题

redhat 如何备份linux lernel , 并把其加入启动菜单 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-09-13 07:32 |只看该作者 |倒序浏览
jinru /boot

# ls  ---列出所有kernel ,
# cp  initrd-2.4.21-47.ELsmp.img(当前kernel名称)  initrd-2.4.21-47.ELsmp.img.bak
(kernel备份文件 名称)

[email=root@utidbanvil01]root[/email]
# cd grub                   进入 grub 目录
[root@utidbanvil01 grub]# ls
device.map     fat_stage1_5  grub.conf      jfs_stage1_5  minix_stage1_5     splash.xpm.gz  stage2           xfs_stage1_5
e2fs_stage1_5  ffs_stage1_5  grub.conf.bak  menu.lst      reiserfs_stage1_5  stage1         vstafs_stage1_5
[root@ grub]# ls -l
total 212
-rw-r--r--    1 root     root           89 Apr 18  2007 device.map
-rw-r--r--    1 root     root         7840 Apr 18  2007 e2fs_stage1_5
-rw-r--r--    1 root     root         7536 Apr 18  2007 fat_stage1_5
-rw-r--r--    1 root     root         6880 Apr 18  2007 ffs_stage1_5
-rw-------    1 root     root         1354 Aug  8 23:17 grub.conf
-rw-------    1 root     root         1146 Aug  8 22:52 grub.conf.bak
-rw-r--r--    1 root     root         8448 Apr 18  2007 jfs_stage1_5
lrwxrwxrwx    1 root     root           11 Apr 18  2007 menu.lst -> ./grub.conf
-rw-r--r--    1 root     root         7072 Apr 18  2007 minix_stage1_5
-rw-r--r--    1 root     root         9440 Apr 18  2007 reiserfs_stage1_5
-rw-r--r--    1 root     root        11182 Sep 11  2003 splash.xpm.gz
-rw-r--r--    1 root     root          512 Apr 18  2007 stage1
-rw-r--r--    1 root     root       104028 Apr 18  2007 stage2
-rw-r--r--    1 root     root         6528 Apr 18  2007 vstafs_stage1_5
-rw-r--r--    1 root     root         9352 Apr 18  2007 xfs_stage1_5
[root@grub]# vi 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/Volume00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/cciss/c0d0
default=2                          缺省的启动选项 注意第一个选项是0 b不是1
timeout=30
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux AS (2.4.21-57.EL)
        root (hd0,0)
        kernel /vmlinuz-2.4.21-57.EL ro root=/dev/Volume00/LogVol00 hda=ide-scsi
        initrd /initrd-2.4.21-57.EL.img
title Red Hat Enterprise Linux AS (2.4.21-57.ELsmp)
        root (hd0,0)
        kernel /vmlinuz-2.4.21-57.ELsmp ro root=/dev/Volume00/LogVol00 hda=ide-scsi
        initrd /initrd-2.4.21-57.ELsmp.img
title Red Hat Enterprise Linux AS (2.4.21-47.ELsmp)
        root (hd0,0)
        kernel /vmlinuz-2.4.21-47.ELsmp ro root=/dev/Volume00/LogVol00 hda=ide-scsi
        initrd /initrd-2.4.21-47.ELsmp.img

title Red Hat Enterprise Linux AS (2.4.21-47.ELsmp)
        root (hd0,0)
        kernel /vmlinuz-2.4.21-47.ELsmp.bak ro root=/dev/Volume00/LogVol00 hda=ide-scsi
        initrd /initrd-2.4.21-47.ELsmp.img.bak
title Red Hat Enterprise Linux AS-up (2.4.21-47.EL)
        root (hd0,0)
        kernel /vmlinuz-2.4.21-47.EL ro root=/dev/Volume00/LogVol00 hda=ide-scsi
        initrd /initrd-2.4.21-47.EL.img


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/78721/showart_1190404.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP