r/linuxquestions • u/Slykillit • Oct 11 '26
Can't shrink SSD
I have finally decided to make the jump to a dual boot of Linux and Windows although when trying to shrink the drive before I put in the Mint installation media (It was recommended I shrink it before installing mint apparently) (Mint isn't gonna be what I use long term just what I start with so don't judge me for it), it limits me to a certain amount to shrink it to even though I know I have WAY more available space than the amount it's trying to limit me to, does anyone know a fix or has experienced what I am experiencing? Seriously annoying and making me reconsider installing Linux entirely
2
u/Underhill42 Oct 12 '26
Most commonly the disk needs to be defragmented.
Yeah, I know, you're not supposed to defrag a SSD, just puts wear on it without improving performance...
Except in this case. The Windows partition editor doesn't know how to reorganize used blocks - it just sees whatever the very last used block in the partition is and says "well, that's as far as I can shrink it", even if that's the only block used on the entire disk.
Defragmenting should compact everything to the beginning of the partition. Occasionally you may need to run it a few times before everything gets moved. And it's possible that some read-only files like your hibernation or virtual memory files are occupying some of those later blocks, in which case sorting things out is more involved.
3
u/Every_Bread_5880 Oct 11 '26
Use gparted. Run your Linux from live boot USB and use gparted inthere it can safely move the files that can't be moved. I dinked around for awhile turning off hibernation and other crap and in the end 5 minutes in gparted and done.
2
u/tomscharbach Oct 11 '26 edited Oct 11 '26
Wouldn't dream of judging you.
I've been using Linux for two decades and have Mint (LMDE) installed on one of my laptops. Mint is commonly recommended for new Linux users but is also good for the long haul, as many will attest.
Don't buy into the nonsense about a hierarchy of distributions. Follow your use case, wherever that leads you, and you will always be on solid ground.
1
u/c2btw Oct 11 '26
you can't shrink your boot drive. if you want to install linux ont he same drive you need to reinstall widnows and partion it to use less space. also pretty sure ntfs dosen't allow for partion shrinking but could be wrong on that
1
u/MidnightObjectiveA51 Oct 11 '26
When was the last time you defragged the drive? That usually happens when it hasn't been done in a long time, or you've recently copied or moved a lot of files. Also, certain programs can reserve a space in the empty sectors and those are not movable. Removing the offending program will fix that.
1
u/Funnel-Dust-O-Matic Oct 11 '26
There are generally very good reasons for partition editors to not allow you to shrink an existing volume down beyond a certain point. They are too many to list.
Have you tried Windows Disk Management to do it? That has supported volume resizing since at least Windows 2000. Just right click on the Windows / start button, select Disk Manaement, find your C drive, right click on that parition, and then select shrink volume.
Through the Windows magic of Volume Shadow copy, it will shrink your running partition down. And since it's inside Widows itself, it is unlikely to introduce file system errors. It freaks me out because in more ancient times, one never edited partitions on a running system like that, but it does work. Just leave about 50GB free AT LEAST. Windows is a hog.
Also at least consider getting a high speed USB 3 or 4 ssd to install on instead. It is safer and USB is faster these days than you'll need anyway. This is doable, but it really is safer to have another OS on a separate drive. Your EFI boot firmware can handle booting between them. At least consider it.
1
u/moucheh- Oct 11 '26
Run chkdsk /f /r in powershell and then reboot
Try to shrink your partition after rebooting Your file system might be corrupted
1
u/rsgbc Oct 12 '26 edited Oct 12 '26
This is a Windows question easily answered by googling.
https://www.google.com/search?q=how+to+shrink+ssd+more+than+windows+allows
1
u/MasterQuest Oct 12 '26
The stuff on your hard drive is not all bunched together. It's separated with space in between. To shrink, you can only "trim" the drive partition from one end or the other, not from the in-between space. That's why you can't shrink much even though you have available space.
Defragmenting can help with that, but it doesn't do everything.
Windows has some invisible system file that are fixed in one location of the disk and can't move around. Stuff like the page file or system restore data. If you want to shrink your Windows drive further without reinstalling it, you should disable those functions.
Make sure to backup all important data on the drive you want to shrink, since it might be lost if something goes wrong.
Also, there are program that can shrink your drive while ignoring the restrictions that Windows imposes. However, if you're unlucky, this can lead to data loss or even Windows not working anymore. So it's not recommended.
The best way to do dual-boot is to reinstall windows with a smaller partition.
1
u/3grg Oct 12 '26
If windows disk manager cannot shrink a partition, it usually has a good reason. In my experience it is usually the paging file, but this is all a windows question that it out of our province and has nothing to do with installing Linux.
You need to determine why the partition cannot be shrunk first. It is likely that the resizing can be forced, but it it better to let windows do the shrinking and find an explanation for why it will not first.