Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Kernel Panic after partition re-order. Please help!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
dj_farid
l33t
l33t


Joined: 14 Jun 2004
Posts: 613

PostPosted: Fri Mar 03, 2006 10:45 pm    Post subject: [SOLVED]Kernel Panic after partition re-order. Please help! Reply with quote

I was fiddling around with my different partitions. I think that I got everything the way I wanted but...
I created an extra partition between my two NTFS partitions and my three linux partitions. This made the naming of the three linux partitions change, as expected.

/boot from /dev/hda5 to hda6
swap from /dev/hda6 to hda7
root from /dev/hda7 to hda8

Now when I boot I get:
Code:
Kernel panic -not syncing: VFS: Unable to mount root fs on unknown-block (3,7)


I got grub working. After reinstalling it and changing the config to point at the right partition.
/etc/fstab is changed also.

Is there something in the kernel that points to the old locations? Do I need to recompile the kernel, or is there something else I have missed?


Last edited by dj_farid on Sat Mar 04, 2006 5:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
eelke
Guru
Guru


Joined: 17 May 2004
Posts: 406
Location: Earth, Netherlands, Friesland

PostPosted: Sat Mar 04, 2006 8:26 am    Post subject: Reply with quote

In your kernel grub.conf should be a line similar to this one

Code:
kernel /kernel-2.6.14-gentoo-r2 root=/dev/hda8


Make sure the root parameter is correct. Should be hda8 in your case. If you have a resume/resume2 option you may have to correct that one to. Also check your /etc/fstab if you didn't do it allready

If you still have problems post your grub.conf and /etc/fstab
Back to top
View user's profile Send private message
dj_farid
l33t
l33t


Joined: 14 Jun 2004
Posts: 613

PostPosted: Sat Mar 04, 2006 5:36 pm    Post subject: Reply with quote

Thanks! It was a stupid mistake. I had forgotten to change the "root=/dev/hda8". I thought that I had since I had changed everything else in grub.conf...

Sometimes it's better to do this kind of bigger operations when you are not tired :roll:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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