close

sudo vi /boot/grub/menu.lst

 

# 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,5)
#          kernel /vmlinuz-version ro root=/dev/sda10
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda6
default=0
timeout=0
splashimage=(hd0,5)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.32-220.el6.x86_64)
        root (hd0,5)
        kernel /vmlinuz-2.6.32-220.el6.x86_64 ro root=/dev/sda10 rd_NO_LUKS rd_NO_MD LANG=zh_TW.UTF-8  KEYTABLE=us quiet rhgb rd_NO_LVM rd_NO_DM rhgb quiet
        initrd /initramfs-2.6.32-220.el6.x86_64.img

title Windows 7
        root (hd0,0)
        chainloader +1
        makeactive

GRUB 設定檔案配置
 default=0 (預設啟動的項目)
 timeout=5 (倒數計時的時間)
 splashimage=(hd0,1)/grub/splash.xpm.gz (開機選單圖片)
 hiddenmenu (是否出現選單項目)
 title RedHat Enterprise Linux (2.6.18-194.32.1.el5)  root (hd0,1)
 kernel /vmlinuz-2.6.18-194.32.1.el5 ro root=/dev/system/root
 initrd /initrd-2.6.18-194.32.1.el5.img

---

GRUB 設定檔案配置

title Microsoft Windows 7
  chainloader +1


rootnoverify (hd0,0)
makeactive
附註
 hd0,0 表示第 1 顆硬碟的第 1 個分割區
 hd1,2 表示第 2 顆硬碟的第 3 個分割區

---------------

password --md5 $1$5X/Cm0$r60Zw56h4Np9QwzX1BsSJ0

------------------

[sean@localhost 桌面]$ grub
grub            grub-crypt      grub-md5-crypt  
grubby          grub-install    grub-terminfo   
[sean@localhost 桌面]$ grub-md5-crypt
Password:
Retype password:
$1$5X/Cm0$r60Zw56h4Np9QwzX1BsSJ0



 

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 sean 的頭像
    sean

    My Source Code

    sean 發表在 痞客邦 留言(0) 人氣()