LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-26-2010, 12:16 PM   #1
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Rep: Reputation: 30
Smile How to uninstall Mandriva and restore Windows 7 Bootloader?


How to uninstall Mandriva and restore Windows 7 Bootloader?
Use windows 7 boot disk, enter rescue mode,
type bootrec.exe /Fixmbr ?
Any suggestion?
 
Old 10-26-2010, 05:06 PM   #2
PehJota
Member
 
Registered: Aug 2010
Distribution: Desktop and netbook: Debian Squeeze; Router: DD-WRT
Posts: 43

Rep: Reputation: 5
You seem to have answered your own question, I think... Or are you looking for a different solution?

You could try to use a GNU/Linux live CD, install ms-sys (many distributions have this in their repositories), and write a new Windows 7 boot sector. For example, you can run `ms-sys --mbr7 /dev/sdX`, where X is the letter of the drive on which you have Windows installed (if you're unsure of this, run `fdisk -l` and look for an NTFS partition that you recognize).
 
Old 10-26-2010, 05:26 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,455

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
for reinstalling Microsoft and the win7 bootloader
search the Microsoft web site
they have the instructions there ( it is there os after all)
the OLD instructions for xp and the "newer" ones for vista
DO NOT APPLY ,or work for windows7
 
Old 10-26-2010, 09:14 PM   #4
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Original Poster
Rep: Reputation: 30
For windows 7, after bootrec.exe /fixmbr, its bootloader still unrestored.
have to go back to the screen, click Repair, and windows will do something and restored.
 
Old 10-26-2010, 09:21 PM   #5
PehJota
Member
 
Registered: Aug 2010
Distribution: Desktop and netbook: Debian Squeeze; Router: DD-WRT
Posts: 43

Rep: Reputation: 5
Quote:
Originally Posted by TigerLinux View Post
For windows 7, after bootrec.exe /fixmbr, its bootloader still unrestored.
have to go back to the screen, click Repair, and windows will do something and restored.
Then use ms-sys; it's pretty reliable and easy to use. And here's a post on how to use it on an Ubuntu live CD. Just use the '--mbr7' flag where the author uses '-m' (as I did in my previous post).
 
Old 10-26-2010, 10:39 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,455

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
did you reformat the mbr ?
microsoft can not read NON Microsoft partition formats

i am willing to bet that Mandriva formatted it to ext3
 
Old 10-26-2010, 11:02 PM   #7
PehJota
Member
 
Registered: Aug 2010
Distribution: Desktop and netbook: Debian Squeeze; Router: DD-WRT
Posts: 43

Rep: Reputation: 5
Quote:
Originally Posted by John VV View Post
did you reformat the mbr ?
microsoft can not read NON Microsoft partition formats

i am willing to bet that Mandriva formatted it to ext3
Umm... The IBM PC master boot record is a 512-byte (1-sector) record with 440 bytes of boot code, a 4-byte disk signature, two placeholder bytes (usually 0x00 0x00), up to four 16-byte partition entries, and a 2-byte (0x55 0xAA) MBR signature (I'm reading this off my wall, lol). The MBR is not a partition itself, and there is no filesystem on a boot sector.

It's the boot code that is OS-specific (or more accurately, boot loader-specific); Windows OSes each have their own boot code, which bootstraps the OS and runs the NTLDR process on the partition marked bootable in the MBR partition table. Mandriva wrote the boot code for either GRUB or LILO (whichever you used) into the MBR; that code would load up the kernel with your initramfs, which in turn bootstraps your system and eventually passes control off to init.

Last edited by PehJota; 10-26-2010 at 11:04 PM.
 
Old 10-26-2010, 11:49 PM   #8
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by PehJota View Post
Then use ms-sys; it's pretty reliable and easy to use. And here's a post on how to use it on an Ubuntu live CD. Just use the '--mbr7' flag where the author uses '-m' (as I did in my previous post).
thanks, very helpful
 
  


Reply


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
How to remove LILO and restore Windows Bootloader RobertRBuce Linux - Newbie 14 10-20-2009 06:08 AM
how to restore linux bootloader after windows installation. jainforall Linux - Newbie 3 12-08-2008 04:00 AM
how do I restore windows and uninstall ubuntu if I don't have a setup disk. tylerboy1121 Linux - Newbie 3 06-17-2008 06:25 PM
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 10:55 PM
Restore bootloader bopo119 Linux - Newbie 5 06-08-2004 09:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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