Replacing Windows with Linux Ubuntu 12.04 LTS
Solution 1
Before you begin, you want to make sure that all of the data from your Windows installation is safely backed up, or moved to your Ubuntu partition. Also read these instructions briefly to ensure that they make sense.
- Boot from the Ubuntu live CD.
- Open the GParted program. Your hard disk is split up into 'partitions'. You will have three (3) partitions: One for Windows, one for Ubuntu, and one (the smallest) swap partition.
- Once GParted opens, identify the Windows partition. The partition type is NTFS and will be outlined in greenish blue. The Swap area will be red and the Ubuntu partition will be navy blue, but you want to keep these.
- Right click the greenish blue Windows partition and click "Delete partition".
- Now, right click the navy blue ext4 Ubuntu partition and click "Resize/Move Partition". A dialog box will open - drag the right or left edges of the navy blue box so it fills up the maximum amount of space possible.
- Click OK to close that dialog box.
- Click "Apply" in the main GParted window to apply these operations. Confirm that you want to, if you are 100% sure that you do not need Windows any more. The operation will begin, and it might take a long time - but be patient while it finishes.
- One finished, reboot into your Ubuntu installation.
- Open the Terminal with ctrl+alt+T and type
sudo update-grub
, then Enter. Type in your password, which will not appear, and press Enter again. This will remove Windows from the Grub menu.
Then, you are finished.
But seriously, make sure you don't need anything (internet history, etc.) from your Windows installation! I find Firefox Sync, Microsoft Skydrive, and Google Drive very handy for ensuring a smooth migration to a new OS.
Solution 2
- Start from a Live CD
- Open the GParted progam
- Select the Windows partition (the one with
NTFS
as "Filesystem"), and delete it. - Then extend Ubuntu's partition (probably the largest one) by dragging it's edge to fill the whole drive and click the checkmark.
- Wait for the operation to finish.
-
After rebooting, start the terminal and type:
sudo update-grub
Related videos on Youtube
Chris Stanley
Updated on September 18, 2022Comments
-
Chris Stanley over 1 year
My site contains a LOT of script.
I have a view at the top of the page (topnav). In the bottom half of the page is a view (main). Clicking a link there activates a view on the right side (rightnav). When I click a link in the rightnav, it changes the main view (as intended), but then rightnav disappears.
How can I keep that up while still changing the main view?
EDIT: updated with a Plunker - http://plnkr.co/edit/eba8t46pqGllufteLJlR
<h2>Apparently I have to have code to add a plunker</h2>
-
Richard almost 11 yearsExtending the Ubuntu partition will be impossible if he is already booted into the OS on that partition.
-
stommestack almost 11 years@searchfgold6789 Thanks for noticing. Edited now.
-
Joe almost 11 yearsSome systems also have a hidden rescue partition that can be used to reinstall Windows. If you're really done with Windows, you'll want to delete that as well before making the Linux partition bigger.
-
Joe almost 11 yearsAlthough you may not want to do it right away and wait until you know a bit more about Linux, it's really good to move /home onto its own partition and possibly create another partition just for data. That makes backups and upgrades much easier. It also helps prevent running out of disk space needed to run Linux after storing too many data files on the main (/ or root) partition. There are posts on stackexchange covering how to do this.