Go Back   PCMech Forums > Linux Support > Linux OS and Software Assistance

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 01-30-2003, 08:47 AM   #1
Member (7 bit)
 
Join Date: Jul 2002
Posts: 116
Post Repairing the Grub BootLoader

Hi,

If you are having problems with the Grub BootLoader, or maybe you are using LILO and have decided to start using the Grub. This may be of some use.

1. Boot your machine from your boot media (cdrom1) and select linux rescue to install to the command prompt.

2. Redhat 8.0 displays a message “If you would like to make your system the root environment, run the command: chroot /mnt/sysimage”. Go ahead and do that.
If you are running a different distro or you don’t get that message, you can proceed as follows.
· Run mkdir /mnt/sysimage and mount it with mount /dev/hda1 /mnt/sysimage.
Note: hda1 is where the linux system is located, yours may be different.
· Now run chroot /mnt/sysimage to make your system the root environment.

3. Get into the grub configuration utility with the command: grub.
· At the prompt grub> type the command: root (hd0,0) ; this will tell grub that the linux files it needs are in the first partition (0) of your first hard disk (hd0). Change this to meet your configuration needs. For instance, if the linux files are on the second partition (1) of the second hard disk (hd1), then type root (hd1,1).
· If you selected the correct location (where linux is installed), you should see a message as follows.... Filesystem type is Ext2fs, partition type is 0x83.
· Then issue the following command: setup (hd0) ; this will install grub in the MBR of your first hard disk. You could change that to use the /boot partition if desired.
· Exit the grub utility with the command: quit

You can also try to use grub-install /dev/hda to install grub on your first hard drive's MBR, but the method described above is the preferred one.
homey is offline   Reply With Quote
Old 01-30-2003, 11:02 AM   #2
Member (12 bit)
 
Redo40's Avatar
 
Join Date: Jan 2002
Location: Central Arkansas
Posts: 2,170
You need to put this one in the "Tips and Tricks", could really come in handy.
__________________
Roger

"Our greatest glory is not in never falling, but in rising every time we fall."
-Confucius
Redo40 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:07 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2