How to remove windows

Asked by Switching Maybe

I dual booted ubuntu and windows and now I want to completely remove windows to free up some space on my hard drive, how do I do this?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gparted Edit question
Assignee:
No assignee Edit question
Solved by:
sikander3786
Solved:
Last query:
Last reply:
Revision history for this message
sikander3786 (sikander3786) said :
#1

I assume you are using Grub for dual-booting, not the Windows based boot-loader EasyBCD.

And also you've installed Ubuntu in a proper dual-boot to Windows, not via Wubi. (if that's the case, you might dump Ubuntu as well when you delete your Windows partition).

Boot into a Live CD, start Gparted with root privileges and delete the Windows partition. Create a new partition in that place to use that space in Ubuntu.

Re-boot into your Ubuntu install and run

sudo update-grub

to get rid of Windows entry in Grub menu.

If it is Windows 7, there might be an extra System Reserved partition, in that case, delete that as well.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Can you give the output of:

sudo parted -l

Thanks

Revision history for this message
Switching Maybe (bsblindslidedecks) said :
#3

brandon@BrandonCPU:~$ sudo parted -l
[sudo] password for brandon:
Model: ATA SAMSUNG HM160HI (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
 1 1049kB 157GB 157GB primary ext4 boot
 2 157GB 160GB 3143MB extended
 5 157GB 160GB 3143MB logical linux-swap(v1)

brandon@BrandonCPU:~$

Revision history for this message
Switching Maybe (bsblindslidedecks) said :
#4

Actually, I looked into it yesterday and it appears windows has already disappeared because when I boot up system it doesn't give an option, but I know I choose dual boot.

Revision history for this message
Best sikander3786 (sikander3786) said :
#5

Yes there seems to be no Windows partition in your output above. I think you accidentally deleted the Windows partition somehow. Might be you chose the "Use entire disk" during Ubuntu installer. And it is not even being listed in the Grub menu so you don't need to do anything.

Revision history for this message
Switching Maybe (bsblindslidedecks) said :
#6

Thanks Sikander, that solved my question.