View previous topic :: View next topic |
Author |
Message |
davser n00b
Joined: 26 May 2005 Posts: 27
|
Posted: Fri May 27, 2005 9:16 pm Post subject: Help me configure grub.conf... |
|
|
Quote: | # Which listing to boot as default. 0 is the first, 1 the second etc.
default 0
# How many seconds to wait before the default listing is booted.
timeout 30
# Nice, fat splash-image to spice things up
# Comment out if you don't have a graphics card installed
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.11-r3
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r3 root=/dev/hda3
# The next four lines are only if you dualboot with a Windows system.
# In this case, Windows is hosted on /dev/hda6.
title=Windows XP
rootnoverify (hd0,5)
makeactive
chainloader +1 |
I don't understand this thing of (hd0,0) what is this??? and (hdo, 5)???? I have in hda, windows xp. I have the linux on hdd (hdd2, hdd3, hdd4)
Can you help me configure this??? |
|
Back to top |
|
|
JRV Apprentice
Joined: 10 Jan 2004 Posts: 291
|
Posted: Fri May 27, 2005 9:33 pm Post subject: Re: Help me configure grub.conf... |
|
|
Hi davser,
GRUB just calls your hard drives and their partitions differently than Linux does. Linux names the disks after where they are connected on the bus (for example: hda => first IDE channel, master; hdd => second IDE channel, slave). In GRUB, the first disk found is called hd0, the second is called hd1, etc. Partitions within the disks also start at 0, so the second partition on the first disk would be called hd0,1. Assuming that you only have two IDE disks connected and they are called /dev/hda and /dev/hdd, as you said, the mapping would be as follows:
/dev/hda = (hd0)
/dev/hda1 = (hd0,0)
/dev/hda2 = (hd0,1)
/dev/hda3 = (hd0,2)
...
/dev/hdd = (hd1)
/dev/hdd1 = (hd1,0)
/dev/hdd2 = (hd1,1)
/dev/hdd3 = (hd1,2)
...
So,
Quote: | splashimage=(hd<something>,<something>)/grub/splash.xpm.gz |
should point to the boot partition of your Linux drive, probably (hd1,0).
Quote: | root (hd<something>,<something>) |
should point to your boot partition as well (_not_ the root partition, despite it's name. It's the root for GRUB only)
Hope this helps a little. Ask if you need further help!
Greets,
Julius
PS: This is also covered in the install docs:
http://www.gentoo.org/doc/en/handbook/2005.0/handbook-x86.xml?part=1&chap=10#doc_chap2 |
|
Back to top |
|
|
davser n00b
Joined: 26 May 2005 Posts: 27
|
Posted: Fri May 27, 2005 10:18 pm Post subject: |
|
|
I have 3 disks..., I have hda, hdb and hdd. [hdb(ide2-1 has the cd-rom)]
The hdd has a NTFS partition(hdd1) and then the 3 linux partititions (hdd2, hdd3, hdd4)
So, by your thread hdd2 --> (hd2,2)
hdd3---->(h2,3)
hdd4 --->(h2,4)
Just confirm to me please |
|
Back to top |
|
|
JRV Apprentice
Joined: 10 Jan 2004 Posts: 291
|
Posted: Fri May 27, 2005 10:26 pm Post subject: |
|
|
davser wrote: | hdd2 --> (hd2,2)
hdd3---->(h2,3)
hdd4 --->(h2,4) |
Almost! Remember that GRUB's numbering starts at 0, so it is:
Quote: | hdd2 --> (hd2,1)
hdd3---->(h2,2)
hdd4 --->(h2,3) |
By the way, you can edit existing and enter your own boots commands directly at the GRUB boot prompt, in case something isn't 100% correct in your config. It also supports tab-completion... |
|
Back to top |
|
|
davser n00b
Joined: 26 May 2005 Posts: 27
|
Posted: Fri May 27, 2005 11:24 pm Post subject: Ups, error |
|
|
"filesystem type is ext2f, partition type 0x83
Kernel /kernel-2.6.11-gentoo-r9 root=/dev/hdd4
Error 15: File not found"
what is the problem, the partition is right (I think)
maybe I have the kernel in some other directory, but what, /boot directory????
any suggestions???? |
|
Back to top |
|
|
JRV Apprentice
Joined: 10 Jan 2004 Posts: 291
|
Posted: Fri May 27, 2005 11:34 pm Post subject: Re: Ups, error |
|
|
davser wrote: | "filesystem type is ext2f, partition type 0x83
Kernel /kernel-2.6.11-gentoo-r9 root=/dev/hdd4
Error 15: File not found"
what is the problem, the partition is right (I think)
|
Mount your "boot" partition and see what your kernel is called. It's most likely called "vmlinuz" or "vmlinuz-somethingorother", not "kernel-something...". |
|
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
|
|