Fedora Linux Support Community & Resources Center
  #1  
Old 14th July 2008, 08:00 PM
herlit11 Offline
Registered User
 
Join Date: Jul 2008
Posts: 49
Raid1 -Grub error 15 file not found

Hello, everyone. I am having some problems installing a RAID1 configuration with FC9.
My raid1 array works fine but when i try to configure grub to boot from two different disks
it gives me: "Error 15 file not found"
This is the command sequence i typed at the grub shell
device (hd0) /dev/sda1
root (hd0,0)
setup (hd0)
Error 15: file not found

Any ideas? Thanks in advance, regards
Herlit11
Reply With Quote
  #2  
Old 14th July 2008, 08:33 PM
kudzu's Avatar
kudzu Offline
Registered User
 
Join Date: Jun 2008
Posts: 32
Are we talking about a softwre raid or hardware raid? I believe this msg is a result of grub's disability to find kernel or init, probably kernel cause initrd usually gives the message "attempted to kill init". If you have software raid i think you should use instead of /dev/sda1 /dev/md0 or whatever just an example i say. It would be usefull to give more info about the parttioning where the / is and the grub configuration where grub attempts to find / ???
Reply With Quote
  #3  
Old 14th July 2008, 09:44 PM
herlit11 Offline
Registered User
 
Join Date: Jul 2008
Posts: 49
Hi, thanks for your reply. I am running software raid1. I am sending you some information about my system.

This is the exact command sequence on the grub shell.

grub> device (hd0) /dev/sda1
grub> root (hd0,0)Unknown partition table signature
Error 5: Partition table invalid or corrupt
grub> setup (hd0)
Error 5: Partition table invalid or corrupt
grub>

This is grub.conf;

#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.23.1-42.fc8)
root (hd0,0)
kernel /vmlinuz-2.6.23.1-42.fc8 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.23.1-42.fc8.img

This is the output of df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/sdb3 9689 2381 6808 26% /
/dev/md1 67810 180 64130 1% /raid02
/dev/md0 67810 180 64130 1% /raid01
/dev/sda1 965 24 892 3% /boot
tmpfs 999 1 999 1% /dev/shm

This is the output of fdisk -lu

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x0007a108

Device Boot Start End Blocks Id System
/dev/sda1 * 63 2040254 1020096 83 Linux
/dev/sda2 2040255 145404314 71682030 fd Linux raid autodetect
/dev/sda3 145404315 288768374 71682030 fd Linux raid autodetect
/dev/sda4 288768375 312576704 11904165 5 Extended
/dev/sda5 288768438 292864949 2048256 82 Linux swap / Solaris

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x0007a108

Device Boot Start End Blocks Id System
/dev/sdb1 * 63 143364059 71681998+ fd Linux raid autodetect
/dev/sdb2 143364060 286728119 71682030 fd Linux raid autodetect
/dev/sdb3 286728120 307210994 10241437+ 83 Linux

Disk /dev/md1: 73.4 GB, 73402286080 bytes
2 heads, 4 sectors/track, 17920480 cylinders, total 143363840 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x8d8e666b

Device Boot Start End Blocks Id System
/dev/md1p2 4 143363839 71681918 83 Linux

Disk /dev/md0: 73.4 GB, 73402286080 bytes
2 heads, 4 sectors/track, 17920480 cylinders, total 143363840 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x563e4b12

Device Boot Start End Blocks Id System
/dev/md0p1 4 143363839 71681918 83 Linux
Reply With Quote
  #4  
Old 15th July 2008, 12:52 PM
herlit11 Offline
Registered User
 
Join Date: Jul 2008
Posts: 49
raid1

HI, it is herlit11 here. I forgot to post my fstab yesterday. I hope it helps to get some ideas.
Thanks in advance,
Herlit11

LABEL=/ / ext3 defaults 1 1
/dev/md1 /raid02 ext3 defaults 1 2
/dev/md0 /raid01 ext3 defaults 1 2
LABEL=/boot1 /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda5 swap swap defaults 0 0
Reply With Quote
  #5  
Old 15th July 2008, 01:01 PM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
"grub> device (hd0) /dev/sda1"

that's wrong. (hd0) is your hard disk so it should be /dev/sda, not /dev/sda1 which is your /boot partition.

So retry it with
grub --device-map=/dev/null

