After nine months of not having booted my Windows even once, I think it’s time to wipe the Windows related partitions once and for all and claim the space. The problem is I think the way my partitions are structured, it may not be that easy. I am assuming everything other than the two ext4 partitions will have to go. What do you think? r/linux4noobs -
Someone even suggested I nuked the whole thing and started again, which would be the absolute last resort and only when I ran out of space.
EDIT: In the end, having considered all replies, I decided to go with a compromise. I wiped the NTFS partitions and made an ext4 out of the unallocated space. Then, I moved /home to that new, larger partition and if it all continues working for a day or two, I will wipe the old and smaller /home, which is not mounted now anyway, and use it for storage. This allocation will last me for ages until I have to reinstall the OS, at which point I will use the opportunity to tidy things up. I thought this was not the time to break my system moving partitions. There were some hairy moments (eg when a UUID changed quietly and the system failed to start) but overall it was OK.
Thanks to everyone for the help. This thread was very educational and I hope others will find it useful too. As a sidenote, I posted the same question to a much bigger subreddit and I received very few responses and little help. So, the much smaller Lemmy wins hands down!
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 …)
In the end, I went for something like this. I moved
/hometo the larger partition I created out of the Windows partitions and I will use the old, smaller/homeas separate storage.The problem now is how I can remove Windows from the bootloader. There is no Windows partition left anyway.
It depends how your boot is setup
If you intially get the uefi boot (usually black screen) then try to search “removing entries from uefi boot in Linux”
If you directly get colorful screen then it could be grub and in this case u search for grub instead of uefi
But it also could be something else that is neither grub nor uefi, you really need to find out first what is your bootloader
Apparently, the easy way is to install Grub Customizer, but I don’t like PPAs so I disabled the OS Prober instead. The partition is still there but at least I don’t see the grub entry.
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.
that is an odd layout, even for a windows system with linux added later.
what’s the actual order of the partitions on disk?
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
How would you resize
/homeupwards with/boot/efistanding in the middle?You can freely move partitions/free space when the partition is unmounted. That’s why the last guy recommended a live disk, so that all your partitions would be unmounted.
It is worth noting you can only move partitions into a empty space larger enough for the full partition. Its a copy/delete process not a shift process.
In this case it should work. Delete first two windows partitions. Then move the Linux boot to first part. Then move the root partition Then move the home partition Then finally expand the home partition to the rest of the disk.
You will probably need to fix grub and do an initfs(?) Since the order of partitions have changed.
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.
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.
I have changed the partitions and all seems to work but I still get the bootloader menu with the Windows option even though there is no Windows partition. Not a huge problem, but it is a little annoying I can’t remove references to Windows without risking breaking my setup.
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. 😆
I agree with this approach. It results in the cleanist install that does not require setting up everything from scratch.
You can even backup your / as well if you want to copy some configs from the current install.
Everything with a lock means it’s mounted and in use. sda1, sda2, sda3 and sda4 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 extend partitions.
I suggest finding a thumb drive and flashing Gparted onto it.
The one word of caution here if the bootloader is stored in these partitions you mentioned in which case it could render their system unbootable which would require some fixing. The safest would be like another commenter mentioned to only format the ntfs partition after doing a backup of course.
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 usinglvcreate, make a filesystem in that usingmkfs.ext4, I would add the-m 0parameter for a non-root filesystem, mount that somewhere under/mnt/, move or copy over all the contents from/hometo that mountpoint, taking care to replicate file owners and permissions (I would just usecp -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 usingvgextend, enlarge the logical volume for the new /home to the maximum usinglvresize, enlarge the ext4 filesystem in there to the maximum possible usingresize2fs, finally editing /etx/fstab to use that new logical volume as /home and remounting /home.I think that’s a good plan. With a backup, moving step-by-step and some reading it’s difficult to get it horribly wrong. If the new
/homedoesn’t work while the old/homeis unmounted, I will just have to backtrack. Minimising risk sounds like a project though.
The easy thing is to just format them ext4 and use them as extra data storage.
Edit 2: don’t delete the efi partition!!! Move that just like your system partition. Unless you want to learn how to rebuild it :) unless you’re using Windows boot manager you can remove the Microsoft folder from the efi partition as well
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
Edit: once you know the new system partition works you delete the old one.
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.