LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-03-2004, 02:34 PM   #1
manudath
Member
 
Registered: Oct 2004
Posts: 42

Rep: Reputation: 15
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
 
Old 10-03-2004, 02:43 PM   #2
omry_y
LQ Newbie
 
Registered: Sep 2004
Posts: 27

Rep: Reputation: 15
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.
 
Old 10-03-2004, 11:18 PM   #3
manudath
Member
 
Registered: Oct 2004
Posts: 42

Original Poster
Rep: Reputation: 15
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
 
Old 10-04-2004, 01:36 AM   #4
omry_y
LQ Newbie
 
Registered: Sep 2004
Posts: 27

Rep: Reputation: 15
does your bootable cd starts grub command prompt? or a shell?
you see simething like
grub>
or
a shell prompt?
 
Old 10-04-2004, 12:16 PM   #5
manudath
Member
 
Registered: Oct 2004
Posts: 42

Original Poster
Rep: Reputation: 15
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
 
Old 10-04-2004, 06:04 PM   #6
omry_y
LQ Newbie
 
Registered: Sep 2004
Posts: 27

Rep: Reputation: 15
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).
 
Old 10-05-2004, 09:30 AM   #7
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 10,422

Rep: Reputation: 2628Reputation: 2628Reputation: 2628Reputation: 2628Reputation: 2628Reputation: 2628Reputation: 2628Reputation: 2628Reputation: 2628Reputation: 2628Reputation: 2628
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
load grub again manomohan Red Hat 2 11-18-2005 10:53 PM
GRUB doesn't load rcracer7 Linux - Newbie 4 10-03-2005 12:16 AM
Grub won't load eggoz Linux - General 2 08-07-2005 08:01 PM
grub doesn't auto-load kernel, time/date auto-change, k3b cannot load kenji1903 Red Hat 16 03-27-2005 08:48 PM
GRUB Won't Load.... HELP! Spoon10 Fedora - Installation 10 07-27-2004 04:06 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration