Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Reinstalling GRUB Menu

21 Dec 2009   #31
TGSoldier

 
 

The system is not running knoppix. It's running Redhat linux I think.

You can backup apps? :|


My System SpecsSystem Spec
.
21 Dec 2009   #32
Coolness

Win 7 pro 64-bit, Ubuntu 9.10 64-bit
 
 

Oh redhat? Well you can call redhat customer support. And yes you can back up youre whole system like in windows.
My System SpecsSystem Spec
21 Dec 2009   #33
TGSoldier

 
 

Well thats making an img.. but restoring the image would leave me with the same no GRUB problem...
My System SpecsSystem Spec
.

21 Dec 2009   #34
Coolness

Win 7 pro 64-bit, Ubuntu 9.10 64-bit
 
 

Well, no. It will install an operation system, like a clean install, exept that it has all your software and settings. Get it?
My System SpecsSystem Spec
21 Dec 2009   #35
TGSoldier

 
 

I get it.. But I don't get it.. Somethings telling me that won't work though...
My System SpecsSystem Spec
21 Dec 2009   #36
Coolness

Win 7 pro 64-bit, Ubuntu 9.10 64-bit
 
 

well im not sure if i can help you further. Just download a software that does this (too lazy to look for one)
My System SpecsSystem Spec
23 Dec 2009   #37
ManyBeers

Windows 7 32bit
 
 

Quote   Quote: Originally Posted by TGSoldier View Post
Quote   Quote: Originally Posted by ManyBeers View Post
Quote   Quote: Originally Posted by TGSoldier View Post
Ok so.

When I run the "dd if=/dev/hda2 of=/linux.bin bs=512 count=1"

I get an error saying " no such file or directory."

Also, noticed you said knoppix partition. I am booting from knoppix on a cd.. I think it's redhat linux on the next partition. I'm not even sure xD.

Edit.

So I noticed when I ran the command it was saying "dd: opening '/dev/hda2' : No such File or directory"

So i figured it was just pointing to the wrong path. I opened up explorer and changed /dev/hda2 to /media/sda2.

When i run the command with /media/sda2 it says "opening /linux.bin': permission denied"

:S
For this method to work Grub must be placed in the Linux root partition and Not the MBR.
Then you run the DD command.

How many partitions do you have on your computer?
How do I do that?

2.

Thanks
Recovering GRUB after reinstalling Windows

As above, when Windows is reinstalled, the master boot record will be overwritten. This can be avoided by backing up the boot sector, by following the instructions from step 2 in the above section 'Installing Windows After Ubuntu'. An alternative method is to use the Ubuntu LiveCD to reinstall the GRUB boot sector, here are step-by-step instructions, to be run after Windows has been reinstalled:
  1. Boot into a LiveCD .....You have an Ubuntu Live CD right?
  2. Open a terminal
  3. Open the GRUB Command line utility by typing

sudo grub
  1. Tell GRUB where your Ubuntu partition is by entering
  2. root (hdA,B).... IN YOUR CASE root (hd0,1)...... Ubuntu is on your 1st harddrive 2nd partition

Where 'A' is the hard-drive number, starting at 0, and 'B' is the partition number, starting at 0. For example, if Ubuntu was installed on the second partition of the first hard-drive, the command should be

