用linux也一段時(shí)間了,前前后后裝了不少版本的linux,也看了不少linux的書(shū),但在各種發(fā)行版中,還是對(duì)suse情有獨(dú)鐘,因?yàn)樗挠押玫慕缑孢€有廣泛的硬件支持,特別是suse附帶了功能齊全的軟件,就連播放器的解碼也做得非常周到,基本上能播放大多數(shù)格式的電影跟音樂(lè)了。但由于幾個(gè)月前重裝windows系統(tǒng),把引導(dǎo)破壞了,suse就一直沉睡在硬盤(pán)中,今天,借用grub,又把沉睡的suse喚醒,在使用grub的時(shí)候也遇到了不少麻煩,下面做個(gè)總結(jié),好讓下次少走點(diǎn)彎路。
文/囝濼 www.bluenuo.cn
首先把GRUB下下來(lái),為方便下次使用我把grub支持多文件系統(tǒng)的版本放在我的網(wǎng)盤(pán)
http://disk.bluenuo.cn的linux目錄下,下載后提取grldr文件到C:\,現(xiàn)在只需要把系統(tǒng)的啟動(dòng)菜單中加上C:\GRLDR=My Grub一行,下次啟動(dòng)的時(shí)候就可以通過(guò)My Linux Suse10這個(gè)菜單進(jìn)入grub,但現(xiàn)在只能使用命令來(lái)使用GRUB,接下來(lái)我們?yōu)镚RUB加入菜單。
在C:\下建立boot文件夾,然后進(jìn)入剛建立的boot文件夾建立grub文件夾,最后,在grub目錄下建立menu.lst文件,至于menu.lst里面寫(xiě)什么你可以查閱相關(guān)資料,筆者是通過(guò)光盤(pán)引導(dǎo)了以前的linux系統(tǒng),仿照/boot/grub下面的menu.lst寫(xiě)的,原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
由于現(xiàn)在我只需要引導(dǎo)suse10,所以我把啟動(dòng)設(shè)置跟最后一條復(fù)制到我的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
其中紅色標(biāo)記的因個(gè)人系統(tǒng)而定
現(xiàn)在grub已經(jīng)能喚醒沉睡的suse了,至于grub更詳細(xì)的使用,可以在網(wǎng)上搜索grub使用的文章,這里不在細(xì)述
囝濼,武漢科技學(xué)院
您可以通過(guò)其博客了解更多信息和文章:
http://www.bluenuo.cn
囝濼,深圳康拓普信息技術(shù)有限公司
您可以通過(guò)其博客了解更多信息和文章:
http://www.bluenuo.cn