Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using win98 and Redhat Linux, and both are running properly. Due to some reason I have reinstall the win98. with that my system is directly loading with win98. If I start with the linux bootable floppy I am going into the Linux environment. So, how I get back the Grub loader at the time of starting the system. Plz help me in this regard as early as possible.
Windows has overwritten the Linux bootloader. It does not help to set the boot flag on the Linux partition. I doubt this is necessary at all.
You need to reinstall grub into the MBR of your HDD. I am not sure if RH has some kind of GUI setup, but I think you can follow the SuSE instructions for manual setup aswell:
Quote:
Manual installation of GRUB
There are two possibilities to install GRUB from the Linux command line: the "setup" command and the "install" command. Although the "setup" command is not utilized in SuSE Linux (e.g. by YaST), its use will be briefly described.
Command setup
Enter the command "grub" to display the GRUB command line prompt where further commands will be entered:
grub>
Hint: If your computer is not equipped with a floppy drive, use the option "--no-floppy" when starting GRUB to skip the search for a floppy drive.
In the following example we assume that the boot partition is located at /dev/hda5 and that GRUB must be installed on the first disk's MBR.
grub> root (hd0,4)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 23 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+23 p (hd0,4)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.
grub> quit
The first command includes the location of the boot partition, thus indicating where the boot loader files are located. The second command installs GRUB on the MBR. For this purpose, a file called stage1_5 is used to grant GRUB access to the file system on the boot partition.
Hint: To install GRUB on a partition's boot sector (e.g. /dev/hda5) instead of on the MBR, use the command setup (hd0,4).
A further hint: Similarly to the bash shell, the GRUB shell supports the tab completion function. Thus, when you enter "root (" and press TAB, a device list (e.g. hd0) is displayed. When you enter "root (hd0," followed by TAB, a partition list is displayed.
The third command closes the GRUB shell.
Command install
The second approach to install GRUB uses the install command:
grub> root (hd0,4)
Filesystem type is ext2fs, partition type 0x83
grub> install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd0) /boot/grub/stage2 0x8000 (hd0,4)/boot/grub/menu.lst
grub> quit
The "install" command, which is also used by YaST, is included in the file /etc/grub.conf, too. The syntax of this command is explained above.
Hint: Since the install command is already included in the file /etc/grub.conf, the easiest procedure consists of starting GRUB in "batch" mode in a Linux shell and having the file /etc/grub.conf read out:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.