View previous topic :: View next topic |
Author |
Message |
SQLBoy Guru
Joined: 17 Aug 2002 Posts: 381
|
Posted: Sat Aug 17, 2002 1:43 pm Post subject: Grub is killing me |
|
|
I am at the part of the install where I need to setup grub. So far, the installation has gone very smooth, no problems at all.
I read the little blurb on how to translate how linux describes a drive to grub, got that. So, I go into grub and do this:
root (hd4,0) // this means /dev/hde1 right?
it tells me:
Error 21: selected disk does not exist
Hmm, I go to fdisik -l /dev/hde
I get a list of all my partitions on hde as expected since I just installed gentoo to /dev/hde Like
/dev/hde1 * 1 407 205096 83 linux
/dev/hde2 408 3455 1536192 linux swap
/dev/hde3 yada yada yada
Figuring I'd try the next command in the directions, setup(hd0) which also exists.
I get "Error 12: Invalid device requested"
My setup is simple.
AMD Athlon XP, 768MB RAM, a Quantum 20gig on /dev/hda and a IBM 60 gig on /dev/hde.
I'm also confused as to how to build the initrd image. With redhat I always had to use the mkinitrd tool.
Anwyay, thats it. I hope I've communicated the problem. |
|
Back to top |
|
|
SQLBoy Guru
Joined: 17 Aug 2002 Posts: 381
|
Posted: Sat Aug 17, 2002 2:39 pm Post subject: Update.. |
|
|
Seems this Grub thing has command line completion so I did a root ( tab tab and it gave me a lshort list of IDE devices. hd0 and hd1.
I forgot to mention I also have 2 cdroms. does grub recognize those?
I have
/dev/hda 20 gig quantum fireball
/dev/hdc Pioneer DVD
/dev/hdd HP Burner
/dev/hde IBM
So, if grub is ignoring my cd's then technicall hd1 is /dev/hde? |
|
Back to top |
|
|
felysium n00b
Joined: 27 May 2002 Posts: 43 Location: Netherlands
|
Posted: Sat Aug 17, 2002 2:39 pm Post subject: |
|
|
I think grub will see only available disks. So in your case your root device will be: root (hd1,0)
put somthing like this in your menu.lst:
default 0
timeout 2
splashimage=(hd1,0)/boot/grub/splash.xpm.gz title=Gentoo Linux
root (hd1,0)
kernel /boot/bzImage root=/dev/hde3
About initrd: It's not necessary. |
|
Back to top |
|
|
SQLBoy Guru
Joined: 17 Aug 2002 Posts: 381
|
Posted: Sat Aug 17, 2002 3:00 pm Post subject: hmm |
|
|
Well, i tried that and I got "operating system not available" when I booted. Its ok though, I'll just boot with the cd and keep messing with it till it works
thnaks |
|
Back to top |
|
|
felysium n00b
Joined: 27 May 2002 Posts: 43 Location: Netherlands
|
Posted: Sat Aug 17, 2002 3:05 pm Post subject: |
|
|
felysium wrote: |
put somthing like this in your menu.lst:
default 0
timeout 2
splashimage=(hd1,0)/boot/grub/splash.xpm.gz title=Gentoo Linux
root (hd1,0)
kernel /boot/bzImage root=/dev/hde3
|
root=/dev/hde? has to point to your root partition. The one you mounted under /mnt/gentoo in the beginning of the installation process. |
|
Back to top |
|
|
browndawg n00b
Joined: 17 Aug 2002 Posts: 7
|
Posted: Sun Aug 18, 2002 4:49 pm Post subject: Grub Help |
|
|
I can not get windows XP to boot. I typed in
title=Windows XP
root=(hd0,0) My xp partition is hda1.
chainloader +1
what is the chainloader +1 used for. When I boot to windows, I getting an error. I need to get my windows machine up and running. |
|
Back to top |
|
|
browndawg n00b
Joined: 17 Aug 2002 Posts: 7
|
Posted: Sun Aug 18, 2002 5:11 pm Post subject: Re: Grub Help |
|
|
I can not get windows XP to boot.
Code: | title=Windows XP
root=(hd0,0) My xp partition is hda1.
chainloader +1 |
what is the chainloader +1 used for. When I boot to windows, I getting an error. I need to get my windows machine up and running. |
|
Back to top |
|
|
clacour n00b
Joined: 19 Apr 2002 Posts: 59 Location: Dallas, Tx USA
|
Posted: Sun Aug 18, 2002 6:29 pm Post subject: Re: Grub Help |
|
|
Instead of this:
browndawg wrote: |
title=Windows XP
root=(hd0,0) My xp partition is hda1.
chainloader +1
|
Try this:
Code: |
title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
|
First, using the regular "root" command causes grub to try and read the filesytem and do some checks. It doesn't have stuff for Windows, so that doesn't work there. 'Rootnoverify' tells it not to do those checks.
Second, you need the "makeactive" command. This changes the copy of the disk layout in memory to lie to Windows and tell it it's partition is the active one. Windows gets snarky and refuses to boot if it doesn't have this. (Most especially the later versions -- NT, 2000, XP. Don't know whether MS was trying to prevent dual-booting or actually had a need for that, but for whatever reason, the restriction is there.
I'd have to dig into the documentation to tell you which (and I'm too lazy to, at the moment) but "chainloader +1" either means "read the chainloader block (i.e. boot portion of the partition) for a length of 1 block" or "skip the first block (the boot block again) and read the chainloader."
If you're really curious, look through the grub documentation. The explanations fairly clear, I've just forgotten which of the two it is. For your purposes "chainloader +1" is the standard command to use when trying to boot Windows, so you had that part right. |
|
Back to top |
|
|
Valen Apprentice
Joined: 18 Aug 2002 Posts: 197 Location: Toronto, Ontario, Canada
|
Posted: Mon Aug 19, 2002 5:53 am Post subject: |
|
|
felysium wrote: | felysium wrote: |
put somthing like this in your menu.lst:
default 0
timeout 2
splashimage=(hd1,0)/boot/grub/splash.xpm.gz title=Gentoo Linux
root (hd1,0)
kernel /boot/bzImage root=/dev/hde3
|
root=/dev/hde? has to point to your root partition. The one you mounted under /mnt/gentoo in the beginning of the installation process. |
You might also be able to let grub do the work for you, when in the command line mode try 'find /boot/bzImage' (or whatever you chose to call the kernel) that will tell you the name of all harddisk/partitions this file exists on and you can select one of those to boot from. |
|
Back to top |
|
|
|