|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (7 bit)
Join Date: Jul 2002
Posts: 116
|
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. |
|
|
|
|
|
#2 |
|
Member (12 bit)
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 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|