核心 2.6.38-10 和 2.6.38-11 無法在 AHCI 模式下啟動

核心 2.6.38-10 和 2.6.38-11 無法在 AHCI 模式下啟動

我在 BIOS(舊的 Gigabyte GA-MA74GM-S2H,版本 1.1,Bios F1)中將 SATA 設定從“Native IDE”切換為“AHCI”,令我驚訝的是 GRUB2 無法再引導我的核心。它指出:

Cannot read the Linux header

我運行的是最新的 Natty 核心 2.6.38-11 / 32 位元 PAE。

猜測 GRUB2 和 AHCI 的問題讓我更加困惑,因為我能夠載入較舊的核心版本,包括 2.6.38-9,但不再是 -10。因此,我轉儲了 -10 和 -11 並重新安裝了核心 2.6.38-11(通用和 pae),結果相同,但錯誤訊息不同(無法載入文件)。將 SATA 設定改回「Native IDE」模式,一切正常。

有人也觀察到這一點並有什麼建議嗎?

我想在 AHCI 中運行的原因是因為我想在不久的將來安裝 SSD 驅動器,在 AHCI 中運行它以獲得更好的性能並按照供應商 (OCZ) 的建議。

編輯:

這是我的 grub.cfg 的一部分。核心 2.6.38-11 的配置,未運作:

 menuentry 'Ubuntu, mit Linux 2.6.38-11-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos1)'
    search --no-floppy --fs-uuid --set=root 14611dce-f4ab-498d-b1a1-609ed9f17da2
    linux   /boot/vmlinuz-2.6.38-11-generic-pae root=UUID=14611dce-f4ab-498d-b1a1-609ed9f17da2 ro   quiet splash vt.handoff=7
    initrd  /boot/initrd.img-2.6.38-11-generic-pae
 }

運行2.6.38-9配置:

 menuentry 'Ubuntu, mit Linux 2.6.38-9-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos1)'
    search --no-floppy --fs-uuid --set=root 14611dce-f4ab-498d-b1a1-609ed9f17da2
    linux   /boot/vmlinuz-2.6.38-9-generic-pae root=UUID=14611dce-f4ab-498d-b1a1-609ed9f17da2 ro   quiet splash vt.handoff=7
    initrd  /boot/initrd.img-2.6.38-9-generic-pae
 }

也許我是瞎子,但我看不出重要部分有什麼不同。

這是 blkid 輸出:

 halil@KlingonWarrior:~$ sudo blkid -c /dev/null
 /dev/sda1: UUID="14611dce-f4ab-498d-b1a1-609ed9f17da2" TYPE="ext4" 
 /dev/sda5: UUID="14ebd487-ff28-4678-831b-d94dd9df4f60" TYPE="swap" 
 /dev/sdb1: LABEL="HOMETREK" UUID="B044B71044B6D7F4" TYPE="ntfs" 

而且,如所寫,兩種配置都在「本機 IDE」模式下運作。

順便說一句,-11 核心的重新安裝是在 AHCI 模式下完成的。

編輯2:

好的,這是 fdisk 輸出:

 halil@KlingonWarrior:~$ sudo fdisk -lu

 Platte /dev/sda: 163.9 GByte, 163928604672 Byte
 255 Köpfe, 63 Sektoren/Spur, 19929 Zylinder, zusammen 320173056 Sektoren
 Einheiten = Sektoren von 1 × 512 = 512 Bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x477d477c

    Gerät  boot.     Anfang        Ende     Blöcke   Id  System
 /dev/sda1   *          63   308094569   154047253+  83  Linux
 /dev/sda2       308094570   320159384     6032407+   5  Erweiterte
 /dev/sda5       308094633   320159384     6032376   82  Linux Swap / Solaris

 Platte /dev/sdb: 500.1 GByte, 500107862016 Byte
 255 Köpfe, 63 Sektoren/Spur, 60801 Zylinder, zusammen 976773168 Sektoren
 Einheiten = Sektoren von 1 × 512 = 512 Bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x74720d9c

    Gerät  boot.     Anfang        Ende     Blöcke   Id  System
 /dev/sdb1   *          63   976768064   488384001    7  HPFS/NTFS

抱歉 4 德語輸出....需要更多資訊嗎?

答案1

僅供記錄:

我已經用最新最好的 BIOS(F4 beta)刷新了主機板,現在啟動問題已經消失了。

答案2

首先將 的輸出加入sudo fdisk -lu到您的問題中。然後嘗試以 AHCI 模式啟動,當進入 grub 選單時,按c進入命令列。輸入ls -lgrub 看到的磁碟機的詳細列表,並新增該資訊。在 IDE 模式下對控制器重複此操作,看看是否有任何差異。

相關內容