LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices



Reply
 
Search this Thread
Old 01-17-2010, 12:08 AM   #1
bhanuvrat
Member
 
Registered: Jan 2010
Posts: 47

Rep: Reputation: 15
Unhappy windows 7 wipes grub everytime it boots


I am sure its not a common problem as I have experienced it for the first time.
I have openSUSE and windows 7 dual boot on my Dell Studio 14.
Within last 2 hours I have re-installed grub more than 5 times.
Every time I boot into windows 7 the grub is wiped off and I have to re-install it using the repair tool.

can anybody please tell me why this is happening as this is some thing that had never happened while I dual booted xp and linux ?

help me out
 
Old 01-17-2010, 02:00 AM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Look here:

http://blog.lokonopa.com/grub-up-windows-7/

PROBLEM:
Quote:
Grub is wiped out by windows 7’s mbr ,but after restoring grub, windows 7 then merely changes the boot partition to itself by reflagging the partitions,and makes itself the boot OS.
SOLUTION:
Quote:
I did some more tweaks to my configuration, and I think I figured out what the problem is.

Make sure you don’t set the “Make this partition active” flag for the Windows 7 partition and GRUB should continue to work even after restart.
'Hope that helps .. PSM
 
Old 01-17-2010, 02:22 AM   #3
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Fedora 13, SUSE 11, Ubuntu 10.04, Mandriva 2010, Mint 8
Posts: 336

Rep: Reputation: 34
Smile

I searched and found this site and you should search windows 7 forum too; http://www.thinkdigit.com/forum/showthread.php?t=123896 , and look here too;
http://apcmag.com/the_definitive_dua...stepbystep.htm

Last edited by james2b; 01-17-2010 at 02:58 AM. Reason: for more
 
Old 01-17-2010, 12:52 PM   #4
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
bhanuvrat-

I know that Vista "changed the rules" and made multi-boot more difficult than XP. It looks like Windows 7 might have changed the rules yet again (per the links james2b and I gave you).

I'm sure you have enough information to get it working. Please post back what you learned!

Thank you in advance .. PSM
 
Old 01-19-2010, 01:20 AM   #5
bhanuvrat
Member
 
Registered: Jan 2010
Posts: 47

Original Poster
Rep: Reputation: 15
I used a third party bootloader configuration software called EasyBCD. Now te windows bootloader allows me choose from windows and linux.
 
Old 08-20-2011, 01:39 AM   #6
yellowzinc
LQ Newbie
 
Registered: Aug 2011
Location: Sydney Australia
Distribution: Suse Redhat Debian
Posts: 8

Rep: Reputation: Disabled
Fixed issue with windows 7 wiping grub on every reboot

Step 1) Getting GRUB back

Get into your Linux system via CD-ROM. I used the rescue option in Open SooSie 11.4.

In bash type grub to load grub.... After a while (2 mins) grub will load.

You need to get grub back by writing to the MBR. My root partition was on the second partition so the first line tells grub where to find the grub configuration when it loads. The second line writes grub to the MBR.

root (hd0,1)
setup (hd0)

* Alternatively you can do a re-install if your not comfortable with grub or new to Linux.

Step 2) Preventing Windows from wiping it again.

Make sure you have grub working at this step!

There is a Windows command line utility called diskpart. You need to tell windows your C: drive is not active or bootable.

Open a windows command line and then type diskpart

Type LIST DISK
Type SELECT DISK n (where is the drive in which Windows 7 resides)
Type LIST PARTITION
Type SELECT PARTITION n (where n is the number of the active partition you wish to make inactive)
Type INACTIVE
Type EXIT to exit DISKPART

Thats it. Reboot and Windows will not overrite your SooSie grub.

This may also make your computer non bootable if you stuff it up. So be careful! Make sure grub is working when you make your C: drive's MBR inactive.
 
Old 09-09-2011, 04:42 PM   #7
mauser1891
LQ Newbie
 
Registered: Mar 2011
Posts: 5

Rep: Reputation: 0
I am curious if this has been resolved, but I just installed openSUSE with Win 7 without the issue that you have described.
Though I am usingg a AMD A6-3400M powered NV55S07u Gateway laptop, which just received a 8G DDR3-1333/PC3 10600 upgrade.
I will be running virtual machines on this rig is why I performed the upgrade.
 
Old 09-09-2011, 04:59 PM   #8
John VV
Guru
 
Registered: Aug 2005
Posts: 13,523

Rep: Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805
I learned a long time ago that life is , by far, better if i let windows have the MBR
the only way to win the WAR with Microsoft is " Not to play the game"

win7 and other windows applications can and apparently do write code to the mbr ( assuming that ms's bootloader is there ) and can overwrite GRUB in the process


let windows have it
install grub to the first Linux partition, set that as the bootable , and bootstrap to windows7
 
Old 09-09-2011, 07:19 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,500

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
I disagree. I usually always use grub - including Win7.
This issue is probably not a Win7 issue, but a Dell issue. They ship some handy-dandy tools (active by default) that restore the MBR on the fly for you.
Cute.

I'll update this after I go boot my Dell laptop later.
 
Old 09-09-2011, 10:21 PM   #10
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
I have an older Dell now and have none of the problems but it came with XP Pro on it. It is a D810 which I think gave you a choice of Vista or XP from the factory.

It would not surprise me though if Dell did something like that to keep it more automatic restore and a pain for those of us that like to dual boot.

Last edited by Larry Webb; 09-09-2011 at 10:25 PM.
 
Old 09-09-2011, 11:35 PM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,500

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Have a read of this for instance.
I disabled it ages ago.
 
Old 09-10-2011, 07:33 AM   #12
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Have a read of this for instance.
Looks like you may have solved his problem
 
  


Reply

Tags
windows7


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
Puppy Wipes Windows Partition! AlanL Puppy 14 06-10-2009 09:37 PM
Fedora 9 boots (long delay) as single core if I go to GRUB menu, otherwise boots fine saravkrish Fedora 1 05-27-2008 08:59 AM
Windows wipes out GRUB - can't load Ubuntu! vincebs Linux - General 3 07-17-2006 04:09 PM
GRUB boots Windows 2000 but not Linux methuselah Linux - Newbie 5 09-01-2004 07:30 AM
trying to use Dell Restore disk wipes RH9 except for GRUB krome Linux - Software 5 11-03-2003 01:31 AM


All times are GMT -5. The time now is 04:09 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration