LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-09-2004, 07:08 PM   #1
Farmchild
LQ Newbie
 
Registered: Oct 2002
Distribution: Red Hat 8
Posts: 14

Rep: Reputation: 0
2.6.3 can't mount root


I use Red hat 9.0, and I just compiled 2.6.3. When i boot, i get an error while mounting root. It tells me the label Linux could not be found, so root could not be mounted. Because of this it also tells me that the initrd couldn't be found, and to try using a init= to pass the init into the kernel. Here is my grub.conf:

default=2
timeout=10
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.6.3)
root (hd0,4)
kernel /boot/vmlinuz-2.6.3 ro root=LABEL=Linux hdd=ide-scsi
initrd /boot/initrd-2.6.3.img
title Red Hat Linux (2.4.20-8)
root (hd0,4)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=Linux hdd=ide-scsi
initrd /boot/initrd-2.4.20-8.img
title Windows XP
rootnoverify (hd0,3)
chainloader +1

2.4.20-8 still works fine, and it uses the label Linux as well. I did compile ext2 and ext3 file systems into the kernel, but i can't figure out why it won't find root.

Last edited by Farmchild; 03-09-2004 at 07:10 PM.
 
Old 03-10-2004, 11:07 AM   #2
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
You can try to change the line:

kernel /boot/vmlinuz-2.6.3 ro root=LABEL=Linux hdd=ide-scsi

to:

kernel /boot/vmlinuz-2.6.3 ro root=/dev/hdad hdd=ide-scsi

and see if you can boot. This should allow you to relabel the partition

% /sbin/e2label /dev/hdad Linux

You can then see if you can switch grub.conf back, but I don't really see the point if it boots the other way.

Note: I based the /dev/hdad on the root(hd0,4). If this is incorrect, then replace /dev/hdad with the proper partition.

Hope this helps,

Forrest
 
Old 03-10-2004, 01:08 PM   #3
Farmchild
LQ Newbie
 
Registered: Oct 2002
Distribution: Red Hat 8
Posts: 14

Original Poster
Rep: Reputation: 0
As an update, this is exactly the errors i get:

creating root device
Mounting root filesystem
moutn: error 6 mounting ext2
pivot root: pivot_root (/sysroot/, /sysroot/initrd) failed: 2
umount /initrd/proc failed: 2
freeing unused kernel memory: 153k freed
kernel panic: no init found. Try passing init= option to kernel

This happened even when i replaced root=LABEL=Linux with the partition number (/dev/hdad)...The problem shouldn't be the Label anyway, because my old kernel uses the same label and works fine. Any more help is appreciated, I'm going to look up the mount error code 6 and see what it is...

Last edited by Farmchild; 03-10-2004 at 01:26 PM.
 
Old 03-10-2004, 03:41 PM   #4
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
OK, with those added details, it sounds like you have compiled something as a module that you need at boot time. (Anything that is needed before the disks can be read can't be compiled as a module). You need to go back through your compile process and look for anything that you compiled as a module that might be needed early on in the boot process and change it to not be a module.

(One example, ext2 can't be compiled as a module since it is needed to read the disk and therefore you can't read the disk to load the module until it is loaded.....)

Hope this helps,

Forrest
 
Old 03-13-2004, 04:39 PM   #5
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
creating root device
Mounting root filesystem
moutn: error 6 mounting ext2
pivot root: pivot_root (/sysroot/, /sysroot/initrd) failed: 2
umount /initrd/proc failed: 2
freeing unused kernel memory: 153k freed
kernel panic: no init found. Try passing init= option to kernel,me 2,david
 
Old 03-13-2004, 06:25 PM   #6
Farmchild
LQ Newbie
 
Registered: Oct 2002
Distribution: Red Hat 8
Posts: 14

Original Poster
Rep: Reputation: 0
Well, it doesn't really matter to me anymore, I switched over to Slackware, as I've been wanting to try it for a while now, and I compiled and install 2.6.3 just fine.
 
Old 04-25-2004, 05:02 AM   #7
sundling
LQ Newbie
 
Registered: Mar 2004
Location: Los Angeles
Distribution: fedora core
Posts: 4

Rep: Reputation: 0
Might have two root labels

When I had this problem it was caused by having two disks with the same label.

Paul Sundling
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
Auto mount. non root mount canyon289 Linux - Hardware 1 02-21-2005 10:05 PM
only root can mount? jsfour Slackware 2 02-22-2004 02:25 PM
patched mount source. works but i must be root to mount !!!??? qwijibow Linux - Software 2 01-29-2004 06:59 AM
vfat mount - all files are 'root' owned, but even root can't -WX d33pdream Linux - General 5 02-28-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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