You are not logged in.

#1 2008-11-27 04:39:21

Joe_Arch
Member
Registered: 2008-11-27
Posts: 67

I need help figuring out GRUB [SOLVED]

So, I'm having a bit of trouble figuring out how grub's menu.lst should be configured on my system. I've scoured the internet and wiki, but I can't quite get it. Hopefully you can help me!

Here's some info:

joe@Snow-Crash:~$ sudo fdisk -l
[sudo] password for joe:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1e721e72

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       16554   132969973+  83  Linux
/dev/sda2   *       16555       19104    20482875   83  Linux
/dev/sda3           19105       19457     2835472+   5  Extended
/dev/sda5           19105       19457     2835441   82  Linux swap / Solaris

I have HH 8.04 on my main partition [sda1], and I'm trying to put Arch on my 20gb sda2 partition. I followed the beginner's guide up to the install grub section. When it had me review menu.lst the pertinent Arch section was
"title Arch Linux
root (hd0,0)
kernel /vmlinuz26 root=/dev/hda3 ro
initrd /kernel26.img"

Now, I was planning on just copying this bit and pasting it into HH's menu.lst (and not installing grub in arch's partition), but I thought that it didn't seem quite right. It turns out I was right, since I get an "error 15: File not found" when I choose to boot Arch.

So what should it be? This is how I understand it, in my admittedly newbie way.
Am I mistaken in that it should be "root (hd0,0)"   Since the root command points to where grub is residing (and I'm using HH's grub in sda1)?
And "kernel (hd0,1)/vmlinuz26 root=/dev/sda2" Since I need to designate that the kernel is on a different partition than (hd0,0), and my Arch partition is sda2?
and as far as I can tell it should be "initrd (hd0,1)/kernel26.img" since it's on a different partition.

I know I'm doing something wrong here, since I still get the same "file not found" error message. Can someone point out the error in my ways?

PS: Since I was having trouble with this I decided to try to to install GRUB in sda2 and use chainloader to point to it from HH's menu.lst. But when I tried to install grub via my Arch cd it gave me a generic "unable to install Grub" message. So I'm up a creek!


I hope you guys can help me out! Thanks.

Last edited by Joe_Arch (2008-11-27 07:51:13)

Offline

#2 2008-11-27 05:34:15

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: I need help figuring out GRUB [SOLVED]

Welcome Joe_Arch,

You have to set the root to the partition that contains the "OS image" (the kernel).  Also, you apparently don't have a separate /boot partition, so you have to add /boot/ to the beginning of the file names.

root (hd0,1)
kernel /boot/vmlinuz26 root=/dev/sda2 ro
initrd /boot/kernel26.img

Offline

#3 2008-11-27 05:46:42

Joe_Arch
Member
Registered: 2008-11-27
Posts: 67

Re: I need help figuring out GRUB [SOLVED]

So simple, and so correct:rolleyes:


Thanks peart! It's much appreciated. I'm now the proud owner of an Arch base install! Now to go add some eye-candy smile

Offline

Board footer

Powered by FluxBB