Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Getting linux off my laptop

  1. Aug 5, 2009 #1
    How do I get linux off my laptop and reclaim that partition without having to do a fresh Windows install and without damaging the boot manager (GRUB)?
  2. jcsd
  3. Aug 6, 2009 #2


    User Avatar
    Gold Member

    If you want to get rid of linux why do you want to keep grub?
    Generally, the files grub uses to boot are stored in the /boot directory of your linux partition. So formatting that partition will destroy grub. If you're only using windows then I'd recommend reinstalling the windows boot loader.
    This can easily be done with the Windows install cd, the SuperGrub cd, or even more easily, with Lilo.
    To use Lilo, install on your current linux distro and execute the command:
    lilo -M [device] mbr
    where [device] is the device where grub is installed. That worked for me but no guarantees. The windows cd is the safest way to go.
  4. Aug 6, 2009 #3
    I formatted the partition which contained linux, it removed GRUB but it resulted in failure to boot into windows. Ive now reinstalled ubuntu to replace GRUB, I just want to get all that space back. I dont know how to use the windows disk to install the boot manager, but I will google it and see if I cant figure it out.
  5. Aug 8, 2009 #4
    So what you are asking:
    I dual boot windows and linux, how do I make a windows only machine from it?

    You can try to use a windows boot cd and fix the mbr (master boot record) use google, then your machine will directly boot into windows. Windows has a build in partition manager, and I think you can use it to delete the linux partition and resize c:
  6. Aug 8, 2009 #5


    User Avatar
    Science Advisor
    Homework Helper

    As daniel says if you removed grub then it can't boot.
    The MBR is only 512 bytes, all it contains is a link to which program to use on which partition. If you selected to install grub tot he mbr - all it i was replace the 'windows' mbr with one that points to the grub install in the linux partition.

    You can restore a regular MBR with either the lilo or fixmbr/restore command on the linux boor disk. Or you can use the windows install cd, select rescue and then use the fixmbr command
  7. Aug 8, 2009 #6


    User Avatar

    Do you want to keep GRUB because you don't currently like the distro you have installed and want to try to dual boot another linux distro?
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook