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: Fixed Windows - But Now Grub is Gone?

29 May 2010   #11
iseeuu

 
 

Quote   Quote: Originally Posted by dajohnson89 View Post
OK, first I ought to correct the thanks. Thanks to isuuee, not Dinesh.
You are most welcome dajohnson89. And please feel free to thank Dinesh anytime, he would probably say he never gets enough "thanks" anyway!

Quote   Quote: Originally Posted by dajohnson89 View Post
Second, the method of re-installing GRUB with the Ubuntu (10.04) Live CD is NOT permanent. Just now, my boot sequence got caught up in an infinite loop; never reaching GRUB. Imagine my frustration; it has only been two days since I encountered the problem, searched for a solution and implemented it!
You only use the live CD to access a "Terminal". After you "mount" the Linux partition, as wee pointed out, the terminal commands reinstall the version of Grub from the Linux on the hard drive. So the commands in this thread will work for Grub2, that is permanently reinstall Grub2 to the MBR of the hard drive. If you have an older distro version, you need to use the commands for "Legacy Grub".

A point in fact: you cannot install Grub from a Live CD, that is without mounting the Linux partition on the hard drive. As you say, it will not work.

Quote   Quote: Originally Posted by dajohnson89 View Post
I conjecture that Windows hibernate is a culprit, at least in my case. The first time, and this most recent time, that GRUB was messed up, I had Windows 7 loaded, and my notebook slipped into hibernate mode after several hours of inactivity. Fortunately, one can just do without hibernation. In my case, I just repeated the re-installation of GRUB, and everything works fine. I should add that previous to the occurrence of the problem, shutting down and restarting normally under either OS incurred no problems. It was only after hibernation.
I have no personal experience with this issue, however I can see the possibilities for a conflict between Windows and Linux. If you are using only the Grub boot manager and Windows saves its sleep state settings and shuts down, when it reboots (or restarts) the computer will have to go through Grub first, then to Windows. What is going to happen with the sleep state settings saved to memory?

I would say you have made a good guess and would avoid hibernation.

Thanks for posting your solution!

Cheers!
Robert


My System SpecsSystem Spec
.
30 May 2010   #12
dajohnson89

Windows 7
 
 

Quote   Quote: Originally Posted by iseeuu View Post
A point in fact: you cannot install Grub from a Live CD, that is without mounting the Linux partition on the hard drive. As you say, it will not work.

I want to be clear; I executed the following commands:
Code:
sudo fdisk -l
Code:
sudo mount /dev/sda6 /mnt
sudo grub-install --root-directory=/mnt/ /dev/sda
This does mount the Linux partition on the hard drive, and installs grub2. I'm using Ubuntu 10.04.

Quote:
If you are using only the Grub boot manager and Windows saves its sleep state settings and shuts down, when it reboots (or restarts) the computer will have to go through Grub first, then to Windows. What is going to happen with the sleep state settings saved to memory?
THe sleep state settings don't account for a loader other than the Windows 7 loader. The problem is that my setup is such that the Windows 7 loader is accessible only through the Grub loader.

How Messy!
My System SpecsSystem Spec
30 May 2010   #13
iseeuu

 
 

Quote   Quote: Originally Posted by dajohnson89 View Post
Quote   Quote: Originally Posted by iseeuu View Post
A point in fact: you cannot install Grub from a Live CD, that is without mounting the Linux partition on the hard drive. As you say, it will not work.

I want to be clear; I executed the following commands:
Code:
sudo fdisk -l
Code:
sudo mount /dev/sda6 /mnt
sudo grub-install --root-directory=/mnt/ /dev/sda
This does mount the Linux partition on the hard drive, and installs grub2. I'm using Ubuntu 10.04.

Quote:
If you are using only the Grub boot manager and Windows saves its sleep state settings and shuts down, when it reboots (or restarts) the computer will have to go through Grub first, then to Windows. What is going to happen with the sleep state settings saved to memory?
THe sleep state settings don't account for a loader other than the Windows 7 loader. The problem is that my setup is such that the Windows 7 loader is accessible only through the Grub loader.

How Messy!
Clear as crystal!

Thanks again!
My System SpecsSystem Spec
.

02 Jun 2010   #14
dajohnson89

Windows 7
 
 
Grub2 is still overwritten

