XP & Suse 11-Linux 之 Grub 的問題



贊助商連結


sean666
2008-09-13, 08:52 AM
我有一顆SATA和一顆IDE硬碟
SATA裝XP。IDE裝Suse 兩顆硬碟可由bios設定啟動順序
所以..設定SATA作啟動 就只會進XP完全讀不到Grub去進入Suse
設定IDE作啟動 就可以正常啟動grub進入Suse-linux 但grub啟動選單選擇XP是進不了XP的...
明明menu.lst就沒設定錯,卻進不了XP。 這情況只有裝ubuntu不會發生(最近試用好幾版linux)
** 以下是我的硬碟分區資料
*BIOS設定IDE啟動*
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc95f0520

Device Boot Start End Blocks Id System
/dev/sda1 * 1 6527 52428096 7 HPFS/NTFS
/dev/sda2 6528 6919 3148740 c W95 FAT32 (LBA)
/dev/sda3 6920 28443 172891530 7 HPFS/NTFS
/dev/sda4 28444 30401 15727635 5 Extended
/dev/sda5 28444 30401 15727603+ bc Unknown

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc442934a

Device Boot Start End Blocks Id System
/dev/sdb1 1 4864 39070048+ 7 HPFS/NTFS
/dev/sdb2 * 4865 9729 39078112+ f W95 Ext'd (LBA)
/dev/sdb5 8392 9729 10747453+ b W95 FAT32
/dev/sdb6 4865 5126 2104452 82 Linux swap / Solaris
/dev/sdb7 5127 6432 10490413+ 83 Linux
/dev/sdb8 6433 8391 15735636 83 Linux

Partition table entries are not in disk order

------------------------------------------------------------------------
*設定SATA硬碟作為啟動時的分區表就不用管了,反正跟另一顆IDE是搭不著的。

*以下為 /boot/grub/menu.lst 內容*

# Modified by YaST2. Last modification on Fri Sep 12 00:23:54 CST 2008
default 0
timeout 8
gfxmenu (hd0,6)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.0 - 2.6.25.16-0.1
root (hd0,6)
kernel /boot/vmlinuz-2.6.25.16-0.1-default root=/dev/disk/by-id/scsi-SATA_ST380013A_5JVLDWE1-part7 resume=/dev/sdb6 splash=silent showopts vga=0x317
initrd /boot/initrd-2.6.25.16-0.1-default

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.0 - 2.6.25.16-0.1
root (hd0,6)
kernel /boot/vmlinuz-2.6.25.16-0.1-default root=/dev/disk/by-id/scsi-SATA_ST380013A_5JVLDWE1-part7 showopts ide=nodma apm=off acpi=off noresume edd=off x11failsafe vga=0x317
initrd /boot/initrd-2.6.25.16-0.1-default

###Don't change this comment - YaST2 identifier: Original name: windows 1###
title Windows XP
rootnoverify (hd0,6)
chainloader (hd1,0)+1

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

我只知道 因為兩顆硬碟可以由BIOS設定哪一顆作為優先啟動,可能會導致Grub識別錯誤或混亂
但是 我比較想知道為何ubuntu卻可以做到啟動XP?(當時我是設定IDE作優先啟動)
不過我不喜歡ubuntu的介面,沒親和力,尤其是終端機介面,Suse的終端機介面就好看很多,很有質感!
我在想會不會是ubuntu安裝時,Grub安裝時另外加入硬體id識別,所以才能啟動XP?
因為我有特地看了一下ubuntu下Grub的 /boot/grub/menu.lst 內容,裡面關於XP有多了硬體id識別碼
我原本有備份下來,但是重裝Suse時被格式化掉了。
以上問題期望這裡的高手大大們為小弟解惑!感激~