FSLogix / Invoke-FslShrinkDisk

This script will shrink a FSLogix Disk to its minimum possible size
MIT License
155 stars 55 forks source link

Feature request chkdsk #25

Closed mkools closed 4 years ago

mkools commented 4 years ago

Hi,

I've noticed that sometimes a profile disk is e.g. 15 GB in size. Windows reports only 2.5 GB is used and for some reason the shrink script can't do anything with it. I did a manual mount of the VHDX and tried to shrink it with windows but then it reported and error and said I should run chkdsk on the VHDX. I did and it found and fixed some errors, after that I was able to shrink it to a 4 GB file.

So long story short, my question is if there could be a checkdisk option added to the script, which mounts it, runs chkdsk /f and only then does the resizing?

JimMoyle commented 4 years ago

This feature is a good idea and is already implemented in the development branch.

On Sun, 11 Oct 2020 at 10:35, mkools notifications@github.com wrote:

Hi,

I've noticed that sometimes a profile disk is e.g. 15 GB in size. Windows reports only 2.5 GB is used and for some reason the shrink script can't do anything with it. I did a manual mount of the VHDX and tried to shrink it with windows but then it reported and error and said I should run chkdsk on the VHDX. I did and it found and fixed some errors, after that I was able to shrink it to a 4 GB file.

So long story short, my question is if there could be a checkdisk option added to the script, which mounts it, runs chkdsk /f and only then does the resizing?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FSLogix/Invoke-FslShrinkDisk/issues/25, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE365O7C56JDCBCEL7KALHLSKF34LANCNFSM4SLU365Q .

chrismoore-28 commented 3 years ago

Hi Jim,

did the chkdsk feature get added in? I checked over the Dev branch but nothing was present for it.

Tiger-Nuts commented 1 year ago

I would love to have this feature too. Is there a reason why it didn't get in?

zimbo86 commented 11 months ago

same issue here. Many large profiles with whitespace. Noticed today, that they can´t be shrinked, because GetSupportedSize wont run. After a chkdsk repair everything works and the disk is successfully shrinked.

AlexCloudiction commented 5 months ago

Hi, We still experience issues with the chkdsk issue. Is there a solution for this? we have a lot of corrupted disk. Or is there any other solution then doing it manual mounting the vhdx file(s)