Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub error {solved}
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ubbaken
n00b
n00b


Joined: 02 May 2004
Posts: 28
Location: Canada

PostPosted: Fri Jul 16, 2004 7:49 pm    Post subject: grub error {solved} Reply with quote

I got things seemingly alright up until the point I reboot, when I was saddened to find out neither win xp or gentoo would boot.

Here is the /boot/grub/grub.conf file:
Code:
 default 0

timeout 30

splashimage=(hd0,0)/grub/splash.xpm.gz

title=Ken's Linux(2.6.7-gentoo-r11)
root (hd0,0)
kernel /kernel-2.6.7-gentoo-r11 root=/dev/hda1 vga=792


title=Win XP Pro
rootnoverify (hd0,3)
chainloader +1


And the /etc/fstab (when I reboot into the livecd to fix things, the fstab is back to the default...I don't know why):
Code:
/dev/hda1   /boot     reiserfs    noatime,notail    1 2
/dev/hda1   /         reiserfs    noatime,notail           0 1
/dev/hda2   none      swap            sw                0 0
#/dev/hda3   /mnt/media    FAT   user    0 0
#haven't setup and formatted yet

none        /proc     proc    defaults          0 0
none        /dev/shm  tmpfs   defaults          0 0
none        /proc/bus/usb   usbfs         defaults      0 0


/dev/cdroms/cdrom0    /mnt/cdrom    auto      noauto,user    0 0


my partition layout is as follows

/dev/hda1 - reiserfs -- /
/dev/hda2 - swap
/dev/hda3 - FAT32 - /mnt/media (D:/)
/dev/hda4 - FAT32 - C:/

The error is:
Code:
   Booting 'Ken's Linux (2.6.7-gentoo-r11)'
root (h0,0)
   Filesystem type is reiserfs, partition type 0x83
kernel /kernel-2.6.7-gentoo-r11 root=/dev/hda1 vga=792

Error 15: File not found

Press any key to restart...


And for the win xp attempt:
Code:
    Booting 'Win XP Pro'
rootnoverify (hd0,3)
chainloader +1

Remove disks or other media
Press any key to restart...


For both of these, the grub menu shows up with bootsplash and everything, but then it switches to a black screen when it outputs that error.

I installed XP first, then went back to install linux, and put GRUB in the MBR (hd0)

If there is any other information needed, I will put it up, but I think that should do.

Thanks for any help.


Last edited by ubbaken on Tue Aug 10, 2004 8:03 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Fri Jul 16, 2004 8:05 pm    Post subject: Reply with quote

ubbaken,

I'll leave the XP to the windows users.

You really dont want to mount /dev/hda1 as both root ("/") and /boot

You don't appar to have a real boot partition, which is OK, but you need to allow for that in grub.conf so your
Quote:
kernel /kernel-2.6.7-gentoo-r11 root=/dev/hda1 vga=792
should be
Code:
kernel /boot/kernel-2.6.7-gentoo-r11 root=/dev/hda1 vga=792


Play with grubs command line editor to check it out/ When its right the system will boot and you can fix it properly.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
butters
Guru
Guru


Joined: 13 May 2002
Posts: 427
Location: Poughkeepsie, NY

PostPosted: Fri Jul 16, 2004 10:10 pm    Post subject: Reply with quote

There's another problem with what you're doing... thanks for mentioning the "odd" fstab behavior. When you boot from the LiveCD, you are NOT in your native gentoo environment, you are in the LiveCD environment. In order to change things, you need to follow the install guide directions for chrooting into your gentoo install, starting from mount /dev/hda1 /mnt/gentoo.

Don't put an entry for /boot if you don't have a separate boot partition. If your kernel is REALLY in your / directory, then your grub.conf looks fine, but the directions tell you to place it in /boot.

My guess as to the windows problem is that you fixed the LiveCD's grub.conf and your real grub.conf entry for windows is different (and incorrect). The one you have in your post looks OK to me.

Good luck!!
_________________
If tugboats were bigger, they'd be the ones getting tugged.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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