LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-05-2005, 09:39 PM   #1
warinthepocket
LQ Newbie
 
Registered: Nov 2004
Distribution: FreeBSD, NetBSD
Posts: 21

Rep: Reputation: 15
configuring kernel, booting to root partition


I compiled a new kernel so that I could install drivers for my 2 video nvidia cards
when I select the new kernel off of grub it starts booting and has a kernel panic,
VFS says that is cant mount the root drive
it's trying to mount (0.0) when it should be mounting (0.1)
...so my question is , how do I configure it to mount the right drive?
with gatitude
-Dan
 
Old 02-06-2005, 12:22 AM   #2
sgrayban
Member
 
Registered: Nov 2004
Location: Spokane, WA
Distribution: Debian 6.0
Posts: 369

Rep: Reputation: 30
i would ask this question in the forum for your distro
 
Old 02-06-2005, 12:43 AM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
kernel (hd0,5)/boot/vmlinuz root=/dev/hda6 vga=0x317 splash=silent desktop hdc=ide-scsi hdclun=0 showopts
initrd (hd0,5)/boot/initrd


(hd0,5) is the partition where the /boot folder is. This also happens to be the root filesystem.

If you have a paritition that has the kernel in it then it would be like this..

kernel (hd0,5)/vmlinuz


Here is the root filesystem..
root=/dev/hda6

This is where the root filesystem is. They are not always nor do they need to be in the same place as this one is.


another example..

kernel (hd0,0)/vmlinuz

this is the first partition on the primary master being used as a boot partition.


root=/dev/hdb2

this is the second partition on the primary slave where the filesystem is.


kernel (hd0,0)/vmlinuz root=/dev/hdb2


In this case the fstab my have this...

/dev/hda1 /boot ext3 defaults 0 0


so that's your /boot partition where the kernel is, the root filesystem is in /dev/hdb2





For yours if the kerel is in /dev/hda1 and the filesystem is /dev/hda2...


kernel (hd0,0)/vmlinuz root=/dev/hda2



If you have it correct then maybe you did not add your filesystem support to the kernel.

Last edited by DavidPhillips; 02-06-2005 at 12:54 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting into Single User on MDK 9 asks for root password instead of booting into root acadcworks Linux - General 6 01-10-2006 06:51 AM
configuring kernel 2.6.10, need root? timsch75 Linux - Newbie 5 02-06-2005 04:08 PM
Booting Kernel with simulated root file-system priyankadeven Linux - Newbie 2 12-29-2004 06:47 PM
pivot root error while booting kernel 2.6.7 tuxrules Linux - Newbie 21 08-08-2004 12:25 PM
When booting from a CD I can't boot from my root partition. sharpie Linux - Newbie 3 01-28-2004 05:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration