Backup Backup Backup
Backup all your data, documents, songs, pictures, videos, etc. etc. What you are trying to do is dangerous. Make two backups. Test them to make sure you can restore from them.
Don't backup in the internal hard drive. Backup in an external storage media.
Boot from Live USB/DVD
As we are going to change the Ubuntu system partition, we cannot use the Ubuntu that is already installed. We need a Live USB/DVD. Either a Live USB or a DVD will work. I will just call it a Live USB here.
Boot from a Live USB version of Ubuntu. Use the Try Ubuntu without installing option.
- Use the application called Gparted in the Live USB.
- Make sure the correct hard drive is selected.
- Delete the partition
/dev/sda2
above. Note that it may be called
something else when you use the Live USB.
- Apply the Changes (Nothing happens until you Apply)
- Now Windows is gone for ever, so is all the documents, music etc.
you saved in Windows.
- Highlight the Extended Partition 4 in the above picture. This
may be called
/dev/sda4
. Note, inside this extended partition, there are two logical partitions. /dev/sda5
and /dev/sda6
. Our final goal is to increase the size of /dev/sda5
. But to that we need to make room for it in /dev/sda4.
- Expand the
/dev/sda4
to the left to take up all the empty space
created by deleting /dev/sda2
.
- Apply the Changes.
- Highlight
/dev/sda5
.
- Expand the
/dev/sda5
to the left to take up all the empty space
created inside /dev/sda4
.
- Apply the Changes.
You are done. Exit Gparted. Shutdown the Live USB. Unplug the USB. Turn the PC back on. If all goes well, you should boot Ubuntu.
You may still see the Grub menu that gives you the option to boot Windows, but that option will not work anymore.
Open a terminal by pressing Ctrl+Alt+T in Ubuntu and enter:
sudo update-grub
This should get rid of the Windows option.
You may still see the Grub menu at the boot time. You can hide the Grub menu by a small edit to Grub.
In the same terminal use the following commands:
sudo -H gedit /etc/default/grub
Find the line:
GRUB_TIMEOUT=10
and change it to:
GRUB_TIMEOUT=0
Then save the file and exit gparted.
Finally in the same terminal: enter
sudo update-grub
again to make the edit you just made take effect.
This last part is from Skip boot menu at Ubuntu startup
Hope this helps