Discard Windows system on disk

Hello. About six months ago, I decided to use Linux OS. At that time I was afraid to mess up my PC, so I decided to keep the Windows 11 and split 100G disk space to install a Linux system. I have tried Manjaro KDE and i3wm. But I finally settled down on EndeavourOS. I gradually realized that the Windows 11 on my PC is no longer useful and should be discarded. The problem is I don’t know how. This is my disk status from KDE Partitionmanager:

I want to exchange the position of the two systems, delete the Windows part and then merge the two parts to enlarge the available space of my EOS. I know the KDE Partitionmanager has visual help to manipulate disks. After half a year using Linux OS, I still don’t know how the system boots. That’s why I have the same worry as when I first install Linux system. Will these changes keep me out of the system?

Please help.

You can delete p2 and p3. The expand p4.

You will probably have to boot off a live iso to expand p4.

As long as you leave p1 alone and don’t delete p4 it will probably be fine.

Of course, you should always take a backup before modifying your partitions.

3 Likes

Alternatively, you can just delete the windoze partitions (p2 and p3) and make a new ext4 partition, and mount it with fstab to some directory inside your home directory. That way you don’t need to touch your p4. Of course, what @dalto suggested is a cleaner solution, but could be slightly more risky.

But if you have a good backup, if you mess up, you can always wipe everything clean, repartition, format and install EndeavourOS from scratch.

Congratulations on getting rid of windoze! :partying_face:

3 Likes

I think extending the partition on the left would take heck lot of time, since we are moving data essentially from one place to another, where as extending it to right would be super quick since we are just appending extra space to the end.

I tried doing the exact thing in the past and gave up midway because I was having HDD and the transfer was so slow that I thought re-installing an OS would be much faster.

Just my two cents. Have a great day.

Regards

Extending a partition to the left doesn’t require moving all the data. It should be very fast in either direction.

Yeah, maybe it is fast for SSD drives :smiley: , It was awful slow when I tried it on HDD and I still use HDD (poor man noises :face_holding_back_tears:)

I don’t know exactly what you were doing or how but extending a partition wouldn’t normally move the data itself. It doesn’t matter if it is an SSD or HDD.

Hey Dalto, you could try this in a VM using gparted, when you want to extend partition on left it would do a data move for you, you can also see a progress bar regarding how much data you have moved and how much is left.

This can take hours, depending on volume-size in a VM. A clean install would probably be much faster. :wink:

However, this doesn’t appear to be the OP’s problem! - Or, are you dual-booting Linux with Windows inside a VM??!


If only people would begin reading forum-threads from the beginning and think, before they make nonsense-replies! :cold_sweat:

From my perspective, yours is the only nonsense reply.

The OP wants to expand a partition. @navap was pointing out that in the OPs case this would require extending it to the left. They were pointing out that it would be slow.

That triggered a discussion between the two of us and they recommended I try it out in a VM to see for myself.

It seems like gparted first moves the data then extends the partition to the right.

More interestingly, parted, which used to be able to extend a partition in either direction removed that functionality quite some time ago. This is probably what is causing the difference in understanding between us. I haven’t tried to do this in a long time.

It seems that at this point, you are correct. There are no tools that let you extend a partition to the left. They move then extend which copies all the data.

3 Likes

Thank you, @dalto for enhancing my perspective to encompassing yours. :wink:

As it looks, I must be out-of-tune, somehow. So, sorry @navap for my above remarks!

:pray:

personally I would just delete p2/p3 create one partition change it to home partition and mount it with fstab Agreeing to leave the p4 alone

Thank you all! I should apologize for not searching resources from the Internet beforehand. There are a lot similar posts, like this and this.

It’s tempting to apply suggestions from @Kresimir and @thefrog . Because it sounds just like mount my SD card. But I think @dalto’s suggestion is better, because I have backed up my entire system :grinning:

The process went quite smooth. I booted from my USB disk which is my original EOS installation disk. Then I made the following operation using gparted:

  1. unmount p3 and p4
  2. delete p2 and p3. Now there are only p1 - unallocated - p4.
  3. I forgot. Picked the unallocated portion. Then some option in Partition menu. It popped a window that I can slide p4 all the way to the left until it reached p1. Pull the right margin of p4 all the way to the right. Apply the operations.
  4. It popped a window warning you that moving partition may cause system booting fail. Since I did not touch p1, I thought it should be OK.
  5. The whole operation took about 10min. The time it takes is possibly relates to how much data is stored on the disk.

I’m writing this post on the original system and it just booted normally. Thank you all again!

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.