LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-17-2008, 09:29 AM   #1
crazy8
Member
 
Registered: Nov 2006
Posts: 136

Rep: Reputation: 15
udev trouble


Ok last week I was having some issues and was told to remove then re-install udev. Well I have done both but right now I get an error that reads...

Booting 'Dedora Core (2.6.22.14-72.fc6)'

root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel vmlinuz-2.6.22.14-72.fc6 ro root=/dev/sda1 rhgb quiet

Error 15: File not found

Press any key to continue...


So how do I fix this?

Thanks for the help
 
Old 04-17-2008, 09:50 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,889

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Quote:
Grub error 15 : File not found
This error is returned if the specified file name cannot be found,
but everything else (like the disk/partition info) is OK.
This usually means an error in the grub configuration file /boot/grub/menu.lst (grub.conf on some distros). The config file tells grub to look in the wrong place for it's files.

To resolve this, we need to see the following:

a) the output of fdisk -l

b) the contents of /boot/grub/menu.lst (just the menu entries with their kernel and initrd lines)

c) the contents of /etc/fstab

Your error is probably caused by an error in b), but the information from a) and c) is needed to determine the corrective edit to make in b).
 
Old 04-17-2008, 10:07 AM   #3
crazy8
Member
 
Registered: Nov 2006
Posts: 136

Original Poster
Rep: Reputation: 15
Ok I can get all of that for you. But how do I get to the shell, again when the system doesnt boot?
 
Old 04-17-2008, 10:39 AM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,889

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
First, try using your Fedora installation cd. When you power up the computer and it goes to the cd, you may see a menu offering options such as install, boot from hd, etc. Select boot from hd, and it should find your Fedora installation and boot it up.

You may be able to fix your boot problem by running grub-install while in Fedora, which should correct the issue with /boot/grub/menu.lst. If not, you should at least be able to get the information I requested.

If you can't boot into the Fedora installation from the install cd, try booting a liveCD and mount your Fedora partition to get the information.

If you have the means to download and burn a liveCD, get Ultimate Boot CD, which also makes it possible to boot your Fedora installation.
 
Old 04-17-2008, 11:35 AM   #5
crazy8
Member
 
Registered: Nov 2006
Posts: 136

Original Poster
Rep: Reputation: 15
Well I am still downloading UBC right now but just so happened I had a Slax live boot CD on me so here is the info you requested.

Results of fdisk -l
Disk /dev/sda: 500GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 *512 = 8225208 bytes

/dev/sda1 /boot
/dev/sda2 /
/dev/sda3 swap


Results of /etc/fstab

tmpfs / tmpfs defaults 0 0 # AutoUpdate
devpts /dev/pts devpts gid=5, mode=620 0 0 # AutoUpdate
proc /proc proc defaults 0 0 # AutoUpdate
/dev/hda /mnt/hda_cdrom iso9660 noauto,users,exec 0 0 # AutoUpdate
/dev/sda1 /mnt/sda1 ext3 auto,users,suid,dev,exec 0 0 # AutoUpdate
/dev/sda2 /mnt/sda2 ext3 auto,users,suid,dev,exec 0 0 # AutoUpdate
/dev/sda3 swap swap defaults 0 0 # AutoUpdate
/dev/fd0 /mnt/floppy vfat,msdos noauto,users,suid,dev,exec 0 0 # AutoUpdate

Results of /boot/grub/menu.lst

root (hd0,0)
kernel /vmlinuz-2.6.22.14-72.fc6 ro root=/dev/sda1 rhgb quiet
initrd /initrd-2.6.22.14-72.fc6.img


I hope I got everyting you were asking
Thanks so much for your help
 
Old 04-17-2008, 11:54 AM   #6
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,889

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Ok, here's what I see.

1) you have /boot on a seperate partition from the rest of the filesystem.
Quote:
/dev/sda1 /boot
/dev/sda2 /
2) your /boot/grub/menu.lst is looking for /boot in the same partition as the rest of the filesystem. And it show the root of the filesystem in the /boot partition instead of it's own partition of /dev/sda2.
Quote:
kernel /vmlinuz-2.6.22.14-72.fc6 ro root=/dev/sda1 rhgb quiet
initrd /initrd-2.6.22.14-72.fc6.img
To correct this to make it agree with your partition structure, make this correction
Quote:
kernel (hd0,0)/vmlinuz-2.6.22.14-72.fc6 ro root=/dev/sda2 rhgb quiet
initrd (hd0,0)/initrd-2.6.22.14-72.fc6.img
3) /etc/fstab has problems as well. The partition mount points are expressed incorrectly.
Quote:
dev/sda1 /mnt/sda1 ext3 auto,users,suid,dev,exec 0 0 # AutoUpdate
/dev/sda2 /mnt/sda2 ext3 auto,users,suid,dev,exec 0 0 # AutoUpdate
it should read
Quote:
dev/sda1 /boot ext3 auto,users,suid,dev,exec 0 0 # AutoUpdate
/dev/sda2 / ext3 auto,users,suid,dev,exec 0 0 # AutoUpdate
unless the fstab you copied is from the running Slack liveCD instead of the /etc/fstab in your Fedora partition.

Last edited by bigrigdriver; 04-17-2008 at 11:59 AM.
 
Old 04-17-2008, 01:26 PM   #7
crazy8
Member
 
Registered: Nov 2006
Posts: 136

Original Poster
Rep: Reputation: 15
Quote:
unless the fstab you copied is from the running Slack liveCD instead of the /etc/fstab in your Fedora partition.
Thats exactly what happened and I didnt realize it when I was typing all of that. Anyway MINE reads this...

LABEL=/1 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 1
.
.
.Some stuff in here
.
.
LABEL=SWAP-sda3 swap swap defaults 0 0

