View previous topic :: View next topic |
Author |
Message |
jl_678 n00b
Joined: 12 Dec 2003 Posts: 56
|
Posted: Tue Feb 24, 2004 2:08 pm Post subject: Grub installation errors. (error 15) [Solved] |
|
|
Hi,
I have looked everywhere on this bulleting board and have not found an answer to my problem. I am trying to setup my new Gentoo box which is running software RAID1. Here is the base partition scheme:
Code: | Device Boot Start End Blocks Id System
/dev/hda1 1 5 40131 fd Linux raid autodetect
/dev/hda2 6 68 506047+ 82 Linux swap
/dev/hda3 69 9733 77634112+ fd Linux raid autodetect |
I am running software RAID and here is my raidtab:
Code: | # /boot (RAID 1)
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
chunk-size 32
persistent-superblock 1
device /dev/hda1
raid-disk 0
device /dev/hdc1
raid-disk 1
# / (RAID 1)
raiddev /dev/md2
raid-level 1
nr-raid-disks 2
chunk-size 32
persistent-superblock 1
device /dev/hda3
raid-disk 0
device /dev/hdc3
raid-disk 1 |
Now my install has gone smoothly until this point. I emerged a new installation of grub and am trying to set it up. A listing of the /boot partition shows only a directory named "grub." A list of that directory shows the following:
Code: | e2fs_stage1_5 ffs_stage1_5 minix_stage1_5 splash.xpm.gz stage2 xfs_stage1_5
fat_stage1_5 jfs_stage1_5 reiserfs_stage1_5 stage1 vstafs_stage1_5 |
Okay the problem is that Grub refuses to recognize the existence of these files. Here is what happens when I run grub at the command prompt and input the appropriate commands:
Code: | grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0xfd
****This shows that I am using the boot partition because it is the only one running ext2fs****
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no
Error 15: File not found |
Now from above, we know that "/grub/stage1" exists so why is it saying that it doesn't? (I understand why it complains about /boot/grub, but I have tried to copy the /grub directory to /boot/grub and still get the same error.) I have tried multiple versions (.92-r1, .93.20031222, .93.20030118) of grub and always get the same errors.
Anyone have any thoughts about what is going on here?
TIA
JL
Last edited by jl_678 on Wed Feb 25, 2004 1:40 pm; edited 1 time in total |
|
Back to top |
|
|
michaelb l33t
Joined: 06 Jun 2002 Posts: 686 Location: Ann Arbor, MI
|
Posted: Tue Feb 24, 2004 4:43 pm Post subject: |
|
|
Well, I'm not familiar with raid setups, so this may be way off base, but I think /dev/hda1 needs to be flagged as bootable using fdisk. There should be an asterisk in the 'Boot' column in your partition scheme. _________________ Behold, The power of SEARCH! |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Wed Feb 25, 2004 2:10 am Post subject: |
|
|
Try booting with a GRUB floppy, and do the root and setup commands from there.
You can also try GRUB's find command.
Code: | grub> find /stage1
Error 15: File not found
grub> find /grub/stage1
(hd0,0)
(hd1,0)
grub> find /boot/grub/stage1
(hd0,0)
(hd1,0) |
|
|
Back to top |
|
|
jl_678 n00b
Joined: 12 Dec 2003 Posts: 56
|
Posted: Wed Feb 25, 2004 1:37 pm Post subject: |
|
|
Thank you everyone for your advice. I figured out what went wrong. First MichaelB was right about the fdisk configuration. (This was not causing the problem, but was a good catch nonetheless.)
The problem had to do with software RAID. Obviously, Grub cannot install to the RAID array directly, and when following the howto it indicates that you can leave the RAID array running and just install to the MBR of each volume contained in the array. This was incorrect and caused the failure.
The solution was to stop md0 (the /boot raid partition) and then mount the individual boot partitions and install grub onto that. (e.g. mount /dev/hda1 /mnt/gentoo/boot). I did this for both hda1 and hdc1 and everything went smoothly from there.
Thank you everyone for your help. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|