View previous topic :: View next topic |
Author |
Message |
Bia n00b
Joined: 27 May 2011 Posts: 65
|
Posted: Thu Nov 08, 2012 1:55 pm Post subject: Kernel panic |
|
|
Just tried o install gentoo on my pc and everything went fine untill i booted up :
Code: | VFS: Cannot open root device "sda3" or unknown-block(0,0): error -6 please append a correct "root=" boot option; here are the available partions: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) Pid: 1, com : swapper/0 Not tainted 3.5.7-gentoo
|
I am using genkernel.
Heres Fstab: Code: |
/dev/sda1 /boot ext2 defaults,noatime 0 2
/dev/sda3 / ext4 noatime 0 1
/dev/sda2 none swap sw 0 0 |
And Grub: Code: |
default 0
timeout 30
title gentoolinux
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.5.7-gentoo root=/dev/sda3 rootfstype=ext4 |
so what did i screw this time? |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Nov 08, 2012 3:32 pm Post subject: |
|
|
boot cd, mount gentoo partitions, enter the chroot, nominally: Code: | mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -t proc none /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1" | Edit /boot/grub/grub.conf: Quote: | default 0
timeout 30
title gentoolinux
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.5.7-gentoo root=/dev/ram0 real_root=/dev/sda3 rootfstype=ext4
initrd /boot/initramfs-genkernel-amd64-3.5.7-gentoo | then genkernel builds critical drivers as modules, an initrd/initramfs is needed to install them _________________ Defund the FCC. |
|
Back to top |
|
|
Bia n00b
Joined: 27 May 2011 Posts: 65
|
Posted: Thu Nov 08, 2012 4:19 pm Post subject: |
|
|
DONAHUE wrote: | boot cd, mount gentoo partitions, enter the chroot, nominally: Code: | mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -t proc none /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1" | Edit /boot/grub/grub.conf: Quote: | default 0
timeout 30
title gentoolinux
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.5.7-gentoo root=/dev/ram0 real_root=/dev/sda3 rootfstype=ext4
initrd /boot/initramfs-genkernel-amd64-3.5.7-gentoo | then genkernel builds critical drivers as modules, an initrd/initramfs is needed to install them |
oh thanx for the info i tought that old grub cant handle ext4 filesystem so i instaled grub2 and its working now grubmakecofing fixed the intramfs |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Nov 08, 2012 4:25 pm Post subject: |
|
|
good for you. BTW legacy grub has been ext4 capable for about two years now. _________________ Defund the FCC. |
|
Back to top |
|
|
sundialsvc4 Guru
Joined: 10 Nov 2005 Posts: 436
|
Posted: Tue Nov 13, 2012 1:20 am Post subject: |
|
|
Later on, you can learn how to build a kernel with the filesystem support that you may require built-in, so that you don't have to use the initial ramdisk. But, not yet. Not yet. |
|
Back to top |
|
|
|