Anyway there is my info

Last edited by crazy8; 04-17-2008 at 02:25 PM.
 
Old 04-17-2008, 02:29 PM   #8
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,889

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Quote:
Results of fdisk -l
Disk /dev/sda: 500GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 *512 = 8225208 bytes

/dev/sda1 /boot
/dev/sda2 /
/dev/sda3 swap
/dev/sda3 is your swap partition.

Quote:
LABEL=SWAP-sda3 /mnt/backup ext3 defaults 0 0
This nees to be corrected to agree with the output of fdisk -l. Make it look like this:
Quote:
LABEL=SWAP-sda3 swap defaults 0 0
Your external drive should have another drive designation, possibly /dev/sdb. Switch it on and wait a few seconds, then run fdisk -l again. You should see the external drive listed as well as /dev/sda.
 
Old 04-17-2008, 02:43 PM   #9
crazy8
Member
 
Registered: Nov 2006
Posts: 136

Original Poster
Rep: Reputation: 15
Right now I have...
LABEL=SWAP-sda3 swap swap defaults 0 0
and for this one...
Quote:
LABEL=/1 / ext3 defaults 1 1
should I turn that into...
Quote:
LABEL=/ / ext3 defaults 1 1
???
 
Old 04-17-2008, 02:57 PM   #10
crazy8
Member
 
Registered: Nov 2006
Posts: 136

Original Poster
Rep: Reputation: 15
Here is my /etc/fstab file complete...

LABEL=/1 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
LABEL=SWAP-sda3 swap swap defaults 0 0
/dev/sdb1 /mnt/backup ext3 defaults 0 0

The only reason I show this now is that I noticed that lines 3 and 4 use the /dev dir and considering I removed udev which inturn removes the /dev directory wouldnt this be why I still get the "error 15" screen?

If so how do I fix it as I assume this may take a different approach now?
 
Old 04-17-2008, 04:24 PM   #11
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,889

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
In your initial post in this thread, you indicated that you removed and re-installed udev. Now you say you removed udev, which removed dev, and nothing about re-installing udev. So, which is it? Udev is install or udev is not installed.

Are you still getting error 15 when you try to boot Fedora from the hard drive?

Once more, show me the contents of /boot/grub/menu.lst to see the changes you made in response to earlier posts I made.
 
Old 04-18-2008, 09:24 AM   #12
crazy8
Member
 
Registered: Nov 2006
Posts: 136

Original Poster
Rep: Reputation: 15
My appologies, yes I did remove udev and it did remove the /dev directory, then I did reinstall ( as I was told to remove and reinstall udev) As of right now I do have my /dev directory and to my knowledge udev is installed (I used yum to do it).

Yes I am still getting error 15
Here is my current configuration...

title Fedora Core (2.6.22.14-72.fc6)
root (hd0,0)
kernel (hd0,0)/vmlinuz-2.6.22.14-72.fc6 ro root=/dev/sda2 rhgb quiet
initrd (hd0,0)/initrd-2.6.22.14-72.fc6.img
 
Old 04-18-2008, 12:15 PM   #13
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,889

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Quote:
/dev/sda1 /boot
/dev/sda2 /
/dev/sda3 swap

title Fedora Core (2.6.22.14-72.fc6)
root (hd0,0)
kernel (hd0,0)/vmlinuz-2.6.22.14-72.fc6 ro root=/dev/sda2 rhgb quiet
initrd (hd0,0)/initrd-2.6.22.14-72.fc6.img
Oops! My bad. I missed an obvious error.

The root of the filesystem is /dev/sda2 (hd0,1) and the /boot partition is /dev/sda1 (hd0,0).

Change *root (hd0,0)* to *root (hd0,1)*.

Also, verify the correctness of the vmlinuz and initrd information by comparing them with the files in /boot. A typo in the kernel numbers would also cause problems.

PS: google up a copy of "Solving Boot Problems with Grub" and file it away somewhere. It's very handy to have around. Scroll to the end for a listing of grub error codes and their meanings.

Last edited by bigrigdriver; 04-18-2008 at 12:33 PM.
 
Old 04-18-2008, 01:19 PM   #14
chiu ni
LQ Newbie
 
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
i wish to reinstall fedora core6 but the system fails to boot from cd/dvd although i've changed the boot setup to boot from cd/dvd.The prompt to press enter in order to boot from cd/dvd does not appear but Grub loader starts up immediately
 
Old 04-18-2008, 01:22 PM   #15
crazy8
Member
 
Registered: Nov 2006
Posts: 136

Original Poster
Rep: Reputation: 15
Well changing the root (hd0,0) to (hd0,1) didnt work either

Do you recommending me changing any of this stuff also???

kernel (hd0,0)/vmlinuz-2.6.22.14-72.fc6 ro root=/dev/sda2 rhgb quiet
initrd (hd0,0)/initrd-2.6.22.14-72.fc6.img

I will take a look on google and see what I can find. How ever I have taken a look in my boot partition and my /boot directory and have found this...

/boot partition contents...
/grub
/lost+found

/boot directory on /sda2...
---empty---

This doesnt feel good now that im seeing this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
slackware-current, udev 0.96, and custom udev rules not working rignes Slackware 6 08-10-2006 03:43 AM
Udev & devices trouble Macky Slackware 1 12-01-2005 02:11 PM
opensuse 10.0 pccard network udev ? trouble leonardo-vittorio SUSE / openSUSE 1 11-04-2005 02:38 AM
udev trouble - can't auto-symlink Yalla-One Slackware 8 11-03-2005 06:04 AM
trouble ahead, trouble behind....trouble with mplayer Goonie Linux - Software 3 07-02-2003 02:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration