Load Kernel from GRUB
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?
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:
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] ->
and a list of available hard drives will show, etc.
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?
does your bootable cd starts grub command prompt? or a shell?
you see simething like
a shell prompt?
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?
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).
Moved: This thread is more suitable in Linux - Newbie and has been moved accordingly to help your thread/question get the exposure it deserves.
|All times are GMT -5. The time now is 03:23 PM.|