LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (http://www.linuxquestions.org/questions/general-10/)
-   -   Wubi (ubuntu) installed with windows xp - how do i get rid of xp? (http://www.linuxquestions.org/questions/general-10/wubi-ubuntu-installed-with-windows-xp-how-do-i-get-rid-of-xp-729163/)

jrjone 05-28-2009 04:21 PM

Wubi (ubuntu) installed with windows xp - how do i get rid of xp?
 
A month ago I finally got el humpo with Windows XP and so I downloaded WUBI which is an UBUNTU installer. It worked like a dream, and seems to get better every day. Q: Why did I put up with all the crap that Microsoft threw onto my laptop? A: Because I thought I had to. Now I know different.

This last week I've gradually moved all my necessary Windows files to USB drives and then transferred them onto Ubuntu. No problems.

Here comes my question: At present when I turn on the laptop I'm given a choice whether to boot into Windows XP :mad: or Ubuntu :cool: and you can guess which I pick every time. I'd like to know if
1) It's possible to now actually REMOVE XP from my laptop so my only os is Ubuntu, or 2) If I can't do that, how do I enable my laptop to just boot Ubuntu when it's switched on?
I LOVE UBUNTU!

Your help would be greatly appreciated, and thanks to everyone who helped me out with my headphones problem.

Here's hoping . . . .

stress_junkie 05-28-2009 04:54 PM

You should keep Windows. You never know when you are going to want to do something that is difficult on Linux and easy on Windows. Four of my five computers are dual boot with Windows as the alternate. You don't have to hate Windows when you enjoy Linux but it often works out that way. :)

rjlee 05-28-2009 04:55 PM

Edit: Sorry; I was wrong about this; I was forgetting that Wubi installs onto the Windows partition itself. As ehawk says, you will need to transfer Ubuntu onto its own partition before following these instructions.

You can do both from within Ubuntu.

2) is easiest and I'd do that first. There's no actual GUI tool installed by default to setup the bootloader, but installing one is easy: Either run this command or install startupmanager from Synaptic:
Code:

sudo apt-get install startupmanager
To run startupmanager, either create an icon for /usr/sbin/startupmanager, or run
Code:

sudo startupmanager
Simply uncheck "Show bootloader menu" and you won't be prompted to boot Windows any more.

1) is also quite easy, but it carries a warning: if you delete the wrong partition, then you will have to re-install, so it's always a good idea to create a backup first.

All you need to do is to delete the Windows partition. Go to System/Administration/Partition Editor, and select the Windows partition (the file system type FAT32 or ntfs). Right-click on it and select "format to", then "ext3". You can also choose to mount the partition on your system to make use of the freed up space.

Hope that helps,

—Robert J Lee.

PS: stress_junkie makes a good point; Windows is actually not bad at many things. Personally, though, I haven't used Windows on my own computer for about 8 years, and there are very few times that I've ever wanted a Windows machine for anything other than compatibility testing on websites.

verdeboy2k 05-28-2009 05:01 PM

Completely removing XP is easy. All you need to do is delete the partition. If you want to grant more room to Ubuntu, you can use a partition resizing tool to give Ubuntu WinXP's space.

If you need and or want to keep XP around, you can change the default boot entry in GRUB or if you wanted to remove the entry for Windows in its entirety, you can simply delete the lines from '/boot/grub/menu.lst' that look like this:
Code:

title=Windows XP Pro
rootnoverify (hd0,0)
makeactive
chainloader +1

This was taken from my GRUB configuration, what Ubuntu calls it may vary.

Useful Links
How-To use GParted - a GUI partition editing tool.
Howto Change Ubuntu Boot Parameters

Google turned up hundreds, there are just the best looking ones.

aysiu 05-28-2009 10:53 PM

I think some of the well-intentioned folks trying to help you out don't quite understand how Wubi works.

There is no Ubuntu partition with Wubi.

Wubi installs a virtual partition for Ubuntu insider of Windows (it's just one very large file inside the Windows partition) and then modifies the Windows boot loader (not Grub) to add an entry for that file.

So you cannot delete the Windows partition from Ubuntu, as Ubuntu (installed with Wubi, anyway) is dependent on the Windows partition's existence.

ehawk 05-28-2009 11:07 PM

Yes, please see previous post. Wubi installs ubuntu WITHIN the windows partition. To remove XP you must first put ubuntu on its own partition. You can do this using LVPM from within your wubi installation.

http://lubi.sourceforge.net/lvpm.html

jrjone 05-30-2009 08:21 AM

Quote:

Originally Posted by ehawk (Post 3556070)
Yes, please see previous post. Wubi installs ubuntu WITHIN the windows partition. To remove XP you must first put ubuntu on its own partition. You can do this using LVPM from within your wubi installation.

Hi, thanks. I've installed LVPM, or I think I have because I can't find it anywhere! I even went back and did it a second time and chose "Run" instead of "Install" but nothing happened.

ehawk 05-30-2009 10:28 AM

Hi

I have not used it myself. I thought it would be possible to use following the directions on the web page I linked. You can also read and ask about it at the ubuntu forums:

http://ubuntuforums.org/showthread.php?t=438591

There is supposedly a tutorial video here:

http://www.mefeedia.com/entry/upgrad...-lvpm/13403233

Here is the contact information for the developer of LVPM:

https://wiki.ubuntu.com/GezaKovacs

http://www.linuxhaxor.net/2008/12/06...ted-partition/

dasy2k1 06-03-2009 09:01 PM

probabbly the easiest way allthugh it would mean starting again is just to get a normal ubuntu cd (non wubi) pop that in the cd drive, boot and when you get to the partitioner select use whole disk


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