Grubを使用してDebianとGentooを起動します。カーネルパニック!

Grubを使用してDebianとGentooを起動します。カーネルパニック!

私のコンピュータにDebianがあり、Gentooディストリビューションを追加したいと思います。 Debianの端末を介してGentooをインストールし、すべてのパッケージが表示されるようにGentooとしてルートを指定しました。

これで、次のコマンドを使用するGrub(Debianにインストールされている)にGentooを追加しました。

root@reborn:/home/jota# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Encontrada imagen de linux: /boot/vmlinuz-3.16.0-4-amd64
Encontrada imagen de memoria inicial: /boot/initrd.img-3.16.0-4-amd64
Encontrado Gentoo Base System release 2.3 en /dev/sda3
hecho
root@reborn:/home/jota#

だからうまくいきます。再起動したときにGentooの新しいエントリがありましたが、起動時にカーネルパニックエラーが発生したため、システムが停止しました。

Kernel panic - not synching:VFS:Unable to mount root fs on unknown-block(0,0)

grub.cfg部分は大丈夫に見えますが、

menuentry 'Gentoo Basic System Version 2.3 (en /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-f40f428c-f76d-489f-9d97-a259f34ed
    insmod部分_msdos
    モードext2の挿入
    ルート設定='hd0,msdos3'
    if [ x $ feature_platform_search_hint = xy ];
      検索 --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 f40f428c-f76d-489f-9d97 -a259f34ed457
    その他
      検索 --no-floppy --fs-uuid --set=root f40f428c-f76d-489f-9d97-a259f34ed457
    フィリピン諸島
    Linux /boot/vmlinuz-4.4.39-gentoo root=/dev/sda3 ro
}

fdiskの出力は次のとおりです。

デバイスの起動開始および終了セクタサイズIDタイプ
/dev/sda1 2048 97656831 97654784 46,6G 83 Linux
/dev/sda2 97656832 116088831 18432000 8,8G 82 Linux スワップ領域/Solaris
/dev/sda3*116088832 218488831 102400000 48,8G 83 Linux

sda1DebianとGentooの交換であるDebian/はどこにGentooですか?sda2sda3/

bootフラグスロットをsda1変更してみましたが、sda3何も変更されませんでした。

Gentooのfstabファイルは次のとおりです。

/dev/sda3/ext4エラー=再マウント-ro 0 1
/dev/sda2 スワップなし sw 0 0

編集:コメントで述べたように、Gentooはinitrd.imgファイルを生成せず、以前はこのファイルは必要ありませんでした。

root@reborn:/boot# ls /boot/
config-3.16.0-4-amd64 grub initrd.img-3.16.0-4-amd64 System.map-3.16.0-4-amd64 vmlinuz-3.16.0-4-amd64
root@reborn:/boot# ls /mnt/gentoo/boot/
config-4.4.39-gentoo config-4.4.39-gentoo.old grub System.map-4.4.39-gentoo System.map-4.4.39-gentoo.old vmlinuz-4.4.39-gentoo vmlinuz-4.4.39- Gentoo.old
ルート@reborn:/ブート#

ベストアンサー1

これはカーネルドライバの問題です。 PATAコントローラ用のドライバを追加する必要があります。

CONFIG_PATA_ATIIXP=y

lshw命令で見つけました。

*-ide
     description: IDE interface
     product: SB7x0/SB8x0/SB9x0 IDE Controller
     vendor: Advanced Micro Devices, Inc. [AMD/ATI]
     physical id: 14.1
     bus info: pci@0000:00:14.1
     version: 40
     width: 32 bits
     clock: 66MHz
     capabilities: ide bus_master
     configuration: driver=**pata_atiixp** latency=32 

おすすめ記事