LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Remove Ubuntu and keep Grub. (http://www.linuxquestions.org/questions/linux-newbie-8/remove-ubuntu-and-keep-grub-934940/)

floopy1962 03-17-2012 09:28 AM

Remove Ubuntu and keep Grub.
 
Hi there.. here is the deal... i have 3partitions and swap... one big for space one windows 7 and one Kubuntu.
Here is table
SDA1 >NTFS >System Reserved >100mb
SDA2 >NTFS >Windows7 >40gb
SDA3 >Extended >260gb
in SDA3>>>
>SDA6 >SWAP >2gb
>SDA7 >EXT4 >Ubuntu >40gb
>SDA8 >NTFS >[no os]just for stuff >220gb
Now what i want is to remove linux becouse i have realise that windows 7 need more space to work better and don't use linux that mutch.I want to completely remove Ubuntu, format the ubuntu and the swap partitions and then extend the windows7 partitions but the question i ask is:
how to keep GRUB after remove the linux partition?
You may think its a stupit question but i couldn't ask if it was so easy... here is the issue I HAVE NO CD OR DVD :D I'm now running Linux.. it work everythink is fine for now but how can i install grub in the big partition sda8 from my running linux without liveCD ?
Thank you :)

cnxsoft 03-17-2012 09:55 AM

You don't have CD or DVD, but if you have a USB host port and your BIOS can boot from USB, then simply use GParted Live on USB http://gparted.sourceforge.net/liveusb.php.

You can then delete Ubuntu and the swap partition, and extend your Windows partition with the free space.

bigrigdriver 03-17-2012 10:09 AM

I have to ask why do you want to keep grub as a boot loader if you are removing Linux?

It would only slow the process of booting into windows and serves no purpose that I can discearn. The windows bootloader would be a better choice.

McPhart 03-17-2012 10:42 AM

I don't see why you'd want to keep grub, but you could do the following:
- Boot a Gparted-CD
- create some free space (50MB will do)
- move partitions, so the free space is in the primary part
- boot into Linux
- create a new partition (EXT3) on the created free part
- flag it bootable
- move /boot to the newly created partition
- Edit boot.list and run grub-install

This way you'll have Grub as bootloader, but updating it when Ubunutu is uninstalled might be a problem :)

floopy1962 03-17-2012 02:36 PM

Quote:

Originally Posted by bigrigdriver (Post 4629157)
I have to ask why do you want to keep grub as a boot loader if you are removing Linux?

It would only slow the process of booting into windows and serves no purpose that I can discearn. The windows bootloader would be a better choice.

is it possible to restore to windows 7 boot loader without cd ?

TobiSGD 03-17-2012 02:48 PM

You can at least give it a try: Open a terminal as administrator and launch the command
Code:

bootrec.exe /fixmbr
If it works it will restore the original bootloader.


All times are GMT -5. The time now is 05:15 AM.