[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: grub question - please help



Bruce Park was roused into action on 2002-12-06 00:47 and wrote:
Hello folks,

I'm having a difficult time loading the linux partition in grub. I'm going to do the best that I can to explain what I understand and what I don't. I'm currenty using 2.4.-18-bf2.4 kernel. I am also using a floppy to test this. I have NOT loaded this into the MBR. Instead, the Lilo is in the MBR.

My partition consits of:
hd0,0   /dev/hda1    Windows    NTFS
hd0,1   /dev/hda2    boot            ext2
hd0,2.  /dev/hda3    Swap           Swap
hd0,3   /dev/hda4    Linux root     ext3

Now, I got the Windows part down but I cannot get the linux part. I'm going to add line numbers to make this easier to read. Here's what I have so far:

You've got the hardest part out of the way then... :)

1      title Linux
2      # load the boot partition to Grub
3      root (hd0,1)
4      load the kernel
5      kernel /vmlinuz root=/dev/hda4 ro
6      # this DOES NOT WORK
7      # kernel /vmlinuz-2.4.18-bf2.4 root=/dev/hda4 ro

You probably want to comment out line 5 and uncomment line 7. And then add the following as line 8:

initrd /initrd.img-2.4.18-bf2.4

Come to think of it, the leading '/' should probably be dropped for both.

Of course the initrd image should exist as well... (I'm not even sure how you're booting a 2.4.x kernel without it, though it has been a long time since I set all this up and so I may be a little hazy on it now).

You can also try absolute paths rather than relative ones; eg:


kernel (hd0,1)/vmlinuz-2.4.18-bf2.4 root=/dev/hda4 ro
initrd (hd0,1)/initrd.img-2.4.18-bf2.4



btw, what is Line 4 doing?

--
David P. James
4th Year Economics Student
Queen's University
Kingston, Ontario
http://members.rogers.com/dpjames/

The bureaucratic mentality is the only constant in the universe.
-Dr. Leonard McCoy, Star Trek IV



Reply to: