I have a computer that originally came with windows 7. I recently installed Ubuntu 11.04 (natty) on it. Now, I want to remove it from the computer while keeping windows. Unfortunately, I don't have the windows recovery disk anymore... Is there a way I can delete ubuntu without deleting the booting program (the purple screen where you can select the operating system)?
Why would you want to keep Ubuntu bootloader (GRUB) if you're removing Ubuntu? I'm not sure it's possible because I believe GRUB stores some of its files on the partition you're going to remove.
I believe you need to re-install Windows boot loader, then you just boot into Windows and delete Ubuntu partition using standard Windows tools. You may be able to resize the windows partition to take up the free space or create a new NTFS partition there.
(as such, the question turns out to be totally unrelated to Ubuntu... you can do everything in Windows)
You could also try to create recovery disc: howtogeek.com/howto/5409/create-a-system-repair-disc-in-windows-7/ if that seems more convenient to You.
If needed You can use Windows bootloader. In menu start write msconfig and press enter. Than in boot options You have to find option: other systems display time or something similar. Set value to 30 sec. regards
How To Delete Ubuntu From An Ubuntu + Windows 7 Dual Boot:
This will allow you to remove Ubuntu, while maintaining access to Windows 7. You will still be using Grub.
- Download "Parted Magic" and burn it to a dvd. (Or you can use an ubuntu live cd) [http://sourceforge.net/projects/partedmagic/files/partedmagic/Parted%20Magic%205.7/pmagic-5.7.iso]
- Boot "Parted Magic" and select "Run From Ram"
- Open Gparted, and delete your ubuntu parition(s), and swap partition.
- Reboot into windows, and install "EasyBCD" [http://cdn.neosmart.net/software/EasyBCD/community/EasyBCD%202.2.exe]
- Using EasyBCD remove the Ubuntu entries from your bootloader.
- Uninstall EasyBCD
PLEASE NOTE: If your windows partition is BEFORE your Ubuntu partitions, you can safely expand the windows partition to use that space up, if you do this from linux you will get a disk check error upon booting windows the first time, don't worry, let disk check examine your disk, which should only take a few minutes.