Grub/Windows Reinstall

Hi All! I have a bit of a problem. I am dual-booting Redhat 8.0 and Windows 98. The Bootloader is Grub. Now, my issue is this. The Windows System had become buggered up(too many installs/uninstalls and other Windows silliness) and I would ...




Topic Options
#2105 - 06/18/03 11:59 PM Grub/Windows Reinstall
kryptman Offline
stranger

Registered: 06/18/03
Posts: 7
Hi All!

I have a bit of a problem. I am dual-booting Redhat 8.0 and Windows 98. The Bootloader is Grub. Now, my issue is this. The Windows System had become buggered up(too many installs/uninstalls and other Windows silliness) and I would like to reinstall Windows. The partitions won't change. Now, when I did this before, Windows reinstalled it's own bootloader, leaving me unable to boot to Linux. What I'd like to know is how to either prevent Windows Setup from overwriting the MBR, or how to reinstall GRUB after the windows install without having to redo a RedHat setup.

Thanks in advance.

Top
Advertisement
#2111 - 06/19/03 07:16 PM Re: Grub/Windows Reinstall
Norman Offline
stranger

Registered: 05/03/03
Posts: 13
First you have to boot your Linux partition - I am sure that it is possible to create a boot disk with RedHat, maybe someone else can post how to create it. Or you can use loadlin

http://elserv.ffm.fgan.de/~lermen/
( Be careful - there is an image of a crazy looking guy )

With this tool you may launch linux from Windows. But for this purpose you will need to put a copy of the kernel onto a windows accessible partition :

http://uranus.it.swin.edu.au/~jn/linux/explore2fs.htm

Use the above tool Explore2fs to copy the kernel from /boot/bzImage-2.4.xxx to a windows partition and then use something like

loadlin bzImage /dev/hda2 vga=773

the partition has to be the one of your linux system. However, once you are back in linux you have to reinstall grub :

> grub
> root (hd1,0)
> setup (hd0)

You have to adjust the paths !

You will find some more info here:

http://gnomesupport.org/forums/viewtopic.php?t=3033&highlight=grub

Another way of keeping windows and linux boot loaders separate is to install the linux boot loader on the second disc and tell your bios to boot off the second disc. This way windows will still overwrite the boot sector of the first disc, but due to the fact that you boot off the second disc you needn't care any more.

Top
#2112 - 06/19/03 10:12 PM Re: Grub/Windows Reinstall
kryptman Offline
stranger

Registered: 06/18/03
Posts: 7
Thanks for the info. I'll try that.

It's laptop, so I can't tell the BIOS to boot of the second disk.

Top
#2113 - 06/20/03 12:25 AM Re: Grub/Windows Reinstall
Norman Offline
stranger

Registered: 05/03/03
Posts: 13
I found a tutorial to create a boot disk :

http://www.desktop-linux.net/grub.htm

and maybe

> grub-install /dev/hda

will be enough to reinstall grub.

Top
#2117 - 06/20/03 11:49 AM Re: Grub/Windows Reinstall
kryptman Offline
stranger

Registered: 06/18/03
Posts: 7
Well, thanks for the info guys. I managed to get it done. Below is an account of my actions, just in case someone looks for the same info.

1) I made a bootdisk using the following command:
"mkbootdisk --device /dev/fd0 2.4.18-27.8.0"
This created a bootdisk tailored to my system. It stored enough information on the disk that I could boot to my Linux system no matter what the bootloader looked like.

2) (Re)installed Windows. As expected, this overwrote the MBR so that the system only booted to Windows. Didn't have to do an fdisk /mbr, as it just did it by itself. Finished the entire installation. Windows stable(for now).

3) Booted of the Linux bootdisk.

4) Did a "grub-install /dev/hda".

5) System Up and Running

Of course, your mileage may vary, but this worked for me.

Thanks to all the people that replied.

Top
#2120 - 06/20/03 05:05 PM Re: Grub/Windows Reinstall
Norman Offline
stranger

Registered: 05/03/03
Posts: 13
Quote:
Thanks to all the people that replied.

I am not Borg. I am one of one.

Top
#2317 - 07/15/03 03:45 PM Re: Grub/Windows Reinstall
GhostSong Offline
member

Registered: 10/22/01
Posts: 122
Greetings,

with reiserFS ? Here's some info to avoid future possible problems :

Windows was first linux 2nd ?

If yes you have a problem reinstalling windows ,

Let me explain

Windows wants to stay front and in case you did something in that partition ( let's say you have 2 , 1st for windows 2nd for linux with reiserFS) i dont think you'll have problems at all , just you need to reinstall windows and then reconfigure your bootLoader

Otherwise if you went through some wild stuff you cant resize your reiserFS easily so you can get back your 1st partition in order to get windows installed and you have to backup everything if you want to be sure and proceed with caution

Get gnuparted or pqmagicXP ( in case you need reSizing)
(fdsik /mbr to get your default window,then you need Bdisk and reconfiguration of your boorLoader)


Farewell

Top
#150091 - 11/12/04 10:25 AM Re: Grub/Windows Reinstall
ecowarrior Offline
stranger

Registered: 11/12/04
Posts: 1
Hi All, I have a similar setup to the one above (but with FC2). My windows 98 is typically poorly but just about working, but I do need a re-install.

My question is, would it be possible to take a back-up of the MBR (there are freeware win-tools to do it) before the reinstall, and then restore it after the re-install?

Dont wanna try it and be left with just windoze! Thanks Guys.

Top


Forums
Windows Support Forums
Everything New Technology
Legacy OS
Hardware
Software
Games
Networking
Customization & Tweaking
Security

Linux Support Forums
Everything Linux
Linux Hardware
Linux Software
Linux Games
Linux Networking
Linux Customization & Tweaking
Linux Security

Apple Support Forums
Everything Apple
Recent Topics
For sale brand new Apple iPhone 3GS 32GB- $210,Bla
by AMBACK
Today at 01:20 PM
For sale brand new BlackBerry Bold 9700-$280,T-Mo
by AMBACK
Today at 01:18 PM
For sale brand new Nokia N900$230,Samsung B7620 Gi
by AMBACK
Today at 01:17 PM
Carmageddon 2 weird
by Kuikie
12/29/09 04:32 PM
Computer Repair Utility Kit
by gailerl
12/28/09 01:26 PM
Who's Online
0 Registered (), 193 Guests and 42 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
91434 Members
24 Forums
59413 Topics
189949 Posts

Max Online: 1079 @ 03/12/08 01:36 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22