LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 03-08-2005, 05:04 AM   #1
kunkumd
LQ Newbie
 
Registered: Mar 2005
Location: India
Posts: 9

Rep: Reputation: 0
Problem with Dueal Boot Loading


Friends,

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.

Thank you in advance.


Kundan K. Dande
 
Old 03-08-2005, 05:53 AM   #2
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
Using fdisk or cfdisk under Linux, make your Linux boot partition active or 'bootable' again.

nz
 
Old 03-08-2005, 06:28 AM   #3
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
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:

grub --batch --device-map=/boot/grub/device.map </etc/grub.conf
Nicer to view on the SuSE homepage: http://portal.suse.com/sdb/en/2002/0..._overview.html
 
Old 03-08-2005, 01:51 PM   #4
Bandetto05
LQ Newbie
 
Registered: Feb 2005
Distribution: Fedora Core 3
Posts: 6

Rep: Reputation: 0
Put the installation disc back in if it is like FC3 choose the upgrade option. Don't install anything but it will allow you to fix your bootloader.
 
Old 03-08-2005, 02:06 PM   #5
10SPlayer
LQ Newbie
 
Registered: Mar 2005
Distribution: Fedora Core 3
Posts: 14

Rep: Reputation: 0
Bandetto05 is correct....

Posted at this thread , follow this procedure using your RH9 disks:

>1) Boot off CD1
>2) on the prompt type: linux rescue
>3) then when you get to the bash prompt type: grub-install
>4) reboot
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot problem Grub Loading Stage 2 mbutler31 Fedora - Installation 5 12-29-2007 11:17 AM
solaris boot problem boot error loading interpreter(misc/krtld) Johncy_j Solaris / OpenSolaris 5 08-18-2005 01:47 AM
Boot problem after loading modules into kernel scr02bcg Linux - General 2 07-21-2005 10:23 AM
Boot problem with GRUB (for loading DOS) djkoe Linux - General 1 01-03-2004 08:00 PM
Problem with auto-loading modules on boot (2.6.0, but not specific) Emp202 Fedora 5 01-02-2004 10:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration