Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I recently discovered that running a Linux virtual machine is both cheap (RAM/CPU-wise) and easy; it seems like there's absolutely no need to have a dual-boot Windows/Linux machine (if this is not true - please tell me why!). That said, I would like to format my HDD's Linux partition and allocate that space to Windows. The only thing I'm worried about is the GRUB file, which (I assume) lives on the Linux partition, because I installed Linux second after Windows. Is it possible that by formatting the Linux partition I can damage the GRUB file and be unable to boot?

Details: Windows 7/Ubuntu 13.04 living on an SSD. When I turn on my computer the screen to choose an OS to boot to is the Ubuntu one (vivid purple color).

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Short answer is Yes, you'll damage your GRUB installation.

It doesn't matter where GRUB is located, on MBR (likely in your case) or on Linux partition, it needs /boot/grub directory to work which is (almost) always on your Linux partition. This is because the GRUB binary needs to be kept in a partition because it's too big for the MBR.

If you have separate /boot partition, you may keep it, and your GRUB will keep working, although if you select Ubuntu it won't boot.

Or you can boot from a Windows CD and "repair" the bootloader.

share|improve this answer

I use lilo to rescue bootloader. Here is the well explained solution to your problem

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.