stdlf
分类:
2010-04-02 16:32:43
# cat /boot/grub/grub.conf default=0 //默认启动sda1 timeout=5 splashimage=(hd0,6)/grub/splash.xpm.gz hiddenmenu title Fedora (2.6.25-14.fc9.i686) root (hd0,6) kernel /vmlinuz-2.6.25-14.fc9.i686 ro root=UUID=368f3271-3d0c-4977-9960- initrd /initrd-2.6.25-14.fc9.i686.img title Windows rootnoverify (hd0,0) chainloader +1
***********************************************************
Fedora-> # vi /etc/fstab
**********************************************************
UUID=368f3271-3d0c-4977-9960-39686cec8f80 / ext3 defaults 1 1
UUID=a11530ba-fd0d-414c-bd73-68066379e1de /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
UUID=f31202f7-d7ba-4cfe-8ac1-2c589231b376 swap swap defaults 0 0
*************************************************************
将Fedora的grub.conf里添加RHEL的启动文件:
进入Fedora:
#mount /dev/sda10 /mnt (umount /dev/sda10)
#ls -l /mnt/boot
观察RHEL的/boot(和安装时/boot等价)里的vmlinuz-***、initrd-***。
#cat /etc/fstab(RHEL mount到Fedora/mnt/etc/fstab里)
LABEL=/ / ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
在Fedora的grub.conf里添加:
title RHEL
root(0,9)
kernel /vmlinuz.... ro root=LABEL=/ vga=0x0317(显示logo)
initrd /initrd-....img