LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Load Kernel from GRUB (http://www.linuxquestions.org/questions/linux-newbie-8/load-kernel-from-grub-238295/)

manudath 10-03-2004 02:34 PM

Load Kernel from GRUB
 
Hi people!

I am relatively a newbie to the Linux world. I wanted to create a bootable CD for my Dual boot machine (I am running RH 9.0 on a 120GB IDE Hard Drive)...

I got an article online to download the mkCDRec rpm and make a bootable CD through it. I was successful to write the bootable CD and was even able to boot from the CD.

But the problem is that the system boots throught the CD and goes to the command prompt... Only then I realized that this is just reading from the CD and it is not able to load the kernel that is present in my /boot partition... I even tried mounting the /boot partition to the /mnt/local folder... and it shows files like grub, vmlinux..., etc., I am not able to start Xwindows from this point, neither am I able to see all the files in my system unless I explicitly mount the /dev/hdax to some directory...

I want to load Linux from a CD just as how it boots from a floppy.... Can anyone please help me?

Thanks,
Manudath

omry_y 10-03-2004 02:43 PM

Hi manudath.
Do you have a menu.lst file inside /boot/grub on your hd?
if you do, you can load it from grub command prompt.
the command is something like that:
configfile (hd0,0)/boot/grub/menu.lst
hd0,0 is the first partition of the first disk in the system.
if your boot partition is somewhere else,change is.
note : you can get simple auto complet with grub, try:
conf [tab] ->
configfile ([tab] ->
configfile (hd
and a list of available hard drives will show, etc.

manudath 10-03-2004 11:18 PM

Thanks for the reply...

But, I am not able to find the configfile command... I tried editing the grub.conf file to set the (hd0,0)... But it didnt make any difference... Can you please help me with that?

Regards,
Manudath

omry_y 10-04-2004 01:36 AM

does your bootable cd starts grub command prompt? or a shell?
you see simething like
grub>
or
a shell prompt?

manudath 10-04-2004 12:16 PM

Well... booting from the cd, I go to the Shell prompt.... which has some basic commands... and from then I went to grub by doing:
# grub <Enter>
and it dropped me into the grub> prompt...

though I can see the kernel - vmlinz..., I dont know how to boot it... Also, I think the system is completely booting from the CD and the I dont think that it has got the image from the harddisk...

I tried writing a bootable CD using the boot.img from the floppy... and also tried the methods mentioned in a couple of articles: El Torito... doing a
"dd if=/dev/fd0 of=boot.img bs=10k count=144"

and then writing it on the CD using the command:
"mkisofs -r -b boot.img -c boot.catalog -o bootcd.iso ."

When I try booting from this CD, it says "This is not a bootable CD... Please enter a bootable CD... Try SYS command in DOS <something similar to that>"

Did you get the problem?

Thanks,
Manudath

omry_y 10-04-2004 06:04 PM

I am not familiar with creating boot cd's.
if you manage to get your cd boot, you should put grub configuration files in the /boot/grub in the cd image.
(BEFORE you burn the CD, ofcourse).

jeremy 10-05-2004 09:30 AM

Moved: This thread is more suitable in Linux - Newbie and has been moved accordingly to help your thread/question get the exposure it deserves.

--jeremy


All times are GMT -5. The time now is 08:12 AM.