device (hd0) /dev/sda
root (hd0,0)
setup (hd0)
Reply With Quote
  #6  
Old 15th July 2008, 01:11 PM
herlit11 Offline
Registered User
 
Join Date: Jul 2008
Posts: 49
Thanks, Jeo . I just tried your solution and it worked. But when i try to boot that sda disk to check my raid1 config.
Grub gives me the folloiwing
Grub loading please wait
Error 15

Any ideas? Thanks in advance
Reply With Quote
  #7  
Old 15th July 2008, 01:27 PM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
Error 15 - probably some file not found. Have you looked at your /boot partition files?

su -
ls -l /boot
ls -l /boot/grub

and see if any are missing.
Reply With Quote
  #8  
Old 15th July 2008, 01:38 PM
herlit11 Offline
Registered User
 
Join Date: Jul 2008
Posts: 49
HI everyboy. I just setup grub to boot from the second disk and it worked. It boots to the grub prompt where i
have to load the kernel. I tried the command:
find / vmlinuz and i got
Error 15: File not found

Thanks a lot for your sincere effort.Regards
Herlit11
Reply With Quote
  #9  
Old 15th July 2008, 01:47 PM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
Just type find / and hit tab. It will list all of the available files.

The sequence I use with find is

find /grub/grub.conf

then it responds with (hd0,1) or whatever
so then I enter
root (hd0,1)
find /(hit tab key)
and all of the files list.
Reply With Quote
  #10  
Old 15th July 2008, 01:55 PM
herlit11 Offline
Registered User
 
Join Date: Jul 2008
Posts: 49
I just plugged the first hard disk back into the server and found the images in the /boot directory
But when i boot with the second hard disk i can not find them from the grub shell.
Do you think that trying "dd" command will transfer the image to the second disk?

ls -l /boot gives me the following :
total 5820
-rw-r--r-- 1 root root 79210 2007-10-30 15:00 config-2.6.23.1-42.fc8
drwxr-xr-x 2 root root 4096 2008-07-14 15:46 grub
-rw------- 1 root root 2980493 2008-07-14 13:28 initrd-2.6.23.1-42.fc8.img
drwx------ 2 root root 16384 2008-07-14 13:19 lost+found
-rw-r--r-- 1 root root 851074 2007-10-30 15:00 System.map-2.6.23.1-42.fc8
-rw-r--r-- 1 root root 1978656 2007-10-30 15:00 vmlinuz-2.6.23.1-42.fc8

Regards
Hernan
Reply With Quote
  #11  
Old 15th July 2008, 02:02 PM
herlit11 Offline
Registered User
 
Join Date: Jul 2008
Posts: 49
HI, i tried
find /grub/grub.conf
and i got the hd0,0 where the images are. This is in the first disk.
But when i unplugged the first disk and boot from the second one i get File not found.
It seems that the second disk does not have grub.conf or vmlinuz
Thanks
Herlit11
Reply With Quote
  #12  
Old 15th July 2008, 02:08 PM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
First don't mess around with "dd" it's not going to help in this situation. You just need to copy all of the files into their proper places on the first drive.

Try booting into the rescue mode, chroot /mnt/sysimage, use the command

grub-install /dev/sda

That should automatically recopy the (most likely missing) "stage" files into /boot/grub.
Reply With Quote
  #13  
Old 15th July 2008, 02:12 PM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
Another thing. Make sure that in rescue mode /dev/sda is really referring to the first drive. Use fdisk -l and look. If you have both drives connected at the same time they might be switched around.
Reply With Quote
  #14  
Old 15th July 2008, 02:27 PM
herlit11 Offline
Registered User
 
Join Date: Jul 2008
Posts: 49
I tried the grub-install and it worked . All the files are localted in /boot on the first disk. But there are none in the second one.
Maybe i should try grub-install /dev/sdb
What do you think about that? Can it work?
Thanks
Herlit11
Reply With Quote
  #15  
Old 15th July 2008, 02:31 PM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
If the second drive is your md raid I wouldn't mess around with grub-install on it. Post a new question on how to boot from an md raid I only have experience with dmraids.
Reply With Quote
Reply

Tags
error, file, grub, raid1

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 9 Grub error Error 15 File not found QuantumKnot Installation and Live Media 1 14th May 2008 07:35 AM


Current GMT-time: 23:33 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat