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

04 Jan 2010   #41
TGSoldier

 
 

Quote   Quote: Originally Posted by iseeuu View Post
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
Ok. You had me up to the Add the line to boot.ini part..

Dump the linux boot sector to a file? You lost me there

And how will i copy the file. Via flash drive?


My System SpecsSystem Spec
.
04 Jan 2010   #42
Coolness

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

Quote   Quote: Originally Posted by TGSoldier View Post
Quote   Quote: Originally Posted by iseeuu View Post
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
Ok. You had me up to the Add the line to boot.ini part..

Dump the linux boot sector to a file? You lost me there

And how will i copy the file. Via flash drive?
You type the line, and a file will appear (if i am not mistaken) probably in your home folder, then use a flash drive or an external harddrive to backup this file i.e take it.
My System SpecsSystem Spec
04 Jan 2010   #43
iseeuu

 
 

Quote   Quote: Originally Posted by TGSoldier View Post
Ok. You had me up to the Add the line to boot.ini part..
Sorry, from your earlier post: Reinstalling GRUB Menu
I had understood you were able to do this but there was no Grub installed, so you got the error. Now that you were able to install Grub in the Linux partition, it should work.

Yes, boot.ini is a file in the C: drive (the root). You can edit it with notepad or like here:



Click the Edit button and type the line: c:\linux.bin="Red Hat Linux" so that it appears as the last line in the file.

Reinstalling GRUB Menu-boot.jpg

Quote   Quote: Originally Posted by TGSoldier View Post
Dump the linux boot sector to a file? You lost me there

And how will i copy the file. Via flash drive?
Quote   Quote: Originally Posted by Coolness View Post
You type the line, and a file will appear (if i am not mistaken) probably in your home folder, then use a flash drive or an external harddrive to backup this file i.e take it.
Correct, you will need to boot to your Live Linux CD, and from a command prompt type: dd if=/dev/hda2 of=/linux.bin bs=512 count=1. This will "Dump the Linux boot sector" to the file * linux.bin *. Yes, use a flash drive, a floppy disk, or mount the Windows partition. Somehow copy linux.bin and put it in the C: drive, where boot.ini already is. Then when you boot your computer, you will have a menu selection for "Red Hat Linux". When you click on it it will find * linux.bin * and boot up your Red Hat Linux.

Hope this helps?


My System SpecsSystem Spec
.

04 Jan 2010   #44
TGSoldier

 
 

I get an error saying

dd: opening `/dev/hda2': No such file or directory

Edit..

I changed hda2 to sda3 but now I get

dd: opening `/linux.bin' :Permission denied.
My System SpecsSystem Spec
04 Jan 2010   #45
iseeuu

 
 

Quote   Quote: Originally Posted by TGSoldier View Post
I get an error saying

dd: opening `/dev/hda2': No such file or directory

Edit..

I changed hda2 to sda3 but now I get

dd: opening `/linux.bin' :Permission denied.
Try sda2 ?

The Red Hat partition is the second partition?
My System SpecsSystem Spec
04 Jan 2010   #46
TGSoldier

 
 

Tried sda2... Same thing. Permission denied.

Yes. Second partition.
My System SpecsSystem Spec
05 Jan 2010   #47
TGSoldier

 
 

Anything on this?
My System SpecsSystem Spec
05 Jan 2010   #48
iseeuu

 
 

Quote   Quote: Originally Posted by TGSoldier View Post
Anything on this?
The problem I see with giving you more specific advice is I have no experience with a computer dual booting XP and Red Hat, while fixing it with a Knoppix live CD. However, it seems to me that you will need to have "root" privileges (permissions) on the Red Hat system to "Dump the Linux boot sector" from the Red Hat partition. You may be able to gain access with the "root" password in a command prompt from the live cd. Or you might be able to boot to the Red Hat OS from the live CD. When you boot to the live Knoppix CD, are you a "User" or do you have "root" access? Do you open a "root" command promtp window (terminal) when you type the Dump command?
My System SpecsSystem Spec
05 Jan 2010   #49
TGSoldier

 
 

Er... I don't know.. the box i open has LXTerminal on it.. :|
My System SpecsSystem Spec
05 Jan 2010   #50
iseeuu

 
 

Quote   Quote: Originally Posted by TGSoldier View Post
Er... I don't know.. the box i open has LXTerminal on it.. :|
According to this link: Root Password (what is it?) - Knoppix.net

you need to type: su
before the command. So maybe try:

su dd if=/dev/hda2 of=/linux.bin bs=512 count=1
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 04:57.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App