How to prepare SSD drives for shrinking partitions in Windows?

7

4

I was trying to shrink a partition (Windows 10). For traditional hard drives, I can use the Optimize Tool to defragment the hard drive to free up disk sectors towards the end of the HD and shrink the volume as much as possible.

However, I read that the Optimize tool in Windows does not defrag SSD drives. Therefore, it's not of much use as it is for mechanic hard drives (for shrinking).

Is there a Windows tool that can "conceptually" move the sectors to the beginning of a SSD to help shrinking?

Ideally, I am looking for something from Windows or Microsoft.

Note: I looked around in Superuser, and related posts e.g. How to shrink Windows 7 boot partition with unmovable files are all about moving unmovable files for mechanical HD. They do not seem to address the issue of SSDs.

tinlyx

Posted 2016-05-12T02:19:27.320

Reputation: 1 126

1Outside of removing the files outside of Windows? You can defrag a SSD, you might have to find a tool that will allow, but that's the best way. A single defrag won't reduce the lifespan of the SSD. – Ramhound – 2016-05-12T02:28:48.823

Answers

8

Shrinking drives under Windows can be a pain in the rectum. You need to remove any ummovable files, then defragment it, then you can shrink it.

To remove files -

  • Disable system Restore (Right click on Computer -> Properties -> System Protection -> System Restore)
  • Disable Virtual Memory/Paging File (Right click on Computer -> Properties -> Advanced System Settings -> Performance (Settings) => Advanced Tab -> Virtual Memory (Change) -> remove paging file

Defrag the drive (Auslogics Disk Defrag is free and can do this)

davidgo

Posted 2016-05-12T02:19:27.320

Reputation: 49 152

3Don't forget disabling Hibernation, powercfg -h off – Moab – 2016-05-12T20:53:59.963

1Also don't forget to perform disk-cleanup (recycle-bin, temporary internet files, installer caches, etc) – F.I.V – 2017-08-14T13:11:22.290

1And after all that, it might not work, because Windows 10 might have placed many folders and files at the very end of the partition, which defragging couldn't care less about and will not relocate. This holds true for the builtin disk cleanup utility and other defrag utilities. Using defrag on an SSD may even degrade SSD performance, as SSD placements are purely logical and the drive controller makes some placement optimizations that the OS does not know about. This is from experience with a fresh Windows 10 install. – matt – 2017-12-20T17:23:51.517

I cannot help feeling that it might just be quicker and easier to put GParted (https://gparted.org/) onto a spare USB stick, boot from that and use it to shrink the partition. You don't need to faff around with any of the stuff in this answer or the additional comments.

– Richard – 2018-07-16T10:31:54.753

@richard I do t tho k you are correct. I'm pretty sure gparted does not defrag disk or shrink paging files. – davidgo – 2018-07-16T19:55:23.457

1@davidgo gparted will only move the files needed so that it can shrink the disk. However you’re right in that gparted cannot resize the paging file - but this will only be an issue if you’re trying to shrink the partition to be smaller than the currently used space. – Richard – 2018-07-17T17:57:54.797

0

You can try AOMEI partition assistant.

It should handle all of the file moving stuff for you. (It doesn't defrag, just moves the fragments).

I have used it once and it worked for me.

Jaroslav

Posted 2016-05-12T02:19:27.320

Reputation: 1

That was a pretty good first attempt at a software recommendation. I would recommend reading How do I recommend software in my answers? for a fuller understand of the guidelines.

– robinCTS – 2018-07-16T10:24:22.603

It's what I've been using in the past years, so good recommendation. – iBug – 2018-07-16T12:42:05.467

0

When I try to shrink the partition(Windows 10 and have only one partition--C drive which I need to shrink for install Linux) with Diskpart(console command tool), it didn't work and Disk management tool didn't work either. (guide from Shrink a basic volume | Microsoft Docs)

I think reason is SSD won't work with defragment optimise tool--I did use the tool before the shrink.

So I thought about doing SSD defragmentation but what I remember is that SSD won't need defragmentation like hard-disk drive so don't have much software to do this. And I only need shrink the partition.

So I decided to use free partition software.

First, I tried with MiniTool Partition Wizard Free but I can only find split function, not the shrink.

Next, I tried with AOMEI partition assistant. But in my case, program can't recognize my primary partition.

So I thought about to use the GParted but too big file(more than 300MB) to download so I didn't try.

And I tried with EaseUS Partition Master Free Edition and it worked--after shrink, I did reboot the machine and then it moved the fragments for shrink.

You should try number of partition software which will work for your system. You might try other partition software like Paragon Partition Manager Free, Macrorit Partition Expert, Active@ Partition Manager.

thinklogically

Posted 2016-05-12T02:19:27.320

Reputation: 1