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: Remove Grub - Restore Windows 7


08 Feb 2010   #1

 
 
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 partition. The two partitions on the end are for Ubuntu and its swap partition. Windows does not recognize the file system used by Ubuntu, so you see no data.

Name:  four_os_01.PNG
Views: 2667
Size:  91.7 KB

This is the same hard drive viewed from Ubuntu using GParted. Ubuntu does recognize the Windows NTFS file system and correctly labels the partitions. Again for verification, the last two partitions (volumes) are for Ubuntu and its swap partition.

Name:  four_os_02.PNG
Views: 4161
Size:  93.8 KB

From Windows 7 Disk Management, remove (delete) the last two partitions or, if your installation is different, the Ubuntu partitions.

Boot to your Windows 7 install DVD (or the System Repair CD) and navigate to the Command Prompt option.

Name:  mbr_02.png
Views: 3571
Size:  220.2 KB Name:  mbr_03.png
Views: 3648
Size:  212.8 KB

Name:  mbr_04.png
Views: 3489
Size:  13.3 KB Name:  mbr_05.png
Views: 3611
Size:  25.7 KB

Type: diskpart
and press enter.

Type: select disk 0 (zero)
and press enter

Type: list volume
and press enter

and identify the drive letter of your CD/DVD drive.

Code:
Microsoft Windows [Version 6.1.7100]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

X:\Windows\system32> diskpart

Microsoft DiskPart version 6.1.7100
Copyright (C) 1999-2008 Microsoft Corporation.
On computer: VIRTUAL-7

DISKPART> select disk 0 
Disk 0 is now the selected disk.

DISKPART> list volume 
  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0     D                       CD-ROM          0 B  No Media
  Volume 1     S   System Rese  NTFS   Partition    100 MB  Healthy
  Volume 2     E   Virtual-XP   NTFS   Partition     11 GB  Healthy    System
  Volume 3     C   Virtual-7    NTFS   Partition     20 GB  Healthy    Boot

DISKPART> exit
Type: exit
to close Diskpart.

Using the drive letter you identified, type: D:
and press enter.

Type: cd \boot
and enter

Type: bootsect /nt60 SYS /mbr
and press enter

Name:  mbr_09a.png
Views: 4532
Size:  36.3 KB

This command should find the "Active" partition with the System files and boot code and restore your Windows 7 Boot Manager.

Type: exit
to close the Command Prompt
then restart.

Name:  mbr_10.png
Views: 3522
Size:  25.0 KB

If Windows 7 is the only OS, you should boot directly to it and not see any Boot Menu.


Other links:

Repair CD - System Repair Disk

System Repair Disc - Create

System Recovery Options

How to Boot to the System Recovery Options in Windows 7

How to Boot to the Advanced Boot Options in Windows 7



My System SpecsSystem Spec
.

03 Oct 2010   #2
Microsoft MVP

 

This is working in cases where Startup Repair can't. Thanks.
My System SpecsSystem Spec
21 Sep 2011   #3

W7 32
 
 

Just made an account just to say a big "THANK YOU"!
My System SpecsSystem Spec
.


21 Sep 2011   #4

 
 

Quote   Quote: Originally Posted by Halesk View Post
Just made an account just to say a big "THANK YOU"!
Thank you for letting us know, Halesk. And welcome to Windows Seven Forums!
My System SpecsSystem Spec
14 Jan 2012   #5

Windows 7 Professional x64
 
 

I aswell just made an account to say THANK YOU!
My System SpecsSystem Spec
25 Jan 2012   #6

Windows 7 Home Premium x64
 
 
Thank you!

Thank you so much man! - Like the two before me I only made an account to thank you. I cannot express how much of a relief it is to finally be able to get my PC booting correctly.

Keep up the good work.
My System SpecsSystem Spec
29 Jan 2012   #7

windows 7 ultimate x64
 
 

You're a life saver!!! Thank You very much indeed! I registered for the same reason as the guys above. I'll be back soon probably. Thanks Again!
My System SpecsSystem Spec
29 Jan 2012   #8

Windows 7 Home Premium 64bit SP 1
 
 

Very nice! Thanks for the awesome tutorial!
My System SpecsSystem Spec
02 Feb 2012   #9

 
 

Quote   Quote: Originally Posted by ryan2332 View Post
I aswell just made an account to say THANK YOU!
Welcome to Windows Seven Forums ryan2332. Thank you for taking time to let us know!

Cheers!
Robert
My System SpecsSystem Spec
02 Feb 2012   #10

 
 

Quote   Quote: Originally Posted by 1pnoe View Post
Thank you so much man! - Like the two before me I only made an account to thank you. I cannot express how much of a relief it is to finally be able to get my PC booting correctly.

Keep up the good work.
You are most welcome 1pnoe! Glad you found a solution that worked for you and for letting us know. You are very much appreciated!

And welcome to Windows Seven Forums!

Cheers!
Robert
My System SpecsSystem Spec
Reply

 Remove Grub - Restore Windows 7




Thread Tools



Similar help and support threads for2: Remove Grub - Restore Windows 7
Thread Forum
Dual Boot W7/XP using Grub - Can grub assign letters to partitions? Installation & Setup
I am trying to access the bootsect.exe in order to remove grub Installation & Setup
How do i completely remove Ubuntu and restore with Windows 7? Backup and Restore
Remove Grub & Restore MBR Backup and Restore
Windows 7's hibernate vs grub General Discussion
how to remove grub.. to have windows 7 alone Installation & Setup
Remove GRUB with XP as dual boot to install Windows 7? 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 03:35 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33