View previous topic :: View next topic |
Author |
Message |
LeHardi n00b
Joined: 02 Oct 2005 Posts: 37
|
Posted: Mon Oct 10, 2005 10:51 pm Post subject: Problem with Grub installing [SOLVED] |
|
|
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 |
|
|
at240 l33t
Joined: 12 Aug 2005 Posts: 603 Location: UK
|
Posted: Mon Oct 10, 2005 11:06 pm Post subject: |
|
|
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 |
|
|
LeHardi n00b
Joined: 02 Oct 2005 Posts: 37
|
Posted: Tue Oct 11, 2005 4:49 pm Post subject: |
|
|
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 |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Tue Oct 11, 2005 4:57 pm Post subject: |
|
|
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 |
|
|
LeHardi n00b
Joined: 02 Oct 2005 Posts: 37
|
Posted: Tue Oct 11, 2005 9:04 pm Post subject: |
|
|
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 |
|
|
MickKi Veteran
Joined: 08 Feb 2004 Posts: 1173
|
Posted: Tue Oct 11, 2005 9:13 pm Post subject: |
|
|
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 |
|
|
|