Right now in my bootloader i have 3 OS namely ubuntu 12.04 , windows 7 and windows 8 . i have a virus in my pc and so windows 7 and 8 dont work. i want only ubuntu 12.04 on my pc right now and then after cleaning my pc free from viruses i may dual boot it with windows for gaming purposes. so how do i remove windows 7 and windows 8 and just keep ubuntu as my operating system ? Please help.
-
how do i upload the screenshot ?– ankitJun 9, 2013 at 14:05
-
i think the partition is faulty , it is not readable , i think it has been corrupted badly . when i am trying to delete the partition it shows "Please unmount any logical partitions having a number higher than 5" . Does this relate to the partition name ? because the partition having windows 8 is dev/sda5. i deleted windows 7 partition successfuully . But i cant even mount this partition now so cant delete the boot files . :(– ankitJun 9, 2013 at 14:14
-
haha. i coundl't delete the partition and so i formatted it to ext4 and then again to ntfs and now it is blank :P haha . lol . how did that happen ? i still cant delete the partition thougn– ankitJun 9, 2013 at 14:16
-
[IMG]i44.tinypic.com/316ug60.png[/IMG]– ankitJun 9, 2013 at 14:22
3 Answers
Just delete the Windows partitions with gparted.
Make sure to open gparted as root.
if you don't have gparted installed install it by typing sudo apt-get install gpareted
in a terminal.
Start it with sudo gparted
and edit your partitions.
-
-
-
that just was a wubi directory. sorry for that. Can you explain the process to me ? i'm not that good with terminal commands– ankitJun 9, 2013 at 12:15
-
open a command line, execure
sudo gparted
and delete the windows partitions from there on.– engrazeJun 9, 2013 at 12:17 -
and is there a way to edit the partition sizes ? not with the command line but is there an application for it ?– ankitJun 9, 2013 at 12:20
The most simple way for you to do it is trough graphical interface:
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
Afther you install the program you will be presented with all the boot options, remove rom that list windows 8 and 7. Afther that you have to physicaly remove them from your hardware.
sudo apt-get install gparted
Now press the super key, type gparted and open it. You should get something like this:
Now just make sure you chose the corect partition(for windows 8 aor 7) and press the delete button and you will delete that partition.
For a graphical tutorial just go on youtube : GParted Tutorial
-
but they have a transparent key drawn to the left of the file system and the delete option is greyed off– ankitJun 9, 2013 at 13:28
-
-
What do you mean it is grayed of? did you watch the youtube tutorial? mayby you are doing something wrong– MihaiJun 9, 2013 at 13:40
-
when i am deleting the 2nd partition , it is saying Please unmount any logical partitions having a number higher than 5– ankitJun 9, 2013 at 13:59
-
Pls provide a screenshot with what you want to do. I think the problem is, if you have a partition for example sda2 and another one sda3, and sda3 was made from sda2 i think you have to delete first sda3 and then sda2– MihaiJun 9, 2013 at 14:40
There is a simple solution, only takes 10-15 minutes. It worked for me several times.
SOLUTION:
- GET A WINDOWS 7 OR 8 INSTALLATION DISK.
- BOOT WITH THAT DISK{just like windows installation}
- When installation reaches hard disk partitions menu......
- Format the drives in which windows 7 and 8 are contained.....
NOTE DO NOT FORMAT OTHER DRIVES. IF THE FORMAT DOESN'T COMPLETES. JUST DELETE THE PARTITION AND RECREATE IT.
-
Yesssss.... Ur,,, Right Alwar– user72657Jun 9, 2013 at 13:28
-
Thanx Alwar.... I will make improvements– user72657Jun 9, 2013 at 13:28
-
Wow! Alwar.... You have 5 golden badges ........ what a highness.....– user72657Jun 9, 2013 at 13:30
-
1i dont have any installation discs , both had been installled with iso files– ankitJun 9, 2013 at 13:31
-
Then just burn the iso in DVD.......and then try– user72657Jun 9, 2013 at 13:36