用linux也一段時間了,前前后后裝了不少版本的linux,也看了不少linux的書,但在各種發行版中,還是對suse情有獨鐘,因為它的友好的界面還有廣泛的硬件支持,特別是suse附帶了功能齊全的軟件,就連播放器的解碼也做得非常周到,基本上能播放大多數格式的電影跟音樂了。但由于幾個月前重裝windows系統,把引導破壞了,suse就一直沉睡在硬盤中,今天,借用grub,又把沉睡的suse喚醒,在使用grub的時候也遇到了不少麻煩,下面做個總結,好讓下次少走點彎路。
文/囝濼 www.bluenuo.cn
首先把GRUB下下來,為方便下次使用我把grub支持多文件系統的版本放在我的網盤
http://disk.bluenuo.cn的linux目錄下,下載后提取grldr文件到C:\,現在只需要把系統的啟動菜單中加上C:\GRLDR=My Grub一行,下次啟動的時候就可以通過My Linux Suse10這個菜單進入grub,但現在只能使用命令來使用GRUB,接下來我們為GRUB加入菜單。
在C:\下建立boot文件夾,然后進入剛建立的boot文件夾建立grub文件夾,最后,在grub目錄下建立menu.lst文件,至于menu.lst里面寫什么你可以查閱相關資料,筆者是通過光盤引導了以前的linux系統,仿照/boot/grub下面的menu.lst寫的,原linux下的menu.lst如下
# Modified by YaST2. Last modification on 日 4月 1 06:48:42 UTC 2007
color white/blue black/light-gray
default 1
timeout 8
gfxmenu (hd1,7)/boot/message
###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE Linux Enterprise Desktop 10
root (hd1,7)
kernel /boot/vmlinuz root=/dev/sda8 vga=0x314 resume=/dev/sda7 splash=silent showopts
initrd /boot/initrd
###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
chainloader (hd0,0)+1
###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE Linux Enterprise Desktop 10
root (hd1,7)
kernel /boot/vmlinuz root=/dev/sda8 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
initrd /boot/initrd
由于現在我只需要引導suse10,所以我把啟動設置跟最后一條復制到我的menu.lst里面就可以了
# Modified by YaST2. Last modification on 日 4月 1 06:48:42 UTC 2007
color white/blue black/light-gray
default 1
timeout 8
###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE Linux Enterprise Desktop 10
root (hd1,7)
kernel /boot/vmlinuz root=/dev/sda8 vga=0x314 resume=/dev/sda7 splash=silent showopts
initrd /boot/initrd
其中紅色標記的因個人系統而定
現在grub已經能喚醒沉睡的suse了,至于grub更詳細的使用,可以在網上搜索grub使用的文章,這里不在細述
囝濼,武漢科技學院
您可以通過其博客了解更多信息和文章:
http://www.bluenuo.cn