Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

windows steals MBR every time it boots

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
braver
n00b
n00b
Posts: 28
Joined: Fri Dec 29, 2006 7:14 am

windows steals MBR every time it boots

  • Quote

Post by braver » Fri Jan 26, 2007 8:15 am

Every time I dual-boot into Windows XP, it steals MBR, so I had to install GRLDR -- Grub for Windows -- which sees my menu.lst. But I have to be alert and catch the boot process. How do I prevent Windows from grabbing MBR back?
Top
slycordinator
Advocate
Advocate
User avatar
Posts: 3065
Joined: Sat Jan 31, 2004 9:51 pm
Location: Korea

Re: windows steals MBR every time it boots

  • Quote

Post by slycordinator » Fri Jan 26, 2007 8:28 am

braver wrote:Every time I dual-boot into Windows XP, it steals MBR, so I had to install GRLDR -- Grub for Windows -- which sees my menu.lst. But I have to be alert and catch the boot process. How do I prevent Windows from grabbing MBR back?
As part of the installation of windows it writes a windows-compatible mbr, so unless you're gonna rewrite windows' installation program so that when you do a full reinstall that it doesn't clobber the mbr you're gonna have to do something like either reinstalling grub afterwards or using something like GRLDR.

Also, you don't have to be all that alert and catch the boot process. All you do instead is change the default thing that ntldr boots from to booting from GRLDR.
Top
braver
n00b
n00b
Posts: 28
Joined: Fri Dec 29, 2006 7:14 am

  • Quote

Post by braver » Fri Jan 26, 2007 8:57 am

No -- it grabs MBR every time after I boot into windows. That is, instead of GRUB, I get Windows NTLDR. I managed to install GRLDR so I have it, and can indeed make it default. But I don't like Windows to overwrite GRUB every time I *boot* into windows (not install it)! Is it normal?
Top
slycordinator
Advocate
Advocate
User avatar
Posts: 3065
Joined: Sat Jan 31, 2004 9:51 pm
Location: Korea

  • Quote

Post by slycordinator » Fri Jan 26, 2007 9:31 am

I've never heard of this happening.

I'm betting there's something more happening. Perhaps you've got grub installed on a disk different than the one that is being booted from so that it's been installed to the mbr of the wrong disk?

Like it's possible that you told grub (when you were in the livecd) to install to (hd0) whereas when you actually boot from disk the real first disk isn't the one that grub was installing to.

I had that happen once.
Top
braver
n00b
n00b
Posts: 28
Joined: Fri Dec 29, 2006 7:14 am

  • Quote

Post by braver » Fri Jan 26, 2007 8:33 pm

The setup is very simple -- I have a laptop, a tablet PC with only the internal drive, /dev/hda. Windows is in the first partition, then there's another partition, a bunch of Linuxen partitions... From any Linuxen I mount the same /boot, and grub is installed by

grub-install /dev/hda

-- after I do that, reboot shows GRUB, but if I ever boot into Windows, they steal the boot, and the next time it's NTLDR!
Top
Rukie
l33t
l33t
User avatar
Posts: 692
Joined: Mon Jan 26, 2004 9:08 pm
Location: SE Wi, Home of cheese and cowtippers.......
Contact:
Contact Rukie
Website

  • Quote

Post by Rukie » Sat Jan 27, 2007 5:07 am

I had a similar problem with my computer.
Have you tried going into the grub command prompt
# grub

and then installing it manually into the mbr instead of the boot partiton?
(Or are you already doing that?)

root (hd0)
setup (hd0)

worked for me inside of the grub prompt, rather than using a boot partiton like (hd0,0)
Gentoomania! Support the Open Source!
http://www.rukie.ath.cx
Top
lagalopex
Guru
Guru
User avatar
Posts: 567
Joined: Sat Oct 16, 2004 10:48 am

  • Quote

Post by lagalopex » Sat Jan 27, 2007 10:01 am

Whats in you grub.conf / menu.lst? What does "fdisk -l /dev/hda" tell you about the active/boot flag?
Are there any "systemtools" or "av-programs" running in windows? Was there any update of windows which could have caused this problem? Is it happening in the "safe-mode" of windows as well?
....
Top
kel_p
n00b
n00b
User avatar
Posts: 31
Joined: Mon Feb 05, 2007 11:39 am
Location: Amsterdam
Contact:
Contact kel_p
Website

  • Quote

Post by kel_p » Sun Feb 11, 2007 10:49 pm

slycordinator wrote: I'm betting there's something more happening. Perhaps you've got grub installed on a disk different than the one that is being booted from so that it's been installed to the mbr of the wrong disk?
That's what I'm thinking also..

Also.. you can always bypass the windows bootmanager by making one entry default (normally there is just one), and disabling the counter.
Top
quad
n00b
n00b
Posts: 19
Joined: Tue Jan 23, 2007 9:17 pm

  • Quote

Post by quad » Mon Feb 12, 2007 10:03 pm

lagalopex wrote:Are there any "systemtools" or "av-programs" running in windows? Was there any update of windows which could have caused this problem? Is it happening in the "safe-mode" of windows as well?
....
I tend to think that lagalopex is at least partially right, if not fully. Windows itself or antivirus programs may very well check the MBR for any modification from the normal Windows loader. Any inconsistency would be thought of a virus trying to hide itself in the MBR and it would get overwritten any time Windows boots. May as well be one of those vendor-supplied programs doing pretty much the same check to ensure that Windows is still bootable on the notebook. I'd say follow this path and see what you can find.
Top
madisonicus
Veteran
Veteran
User avatar
Posts: 1130
Joined: Wed Sep 20, 2006 9:31 pm

  • Quote

Post by madisonicus » Mon Feb 12, 2007 10:10 pm

I'd like to see your grub.conf if you're still having this problem. I may be behind the times, but I just discovered grub-set-default, and it's magical ability to change the default boot behavior. I have to wonder if this might be part of what's going on.
Please add [SOLVED] to your message title if you feel that your question has been answered.
------
Intel Q9300 Core2 Quad * Gigabyte GA-EP35C-DS3R
Samsung x360
AMD64 x2 4200+ * TF7050-M2 * HTPC
ZOTAC ION A-U Mini-ITX * HTPC
Top
Post Reply

10 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic