Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel panic
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
Bia
n00b
n00b


Joined: 27 May 2011
Posts: 65

PostPosted: Thu Nov 08, 2012 1:55 pm    Post subject: Kernel panic Reply with quote

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
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6251
Location: Goose Creek SC

PostPosted: Thu Nov 08, 2012 3:32 pm    Post subject: Reply with quote

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
Code:
exit
reboot
genkernel builds critical drivers as modules, an initrd/initramfs is needed to install them
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Bia
n00b
n00b


Joined: 27 May 2011
Posts: 65

PostPosted: Thu Nov 08, 2012 4:19 pm    Post subject: Reply with quote

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
Code:
exit
reboot
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
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6251
Location: Goose Creek SC

PostPosted: Thu Nov 08, 2012 4:25 pm    Post subject: Reply with quote

good for you. BTW legacy grub has been ext4 capable for about two years now.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
sundialsvc4
Guru
Guru


Joined: 10 Nov 2005
Posts: 433

PostPosted: Tue Nov 13, 2012 1:20 am    Post subject: Reply with quote

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
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