Problem
VFS: Cannot open root device "sda1" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block(0,0)
Or
Volume group "vgubuntu-studio" not found
Cannot process volume group vgubuntu-studio
Gave up waiting for root file system device.
Root Cause
SATA/SAS controller driver not loaded.
Fixing Procedure
- Booting with any kind of Linux Live CD
- Mounting pseudo file system
[[Mounting Pseudo File System]] - Changing running root
chroot /path/to/new/root /bin/bash
- Show PCIs and compatible kernel modules [[Command - lspci]]
lspci -k
- Rebuilding the kernel modules
cd /usr/src/linux && make menuconfig make && make modules_install mount /boot mount /boot/EFI # ONLY if necessary make install
- Regenerating
initramfs
dracut -a lvm --kver=x.y.zz-gentoo --force
- Regenerating
GRUB
menu listgrub-mkconfig | grep <Volume Group Name> grub-mkconfig -o /boot/grub/grub.cfg
Examples for VMware and Lenovo T420 booting issue
- For VMware:
- Kernel Module
SPIMPT
- Location
Device Drivers ---> [*] Fusion MPT device support ---> <*> Fusion MPT ScsiHost drivers for SPI
- Kernel Module
- For Lenovo T420
- Kernel Module
AHCI
- Location
Device Drivers ---> <*> Serial ATA and Parallel ATA drivers (libata) ---> <*> AHCI SATA support
- Kernel Module
Must be configured as a built-in kernel module!!!