Rép. : Re: [K12OSN] GRUB?

Guy-Michel Lessard glessard at cegepoutaouais.qc.ca
Fri Nov 21 15:14:49 UTC 2008


Hi Mel,
Grub is a micro operating system with its own cli with command line completion.
As stated before, at the grub prompt:

1- grub > root (hd0,0)   At this moment, the disc is mounted

2-type grub > kernel /boot/TAB   this is the TAB key that invokes the command line completion and it will dump the list of possible files including the vmlinuz kernel files, choose the most logical version and complete with a short parameter list, so you should have something like:

kernel /boot/vmlinuz....  ro   root=/dev/hda1 

3- do the same for the initrd:
grub> initrd /boot/TAB... with no arguments

then the great command:
grub> boot

Bonne chance.


>>> "Mel Wade" <mel at melwade.com> 2008-11-20 21:45:40 >>>

With only the GRUB prompt how can you determin the version you have?


2008/11/19 Manoj Kumar <manoj.u.kumar at gmail.com>

>From the grub> prompt, type the following to boot the server
1. grub> root (hdx,y)
where x is the hard disk containing /boot
y is the partition number of /boot
2. grub> kernel /vmlinuz-<version> ro root=<device file name of root partition>
type the appropriate kernel to boot & the device file name of root partition
eg.,
grub> kernel /vmlinuz-2.6.18-8.el5 ro root=/dev/sda2
3. grub> /initrd-<version>.img
type the appropriate initrd version
4. grub> boot

Perform the above 4 steps & see if the server boots. If it boots then open /boot/grub/grub.conf and make the neccessary changes or if the file is missing create one 

Thanks 
Manoj


2008/11/19 Mel Wade <mel at melwade.com>

I did some updates and then rebooted the server.  Now all I'm getting is a grub prompt.  Not sure where to go from here...

-- 
Mel Wade
"The real problem is not whether machines think but whether men do." - BF Skinner
http://www.melwade.com



_______________________________________________
K12OSN mailing list
K12OSN at redhat.com
https://www.redhat.com/mailman/listinfo/k12osn
For more info see <http://www.k12os.org>



_______________________________________________
K12OSN mailing list
K12OSN at redhat.com
https://www.redhat.com/mailman/listinfo/k12osn
For more info see <http://www.k12os.org>




-- 
Mel Wade
"The real problem is not whether machines think but whether men do." - BF Skinner
http://www.melwade.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/k12osn/attachments/20081121/57ed8b2d/attachment.htm>


More information about the K12OSN mailing list