现在把hard drive的menu.lst,copy到手指里的/menu/menu-d515.lst。
在把/menu/menu-d515.ls里的hd0改到hd1。- default 0
- timeout 30
- color NORMAL HIGHLIGHT HELPTEXT HEADING
- splashimage=/splash.xpm.gz
- foreground=FFFFFF
- background=000000
- # Suggested by Erhan Sohail
- title Boot First Hard Drive (HDD)
- map (hd0) (hd1)
- map (hd1) (hd0)
- map --hook
- chainloader (hd0)+1
- rootnoverify (hd0)
- title + D515 PC
- configfile /menu/menu-d515.lst
- title Restart
- reboot
- title Shutdown
- halt
- title --- Custom MultiBoot Entries ---
- root
- title Parted Magic (Partition Tools)
- find --set-root /pmagic.iso
- map --heads=0 --sectors-per-track=0 /pmagic.iso (hd32)
- map --hook
- root (hd32)
- kernel /pmagic/bzImage edd=off noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=791 sleep=10 loglevel=0 keymap=us iso_filename=/pmagic.iso
- initrd /pmagic/initramfs
- map --unmap=0:0xff
複製代碼 /menu/menu-d151.lst contains- # 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,6)
- # kernel /boot/vmlinuz-version ro root=/dev/sda7
- # initrd /boot/initrd-version.img
- #boot=/dev/sda
- #default=5
- #timeout=20
- #splashimage=(hd1,6)/boot/grub/splash.xpm.gz
- #hiddenmenu
- title <- Return to Main Menu
- configfile /menu.lst
- title
- root
- title CentOS ( Asterisk 1.4 + Asterisk-GUI 2.0 ) /dev/sda6
- root (hd1,5)
- kernel /boot/vmlinuz-2.6.18-194.11.3.el5 ro root=LABEL=Asterisk-1.4+GUI
- initrd /boot/initrd-2.6.18-194.11.3.el5.img
- title Asterisk 1.4
- root (hd1,6)
- kernel /boot/vmlinuz-2.6.18-194.11.3.el5 ro root=LABEL=Asterisk-1.4
- initrd /boot/initrd-2.6.18-194.11.3.el5.img
- title Asterisk 1.6 + FreePBX
- root (hd1,7)
- kernel /boot/vmlinuz-2.6.18-194.3.1.el5 ro root=LABEL=/12
- initrd /boot/initrd-2.6.18-194.3.1.el5.img
- title Asterisk 1.6
- root (hd1,8)
- kernel /boot/vmlinuz-2.6.18-194.11.1.el5 ro root=LABEL=/1
- initrd /boot/initrd-2.6.18-194.11.1.el5.img
- title Elastix 2.0
- root (hd1,9)
- kernel /boot/vmlinuz-2.6.18-194.3.1.el5 ro root=LABEL=Elastix-2.0
- initrd /boot/initrd-2.6.18-194.3.1.el5.img
- title Asterisk 1.8 CentOS (2.6.18-238.el5)
- root (hd1,11)
- kernel /boot/vmlinuz-2.6.18-238.el5 ro root=LABEL=Asterisk-1.8
- initrd /boot/initrd-2.6.18-238.el5.img
- title CentOS 5.5a
- root (hd1,13)
- kernel /boot/vmlinuz-2.6.18-194.8.1.el5 ro root=LABEL=CentOS-5.5a
- initrd /boot/initrd-2.6.18-194.8.1.el5.img
- title CentOS 5.5b
- root (hd1,14)
- kernel /boot/vmlinuz-2.6.18-194.8.1.el5 ro root=LABEL=CentOS-5.5b
- initrd /boot/initrd-2.6.18-194.8.1.el5.img
- title Windows 7 EN
- unhide (hd1,0)
- hide (hd1,1)
- rootnoverify (hd1,0)
- chainloader +1
- title Windows 7 SC
- hide (hd1,0)
- unhide (hd1,1)
- rootnoverify (hd1,1)
- chainloader +1
複製代碼 |