Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with Grub installing [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
LeHardi
n00b
n00b


Joined: 02 Oct 2005
Posts: 37

PostPosted: Mon Oct 10, 2005 10:51 pm    Post subject: Problem with Grub installing [SOLVED] Reply with quote

Hi!

I'm installing Gentoo 2005.1 but I can't correctly configure and install Grub bootloader. After gtub-install I got error: Could not find device for /boot: Not found or not a block device. Is it caused by wrong /etc/fsatb config - I haven't separate boot partition, so itsn't any boot description in /etc/fstab. Please tell me how should look /etc/fstab to correctly mount partitions:
hda1 - fat32
hda2 - ntfs
hda3 - ntfs
hda4 -ntfs
hda7 - /home reiserfs
hda8 - /var reiserfs
hda9 - / reiserfs
hda10 - swap
hda11 - /usr/local
and CD and DVD.
I'm newbie and I can make some mistakes in this important config file. But speaking about grub.conf - how should it look like to make dual boot config (hda2 -> WinXP and hda9 root partition). Please help me, because without your help I can't finish this Gentoo installation).

Regards
--
LeHardi


Last edited by LeHardi on Tue Oct 11, 2005 9:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
at240
l33t
l33t


Joined: 12 Aug 2005
Posts: 603
Location: UK

PostPosted: Mon Oct 10, 2005 11:06 pm    Post subject: Reply with quote

grub.conf:

Code:
default 0
timeout 10

title=Gentoo Linux 2.6.13-r3
root (hd0,8)
kernel /kernel-2.6.13-gentoo-r3 root=/dev/hda9

title=Windows XP
rootnoverify (hd0,1)
makeactive
chainloader +1


You might have to change the description of the kernel if you're not using 2.6.13-r3. Also, this assumes that /boot is in with the root partition, which I guess it is. HTH
Back to top
View user's profile Send private message
LeHardi
n00b
n00b


Joined: 02 Oct 2005
Posts: 37

PostPosted: Tue Oct 11, 2005 4:49 pm    Post subject: Reply with quote

at240 wrote:
grub.conf:

You might have to change the description of the kernel if you're not using 2.6.13-r3. Also, this assumes that /boot is in with the root partition, which I guess it is. HTH


OK. That's my grub.conf:
Code:

default 0
timeout 30
splash = (hd0,0) /grub/splash.xpm.gz
title = Gentoo Linux 2.6.12 Gentoo r6
root (hd0,8)
kernel /kernel-2.6.12-gentoo-r6 root=/dev/hda9

title = Windows XP
rootnoverify (hd0,4)
makeactive
chainloader +1


My Win XP partition is /dev/hda5, no /dev/hda2 as I mentioned earlier.
But when I'm trying run Linux I got this error 15: File not found, and when I want to run Window XP I got error 12: Invalid device requested. I've read https://forums.gentoo.org/viewtopic-t-122656.html but it didn't help. Writing abut this error 15: I've copied bzImage file from /usr/src/linux/arch/boot to /boot, as it's described in this topic. I don't know what's wrong.
About error 15 (WinXP booting): I did:
Code:

grub
grub> root (hd0,8)
grub>setup (hd0)
grub>quit

It didn't solve this problem. When I'm trying alternative way of grub installation: grub-install /dev/hda9 (I've tried /dev/hda too) or grub-install hd0, but it says grub cannot find /boot (invalid block device). As I wrote earlier I haven't separate /boot partition, so maybe it's a matter of wrong settings in config files.
--
LeHardi
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Tue Oct 11, 2005 4:57 pm    Post subject: Reply with quote

Quote:
kernel /kernel-2.6.12-gentoo-r6 root=/dev/hda9

If you copied bzImage to /boot then it's still named bzImage unless you specified another name.
So try this
Quote:
kernel /boot/bzImage root=/dev/hda9

_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
LeHardi
n00b
n00b


Joined: 02 Oct 2005
Posts: 37

PostPosted: Tue Oct 11, 2005 9:04 pm    Post subject: Reply with quote

nixnut wrote:
Quote:
kernel /kernel-2.6.12-gentoo-r6 root=/dev/hda9

If you copied bzImage to /boot then it's still named bzImage unless you specified another name.
So try this
Quote:
kernel /boot/bzImage root=/dev/hda9


Thanks - it worked for me!
Talkin' about WinXP: it starts from hd 0,0 - /dev/hda1. I think, that's because there's (on /dev/hda1 - FAT32) WinXP loader installed (it was dual boot Win XP and Win 98 some time ago). So it starts from /dev/hda1 not /dev/hda5 (where's XP installed).
--
LeHardi
Back to top
View user's profile Send private message
MickKi
Veteran
Veteran


Joined: 08 Feb 2004
Posts: 1173

PostPosted: Tue Oct 11, 2005 9:13 pm    Post subject: Reply with quote

When WinXP is installed in a multiboot M$Windoze setup, it puts its boot files in the first M$windoze partition it finds and edits the boot.ini to refer ntldr to the correct partition where the WinXP's partition boot sector resides. Also, the first M$Windoze partition MUST be marked with the boot active flag using fdisk, otherwise the WinXP boot loader will fall over and hang the system.
_________________
Regards,
Mick
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