---
title: "双 linux 启动"
author: "enhydra"
date: "2008-02-20T17:05:05Z"
tags: []
slug: "linux"
draft: false
lastmod: "2008-02-20T17:05:05Z"
id: 163680
url: "https://enhydra.iteye.com/blog/163680"
---

记录一下

简单的分区

/dev/hda1   redhat5.1
/dev/hda3   redhat4.5


使用grub 

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,2)
#          kernel /boot/vmlinuz-version ro root=/dev/hda3
#          initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
#hiddenmenu
#title Red Hat Enterprise Linux ES 4 (2.6.9-55.ELsmp)
#       root (hd0,2)
#       kernel /boot/vmlinuz-2.6.9-55.ELsmp ro root=LABEL=/1 rhgb quiet
#       initrd /boot/initrd-2.6.9-55.ELsmp.img
title Red Hat Enterprise Linux ES 4-up (2.6.9-55.EL)
        root (hd0,2)
        kernel /boot/vmlinuz-2.6.9-55.EL ro root=LABEL=/1 rhgb quiet
        initrd /boot/initrd-2.6.9-55.EL.img
title Red Hat Enterprise Linux AS 5
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.18-8.el5 ro root=/dev/hda1
        initrd /boot/initrd-2.6.18-8.el5.img