LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-26-2004, 09:04 AM   #1
LinKoln
LQ Newbie
 
Registered: Jul 2004
Location: Texas
Distribution: Gentoo
Posts: 1

Rep: Reputation: 0
Kernel problems in 2.6.7 land


OOOOOOK. I'm upgrading to 2.6.7 ... From 2.4.20
I'm also switching from Devfs to Udev.
I add the correct boot options to grub
I have a PCI SCSI controller.

So grub's entry looks like:

title Linux 2.6.7
root (hd0,1)
kernel /boot/kernel-2.6.7 doscsi root=/dev/ram0 gentoo=nodevfs real_root=/dev/sda3 init=/linuxrc hda=ide-scsi
initrd /boot/initrd-2.6.7-testing

Now the problem... Real root has been every device I can think of that might possibly be the third partition on the scsi hard drive. Well what seems to be happening is that udev finds the scsi devices but I can't mount root. I have all the filesystem support i can cram into the kernel in there so it baffles me. Basically it rockets through actually detecting and installing the scsi device and various others and then i get this "Error lstat(2)ing md1..." ... md2 ... md3 etc until md255. then I get "Determining root device..." "Mounting root device..." and it freezes. I've noticed if I change the real_root to something completely obserd I can get into a shell or type in the root device that's correct, so apparently it sees sda3 and thinks it's the right partition only it can't mount it. WTF mate? I'm really at a stopping point if anyone could give me something to fish for answers in that would be highly useful...
 
Old 08-18-2004, 09:16 PM   #2
chazmati
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
I get the same "Error lstat(2)ing ..." /dev/md/* message ever since I added RAID support to the kernel (rather than as modules). I thought it was devfs weirdness for the RAID autodetection. But, although it's annoying, it doesn't interfere with my boot process, so I'm guessing that isn't your problem. Sounds like it's a GRUB issue.

I'm no GRUB expert, but I've worked through some problems with GRUB detecting drives. Maybe your "root (hd0,1)" in grub.conf is correct, but to be certain I'd make a GRUB boot floppy and install natively.

I think part of my trouble was that my 'root' partition for GRUB (where the kernel images are stored) wasn't on the primary hard drive (where GRUB was installed). The native install method shines here. Boot the GRUB floppy, then find where your BIOS sees your kernel images, set that as root for GRUB and then re-install GRUB.

Code:
grub> find /boot/grub/stage1
(grub outputs something useful here)

grub> root (hd3,0)
grub> setup (hd0)
So the confusing part is that there seems to be a root for GRUB (which is your /boot), and then there's a root for your Linux system. The native install might help you here; verify the GRUB/BIOS name for your /dev/sda3 by typing "find /bin/ls" (or any file that you know to be on /dev/sda3) at the grub> prompt, then set your grub.conf root to that BIOS name.

Good luck.

Chaz
 
  


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
The file just won't freakin' land! lectraplayer Linux - Networking 14 09-24-2005 08:17 PM
land surveying software tincat2 Linux - Software 3 04-27-2005 02:44 AM
The Promised Land is Great, But Plauged with Many Problems! flamesrock Mandriva 7 09-01-2003 05:32 PM
land surveyor zoot zacrah Linux - Software 2 11-27-2002 11:29 AM
Lost in KDE land RBLynch Linux - Newbie 1 02-19-2002 12:31 AM

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

All times are GMT -5. The time now is 07:57 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