Page 1 of 1
Linux Grub
Posted: Tue Nov 22, 2005 3:57 am
by hytechpro
Need help for re-installing Linux Grub on my computer.
Thanks.
Posted: Tue Nov 22, 2005 4:13 am
by jmut
hm...
I don't like the signature....
Looks like...
Asking any questions just let them chek on the url.
Posted: Tue Nov 22, 2005 4:20 am
by Weirdan
Link removed as it had nothing to do with the linux grub problem.
Posted: Tue Nov 22, 2005 5:11 am
by Chris Corbyn
Installing GRUB is fairly easy.
Make sure you have the files installed before you start.... I'll assume you do since you say "re-installing". I'm also assuming a standard linux filesystem with the grub files located in /boot/grub.
Up, in your favourite text editor /boot/grub/grub.conf.
Before we edit this file we need to know a few things about your hard disk and where the OS resides.
Lets says you have a partition table like this:
Code: Select all
/dev/hda1 / 25GB
/dev/hda2 swap 1GB
/dev/hda3 /windows 30GB
So you know that the root partition that the OS is on is /dev/hda1. GRUB sees that as (hd0,0) (First disk, first partition). Numbering starts at zero.
So you start with:
Code: Select all
timeout 10
root (hd0,0)
title=Linux
kernel (hd0,0)/boot/kernel-2.6.10 root=/dev/hda1
Now save that file.
Then once you've done that... fire up GRUB:
Code: Select all
linux # grub
grub> root (hd0,0)
Found reiserfs blah blah blah....
grub> setup hd0
Checking for stage1... OK
Checking stage 2 ... ok etc etc
MBR written to hd0 succesfully
grub> quit
linux #
Now just reboot.
I'd advise levaing the timeout in the grub.conf in case it doesn't boot. Then you have time to either edit the config at the boot screen or simply type in the boot command manually.