Wiping Windows at last but how?
2026-07-04 18:51 UTC
Replies (19)
-
@unexposedhazard@discuss.tchncs.de 2026-07-04 18:57
Careful with wiping anything with the “boot” flag. That can backfire very badly depending on how your system is set up. Those are small anyways so i would just leave them and only kill the ntfs partitions and combine that space into an extra partition that you can store stuff in. Resizing partitions is messy so if you want a clean setup with one big home partition i would just reinstall.
-
@mvirts@lemmy.world 2026-07-04 19:02
The easy thing is to just format them ext4 and use them as extra data storage. The good news is your system partition is small so you can delete the first two partitions. Make a small boot partition if you want, make a new system partition second ( bigger than your current one), copy the existing system partition into the new one (without deleting the old one), boot into the new system partition, test that it works, then expand the fs to fill the partition. Then you can move your home partition if you want or just make your system partition huge to fill the space up to your existing home partition, then delete the last partitions an grow your home partition to fill the disk
-
@IsoKiero@sopuli.xyz 2026-07-04 19:03
Well, moving partitions is at least a bit tricky and somewhat unreliable. So, unless you do a full repartitioning you will have sda1 with 520GB(ish). Current /home partition you can extend to fill the ~550MB from end of the drive. Then it’s up to you what you want to do with that 520GB. One option would be to build LVM (or zfs if you wish, LVM likely makes more sense on your case) setup from that and current /home partition and that way you could have ~850GB logical partition for home. Or you can just format the new sda1 as ext4 and mount it to /home/youruser/Media or whatever and have your home directory data split to two different partitions. But whatever you decide, when messing around with partitions make absolutely sure that your backups are in good shape. One small error somewhere and your data might be gone, or at very least you need to learn how to rebuild partition tables. Also when changing partitions check that your fstab uses UUIDs instead of device paths or your system may not boot cleanly. Broken fstab is fairly simple to fix, but it’s easier to check that while the system is up and running.
-
@StrawberryPigtails@discuss.tchncs.de 2026-07-04 19:15
Generally, it’s as simple as just deleting the Windows NTFS partition. I would leave the others for now. Depending on how you installed your distro they may be related to your Linux installation. Deleting them could prevent you from booting into your Linux installation. I’m not as familiar with UEFI as BIOS, but I believe UEFI uses a FAT formatted partition for booting into the OS proper. You may need to adjust the boot order in your UEFI/BIOS afterwards to get it to boot back to Linux afterwards, but that is fairly uncommon in my experience. The most likely issue you might run into is accidentally wiping your active Linux partition instead of the Windows one. I would make backups and have your distros install disk handy before you wipe the partitions. Afterwards, you can resize your linux root to include the now free space or move your home directory to the new partition after formatting it. Your call.
-
@cmnybo@discuss.tchncs.de 2026-07-04 19:34
I would delete the first two partitions and put a new partition there to use as /home. Then expand / where /home was. It’s easy to expand a partition towards the end of the disk. I would not recommend expanding one towards the start of the disk. That would have to move all of the data. It’s slow and much more likely to cause problems. I wouldn’t suggest messing with a boot partition unless you are comfortable using a live boot disk to reinstall the bootloader if something goes wrong.
-
@morto@piefed.social 2026-07-04 19:40
The sda1 and sda2 partitions seem safe to format. Just be sure that you really copied everything you need from there. Like others said, better not to mess with the boot partitions If you want to increase the space of the linux partitions, insead of creating a new extra partition, that may be a bit tricky in that layout, but one thing you can do is (from a live boot) is: 1- delete both windows partitions and create a new ext4 one with ~530gb 2 - clone your /home partition into there and change the fstab to point to the new partition 3- manually check if all your files were safely copied, just to be sure 4 - delete the old /home and expand the size of the / partition into it you will end with a / partition with ~300gb and a /home of ~530gb
-
@waigl@lemmy.world 2026-07-04 20:09
Unfortunately, your existing /home and the ntfs partitions you could remove are in completely non-contiguous regions, so you cannot easily just combine the space. If I were you, I would switch to LVM piece-meal. Ideally, you’d have some other medium were you can temporarily store the current contents of /home while your repartition the drive. Then combine sda2 and sda7 into a volume group and pull just one logical volume out of it for the new /home. Otherwise, create a new volume group with only sda2 in it (just overwrite the existing ntfs filesystem) using vgcreate, create a logical on top of that using lvcreate, make a filesystem in that using mkfs.ext4, I would add the -m 0 parameter for a non-root filesystem, mount that somewhere under /mnt/, move or copy over all the contents from /home to that mountpoint, taking care to replicate file owners and permissions (I would just use cp -a), then once this is done (and you’ve double-checked that it is because at the next step you can lose data if you’re not careful), umount /home, extend the volume group to include sda7 using vgextend, enlarge the logical volume for the new /home to the maximum using lvresize, enlarge the ext4 filesystem in there to the maximum possible using resize2fs, finally editing /etx/fstab to use that new logical volume as /home and remounting /home.
-
@BananaTrifleViolin@piefed.world 2026-07-04 20:40
Before you do anything, backup /home. You can reinstall your system while preserving your /home partition, and reinstalling is probably the cleanest and safest way to do this. It allows you to move the boot and filesystem partitions to the start of the disk, and then resize /home to fill the rest of the drive. You could manually move the partition but it’s slow and riskier when messing with a boot and main filesystem partition; much easier to start again tbh. I’d get a USB and install Ventoy on it. Ventoy is a great bootable USB tool that lets you put multiple bootable ISOs on it & pick one at boot; great for installs and also to keep around as a recovery drive. I’d then put on it a ISO file of your preferred linux distro, and also an ISO file of a good live distro for recovery. GParted Live is particularly good USB live distro for this because resizing the partition is the aim. I’d then boot up the USB drive and select the ISO for your Linux distro’s installer. In that, I’d then use the partition tool in your installer, delete all the windows partitions (sda1, sda2, sda3 and sda4), and then delete the exisiting boot (/boot/efi) and root file system (/) and create new ones at the beginning of the disk: 1gb /boot/efi and 85gb system partiton as you have now, and ensure the /home partition is kept and mounted as /home in the new install. You’ll have loads of free unpartitioned space; leave that for now. After the system is reinstalled, I’d boot in, check everything is ok, and then restart and boot the USB again, this time selecting GParted Live. Then with GParted Live, I’d resize the /home partition to fill all the empty space. But as I said, before you do anything, backup /home.
-
@Ooops@feddit.org 2026-07-04 21:26
The fat32 formated partitions are EFI System Partitions used to boot your PC. I assume that sda3 is the one Windows created, while a later Linux install created sda5 as an alternative. Yet sda5 doesn’t seem to be really used (with that cute 9MB used), so your Linux boot stuff -including a bootloader that would allow you to start Windows (or you picking directly from EFI?)- is probably all sitting alongside Windows’ EFI stuff in sda3. In fact I wouldn’t touch anything there without some backup.
-
@db2@lemmy.world 2026-07-04 22:32
Boot a live image from USB, copy /home to a separate physical disk preserving ownerships and permissions, and save anything from the windows partitions that you want you keep. Once you’ve verified the copy is good delete all the original partitions on the screenshot. From here you install from scratch. You’ll appreciate it later when things aren’t a jumbled mess. If you have any kind of ssd install the OS to that instead, then use that spinning drive for /home. If you have two ssd drives do /home on the second one and use the spinning one for longer term storage like music or videos or the like. Also don’t put your swap partition on an ssd, use the spinning drive for it so you’re not wearing out the ssd. You can do a swap file instead of a partition if you miss the windows way. 😆
-
@sun_is_ra@sh.itjust.works 2026-07-04 23:07
The easiest solution is to format windows partition and mount it as separate mount point (for example /mnt/extra) and use it for storing any large files you have (movies, songs, books, photos, backups, downloaded files …)
-
@Beangut@lemmy.world 2026-07-04 23:41
Personally I’d just boot into a live environment so the SSD isn’t in use, backup important things, then wipe windows partitions and resize /home to use the rest of the space on the disk
-
@ohshit604@sh.itjust.works 2026-07-05 01:22
Everything with a lock means it’s mounted and in use. sda1, sda2, sda6 and sda7 should be safe to format, However as others have mentioned, booting into a live environment is the best course of action as it lets you freely move or combine partitions. I suggest finding a thumb drive and flashing Gpartef onto it.
-
@InFerNo@lemmy.ml 2026-07-05 06:47
I would simply delete sda1 and sda2, then that whole part will be available as 1. Format as ext4. If you play games with steam you could then use it as a space to put games. Steam handles it for you. When you add a disk via Steam settings, it will be listed as an option. Moving partitions is a tedious task and doesn’t always pan out, I personally wouldn’t risk it. Let it be a thing to do if you would ever reinstall completely for whatever reason and start fresh then. Also, backup backup backup.
-
@Cyber@feddit.uk 2026-07-05 09:16
Kinda already covered by others here, but my summary: You won’t have partitions nicely numbered from 1~3 unless you start again. 1- Backup 2- Check the backup 3- Boot from GParted Live (feel free to use another live distro with gparted on) 4- Delete sda1, sda2, sda3 & sda4 5- Move sda5 to the beginning of the drive and resize down to 512MB 6- Slide sda6 & sda7 down next to sda5. I like to have 1MB gap between all partitions to deal with future issues (sometimes restoring a partition might nip the next one) 7- resize /home to fill the rest of the drive 8- redo another backup If you wanted, you can apply each of those steps and then reboot to check it’s all working, then you’ll gain confidence in what’s happening for the future. I also advise doing a health scan of your drive to check it’s SMART parameters. Something like smartmontools (with gsmartcontrol if you like a GUI). Then you’ll know if the drive’s going to die during all that data moving…
-
@diaphragmwp@discuss.tchncs.de 2026-07-05 09:29
Write down GUID for sda6, dd it into sda2, delete sda6 then change the GUID for sda2 to the one written down
-
@Kazumara@discuss.tchncs.de 2026-07-05 09:34
I am assuming everything other than the two ext4 partitions will have to go. Your /dev/sda5 the FAT32 mounted at /boot/efi has to stay too! That’s your EFI System Partition! What you can do is delete the “Microsoft” directory that’s on there, but keep the one named after your distribution!
-
@whatiswrongwithyou@lemmy.ml 2026-07-05 15:54
Use a surface cleaner first. You wanna get the majority of the crud broken up and off first, wiping towards the middle then go get the whole thing with a glass cleaner using a microfiber cloth if you don’t have a squeegee.
-
@AnUnusualRelic@lemmy.world 2026-07-05 21:52
For historical reasons, I’ve had a /space partition for several machines now. It’s used for large media archives, buffering towards other servers (which only grab stuff every now and then), cold storage and the like.