I had windows 7, I was afraid to install Linux, but still decided, installing it in parallel with windows, now I need to remove the windows OS, while leaving ubuntu Linux. PS: I will say right away that windows does not work: D

  • To do this, you have to learn linuh on a solid five. Otherwise, it will also stop working: D Well, as you learn, write the answer yourself. - Sergey

1 answer 1

We download the latest version of GParted Live , make backups of important files on a separate piece of hardware, put "UNetbootin":

sudo add-apt-repository -y ppa:gezakovacs/ppa && sudo apt update && sudo apt -y install unetbootin 

We stick a flash drive formatted in FAT32 , through unetbootin we select "Disk Image" and specify the downloaded iso, click "Ok", wait for the end of the recording, reboot into Gparted Live.

unetbootin window

Next comes how I usually mark the discs. You can be different, act on the circumstances.

This is how the hard disk was initially broken. 2 OS: Windows and Linux. gparted-01

Remove the system partition from Windows. enter image description here

That's how it should turn out. enter image description here

Right-click on the section with linux and click "Resize" enter image description here

Mouse drag section to the left to start the screw. enter image description here

We are warned that everything can break. We agree, because there are backups and a lot of free time. enter image description here

Expand the same extended section. enter image description here

Like this: enter image description here

Move the swap. You can recreate, but then the UUID partition is lost and you have to rewrite /etc/fstab . enter image description here

Extend the hamster to the left. enter image description here

Utak Wat. enter image description here

We demolish the disk D:\ . We can not demolish, but once such a booze went ... enter image description here

Something like this: enter image description here

Extend the hamster to the right to the vacant space. enter image description here

It should turn out like this: enter image description here

And now we apply everything that we clicked through "Apply" in the upper right corner. We will be warned that now the changes will be applied exactly and exactly nothing will be changed. enter image description here

If everything goes smoothly - there will be such a window. enter image description here

Now click "Manage Flags" on the Linux root section: enter image description here

And assign it a boot label. enter image description here

Final cut. enter image description here

PS It is better to stock up with another livecd with graphics, so that you can google how to fix everything, if something goes wrong and the computer turns into a pumpkin. IMHO, xubuntu 16.04 - one of the most optimal options.

  • 3
    Could you give a more detailed answer describing the proposed solution of the problem described in the question? In the current version, the answer is not complete. It is obvious that the installation of the partition editor does not solve the problem. You probably meant that with this editor you can remove Windows. Your answer will be complete if you describe this process step by step, including instructions on how to configure the OS loader and remove Windows from the menu. - Uranus
  • Nivapros. Out to do screenshots. - don Rumata
  • @Uranus, done. - don Rumata
  • Someone put a minus. Hehe. Surely, according to the instructions, along with Windows, deleted the linux. - Sergey