Unfortunately, my proposed fix of disabling hibernate in Windows 7 does not stop Grub2 from being overwritten. I disabled hibernate, and any functionality which turns off the hard disk while Windows 7 is loaded, but still: grub2 has been lost numerous times since I last posted here, resulting in an infinite boot loop. I'm now at a loss as to exactly *WHEN* Windows 7 screws up the MBR. My next step is to disable sleep. I can restart, and shutdown, and put my computer to sleep under Windows 7, without any problems. But perhaps this MBR problem surfaces when the computer is in sleep mode for a prolonged period of time. Other than that, I have no idea, and I'd appreciate any thoughts anyone has on this bug.
My System SpecsSystem Spec
03 Jun 2010   #15
wee

XP/W7/Lucid/Arch
 
 

So tell us your computer model, really the manufacturer is whats needed. We have run into problems with I think it was HP, in that there is a program that is part of a manufacturers setup that rewrites grub.
My System SpecsSystem Spec
03 Jun 2010   #16
wee

XP/W7/Lucid/Arch
 
 

So here is a link to information on Dell DataSafe this appears to rewrite grub but can be removed. The link in thread has more information that you probably know already but the information in the last paragraph may be pertinent. Ubuntu Forums - View Single Post - [ubuntu] GRUB2 bootloader crashes with Win7 and Ubuntu 10.04 dual boot
My System SpecsSystem Spec
04 Jun 2010   #17
dajohnson89

Windows 7
 
 

Quote   Quote: Originally Posted by wee View Post
So tell us your computer model, really the manufacturer is whats needed. We have run into problems with I think it was HP, in that there is a program that is part of a manufacturers setup that rewrites grub.

Acer Aspire 3680. The hard drive is not factory default, and I've wiped it numerous times anyways; there is nothing besides the Operating Systems I've installed.
My System SpecsSystem Spec
04 Jun 2010   #18
wee

XP/W7/Lucid/Arch
 
 

I have a aspire one net-book that has been setup with W7 and lucid. It has the ram maxed 2 gigs. I had no problems with the sleep in Lucid, and it started backup as it should. But there was a bug in the bios firmware that was making it completely shutdown if I unplugged the ac. At first there was a way around this with in the gconf-editor in Lucid. Then I just upgraded the bios and it went away.

I wonder if there isn't a problem similar with your set up, although I never lost the boot loader in mine.
My System SpecsSystem Spec
07 Jun 2010   #19
dajohnson89

Windows 7
 
 

Sleep doesn't seem to be the problem. Now, I think it's the act of switching to/from AC power, while Windows 7 is running.
My System SpecsSystem Spec
07 Oct 2010   #20
bp96

Linux Mint with Windows 7 in Virtualbox
 
 

I'm planning to dual-boot soon, but dajohnson89, are you saying that if you switch to/from AC power, the Grub loader is replaced EVEN if you aren't in Sleep mode?

EDIT: Whoops, I just noticed the date-- anyway, have you found out the cause of the problem?
My System SpecsSystem Spec
Reply

 Fixed Windows - But Now Grub is Gone?




Thread Tools




Similar help and support threads
Thread Forum
Remove Grub - Restore Windows 7
You are dual booting with a Linux OS, using the Grub bootloader menu, and now you want to remove Linux and Grub and restore your Windows 7 boot manager. Here's how: This screen shot shows Windows XP, Vista, Windows 7, and my Ubuntu 9.10 installed on logical partitions (volumes) in an extended...
Installation & Setup
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
Hi users -please post when your problem is fixed (or even not fixed)
Hi everyone now I don't mind spending some time trying to help people and am glad for the hints and fixes I've got off these sites --but it does seem to me to be a trend with some of the newer users that they post a problem --you reply --and these guys never post a follow up --like it worked or...
Chillout Room
Windows 7's hibernate vs grub
win 7 can't hibernate after install fedora (or the other linux distro use grub). please help me.
General Discussion
how to remove grub.. to have windows 7 alone
Hi, I installed ubuntu 9.10 (i think I also installed latest grub or something).. and tried it a bit.. and decided to remove it. I cleaned up the partitions which ubuntu were installed. I followed an instruction from youtube to recover widnows boot.. but it won't work. (Youtube...
Installation & Setup


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 12:32.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App