root (hd0,1).... RUN THIS.....there is a space between ROOT and (
  1. Tell GRUB which drive to put the boot sector on
setup (hd0,1)... RUN THIS....... will install GRUB to partition and not MBR.....
there is a space between SETUP and (

If you run...... setup (hdo)....... it will install GRUB to MBR.
  1. Leave the GRUB Command line
  2. quit..RUN THIS
and reboot. This will not give dual-boot yet.

If this works post back and I will help with the next part. This is the link:
https://help.ubuntu.com/community/WindowsDualBoot
My System SpecsSystem Spec
23 Dec 2009   #38
Coolness

Win 7 pro 64-bit, Ubuntu 9.10 64-bit
 
 

Exellent job ManyBeers! The guide is very good. Reps
My System SpecsSystem Spec
30 Dec 2009   #39
TGSoldier

 
 

Quote   Quote: Originally Posted by ManyBeers View Post
Quote   Quote: Originally Posted by TGSoldier View Post
Quote   Quote: Originally Posted by ManyBeers View Post

For this method to work Grub must be placed in the Linux root partition and Not the MBR.
Then you run the DD command.

How many partitions do you have on your computer?
How do I do that?

2.

Thanks
Recovering GRUB after reinstalling Windows

As above, when Windows is reinstalled, the master boot record will be overwritten. This can be avoided by backing up the boot sector, by following the instructions from step 2 in the above section 'Installing Windows After Ubuntu'. An alternative method is to use the Ubuntu LiveCD to reinstall the GRUB boot sector, here are step-by-step instructions, to be run after Windows has been reinstalled:
  1. Boot into a LiveCD .....You have an Ubuntu Live CD right?
  2. Open a terminal
  3. Open the GRUB Command line utility by typing

sudo grub
  1. Tell GRUB where your Ubuntu partition is by entering
  2. root (hdA,B).... IN YOUR CASE root (hd0,1)...... Ubuntu is on your 1st harddrive 2nd partition

Where 'A' is the hard-drive number, starting at 0, and 'B' is the partition number, starting at 0. For example, if Ubuntu was installed on the second partition of the first hard-drive, the command should be

root (hd0,1).... RUN THIS.....there is a space between ROOT and (
  1. Tell GRUB which drive to put the boot sector on
setup (hd0,1)... RUN THIS....... will install GRUB to partition and not MBR.....
there is a space between SETUP and (

If you run...... setup (hdo)....... it will install GRUB to MBR.
  1. Leave the GRUB Command line
  2. quit..RUN THIS
and reboot. This will not give dual-boot yet.

If this works post back and I will help with the next part. This is the link:
https://help.ubuntu.com/community/WindowsDualBoot
Done! What now sir?!
My System SpecsSystem Spec
31 Dec 2009   #40
iseeuu

 
 

Quote   Quote: Originally Posted by TGSoldier View Post
Done! What now sir?!
TG;

If you have been successful in installing Grub into the Red Hat Linux partition, you can now try this again:

Add this line to the end of your boot.ini:

c:\linux.bin="Red Hat Linux"

Then Dump Linux boot sector to a file. Boot to Linux and type the following:

dd if=/dev/hda2 of=/linux.bin bs=512 count=1

Copy the file: linux.bin from Linux to the C: of your Windows XP and reboot.


It should work this time, and you should be able to boot to Linux through the Windows boot manager.

Cheers!
Robert
My System SpecsSystem Spec
Reply

 Reinstalling GRUB Menu




Thread Tools




Similar help and support threads
Thread Forum
GRUB does not load
I have Ubuntu 12.10 and Windows 7 Home Basic in one machine. After I put my Windows 7 to hibernate and then when I press the power button, instead of loading the Boot options menu or GRUB screen it directly boots Windows 7. I've read in some forum that continuously pressing ESC after you press the...
General Discussion
Dual Boot W7/XP using Grub - Can grub assign letters to partitions?
Hi I am looking at Grub4dos since my recent foray into all things bootloaders. I am gaining a little footing with what I can and can't do (practically!) Although it was definitely trickier than I thought (or I just don't have the same time like I used to... ) Anyhow, I am looking at Grub because...
Installation & Setup
Reinstalling OS and or backing up and reinstalling everything?
1.I've had my computer for over a year and have it tweaked to my liking and so what would be the best way to be able to wipe out and re-install my computer just as it is today? 2. Same scenario except I would like to re-install Win7 only w/o a disk in hand, can I create a Win7 disk while my...
Backup and Restore
Removing OS from GRUB
Hello, I had win 8 (called developer preview if I'm not wrong) trail ver., installed on drive D:, while on C: there's win. 7 ultimate. Anyway, I've formatted the D: drive but when booting there's still an option to load the system that was on it. How can I delete this? Thank you, Hezy.
Installation & Setup
Pressing F8 on startup suddenly loads GRUB menu?! Huh??
Dear Forum Users, I'm having a very mysterious problem plaguing my PC. I bought my PC not too long ago, it was brand new, and the hard drive which came with it was new as well (but I did a full NTFS format anyway before installing Windows 7). At some point when I was in a situation where I...
Software
W7 ate my GRUB...
I did say in an old post to keep an eye out for this ;) So, being the curious monkey I am, I installed the 6801 build on a separate partition. All was good. Very nice. Not surprisingly, my GRUB loader was wiped out. That's no big deal. I'll deal with that later. What IS surprising and...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 19:06.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App