Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VirtualBox, Grub 2, hardened; cannot read root partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Tatsh
Apprentice
Apprentice


Joined: 22 Jul 2007
Posts: 179

PostPosted: Fri Apr 04, 2014 7:42 am    Post subject: VirtualBox, Grub 2, hardened; cannot read root partition Reply with quote

I am getting the infamous 0,0 root device issue where the kernel panics. The partition list the kernel is supposed to show is empty. This seems like I must be missing something sort of obvious but I have no idea. I have all the drivers that are used on the live CD.

Installed grub 2 like so:
# grub2-install /dev/sda
# grub2-mkconfig -o /boot/grub/grub.cfg

Only difference I can think of honestly is that I am not using a separate /boot partition. Is it really that necessary? I have had plenty of machines work fine without it.

Kernel configuration: http://bpaste.net/show/197465/
Grub /boot/grub/grub.cfg: http://bpaste.net/show/197469/

fdisk -l
Code:

Disk /dev/sda: 21.5 GB, 21474836480 bytes, 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x972404e7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    41943039    20970496   83  Linux


/etc/fstab:
Code:

UUID="a900b938-8635-40b1-aa11-23161bf06198"             /               ext4            noatime         0 1


lspci -k:
Code:

00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
        Kernel driver in use: ata_piix
        Kernel modules: ata_piix, pata_acpi, ata_generic
00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
        Subsystem: Intel Corporation PRO/1000 MT Desktop Adapter
        Kernel driver in use: e1000
        Kernel modules: e1000
00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service
00:06.0 USB controller: Apple Inc. KeyLargo/Intrepid USB
        Kernel driver in use: ohci-pci
        Kernel modules: ohci_pci
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:0b.0 USB controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller
        Kernel driver in use: ehci-pci
00:0d.0 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 02)
        Kernel driver in use: ahci
        Kernel modules: ahci
Back to top
View user's profile Send private message
Irre
Guru
Guru


Joined: 09 Nov 2013
Posts: 340
Location: Stockholm

PostPosted: Fri Apr 04, 2014 10:54 am    Post subject: Reply with quote

I have a similar configuration with no boot-partition. I had to add "initrd".

grub.cfg:
Code:
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-30c9dac7-1478-44f1-91f4-2ca46a7dc34c' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  30c9dac7-1478-44f1-91f4-2ca46a7dc34c
        else
          search --no-floppy --fs-uuid --set=root 30c9dac7-1478-44f1-91f4-2ca46a7dc34c
        fi
        echo    'Loading Linux x86-3.13.7-gentoo ...'
        linux   /boot/kernel-genkernel-x86-3.13.7-gentoo root=UUID=30c9dac7-1478-44f1-91f4-2ca46a7dc34c ro 
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initramfs-genkernel-x86-3.13.7-gentoo
}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum