this post was submitted on 14 Jan 2024
35 points (94.9% liked)

PC Master Race

14975 readers
142 users here now

A community for PC Master Race.

Rules:

  1. No bigotry: Including racism, sexism, homophobia, transphobia, or xenophobia. Code of Conduct.
  2. Be respectful. Everyone should feel welcome here.
  3. No NSFW content.
  4. No Ads / Spamming.
  5. Be thoughtful and helpful: even with ‘stupid’ questions. The world won’t be made better or worse by snarky comments schooling naive newcomers on Lemmy.

Notes:

founded 1 year ago
MODERATORS
 

There seems to be plenty of free space on the SSD but there are unmovable files. So I deleted pagefiles etc, which increased available shrink space from 34000ish MB to 79000ish MB before it somehow decreased back to 58459 MB. GParted Live on USB (with laptop safe boot option disabled) did not work, so I am wondering if there's a way to locate and delete the unmovable $DATA file in question. Besides, can y'all recommend some decent software that address this issue please? Thanks in advance :D

top 17 comments
sorted by: hot top controversial new old
[–] Hawke@lemmy.world 5 points 10 months ago (1 children)

You should be able to remove that file (and recreate it later). More info here: https://superuser.com/questions/819901/dangers-of-deleting-c-extend-usnjrnljdata#819976

I’ve run into this before, it’s mainly that windows is bad at identifying “unmovable” files. Just delete it as described in that link, try the shrink again, and recreate after.

Usual caveats apply: no guarantees, make sure there’s backups or no critical info on the system, if this messes up your system it’s on you, etc.

[–] showthemsnowpity@lemmy.world 4 points 10 months ago* (last edited 10 months ago) (1 children)

Tysm! It works and rn i have 77.5 ish G free shrink space! I'll try to see if $Mft::$DATA can be removed without messing up

[–] Hawke@lemmy.world 3 points 10 months ago

That one can’t be removed but it looks like you can manually defragment specific files with the “contig” utility as described here: https://notes.ponderworthy.com/defragment-the-ntfs-mft-and-other-hidden-crucials-in-live-windows

Hopefully that will get you further!

[–] Lojcs@lemm.ee 5 points 10 months ago (2 children)

Try aomei partition manager. Solved all my partition related issues on windows

[–] showthemsnowpity@lemmy.world 3 points 10 months ago

yup can confirm aomei partition assistant (free version) works smoothly on my machine

[–] showthemsnowpity@lemmy.world 2 points 10 months ago

Thanks! I'll give it a try

[–] showthemsnowpity@lemmy.world 2 points 10 months ago (1 children)

additional info This is what happens when Gparted live USB is selected during boot, any fix pls

[–] lemann@lemmy.dbzer0.com 1 points 10 months ago

Your BIOS just has some issues, that's completely normal. Windows keeps this stuff silent, but Linux typically tells you

[–] HarryS@feddit.uk 1 points 9 months ago* (last edited 9 months ago)

GParted and most Linux distros wont touch a hibernated Windows NTFS disk. Unfortunately by default Windows saves its kernel in hibernation files on shutdown to shave a few seconds off boot, this anti-fearure is called Fast Startup/Boot. When Windows hibernates it make gparted and other partitioning tools default to read only mode when mounting NTFS partition.

I believe you can run ntfsfix /dev/sda2 (replacing sda2 with the drive name, see fdisk -l for names of drives) to resolve this from a terminal in gparted and other OSes.

You can also try to disable Fast Startup.

For partitioning, EaseUS has a great partitioning tool (Windows only) that works well with Windows partitions, it fails with anything more advanced than Ext2.

[–] ArbiterXero@lemmy.world 1 points 10 months ago (1 children)

Sometimes partition-magic can get you more space, but you’re running a high risk of breaking things.

You’re also trying to shrink windows down to less than a 500gb partition and I wouldn’t recommend that.

Get a second 500gb ssd and boot your second os from there?

[–] MentalEdge@sopuli.xyz 5 points 10 months ago (1 children)

Meanwhile I'm keeping windows on a 40gb partition

[–] ArbiterXero@lemmy.world 1 points 10 months ago (1 children)

Oh it’s doable, but shrinking down to that size and moving “unmovable boot blocks” is different, and 40g limits what you can do

[–] Hawke@lemmy.world 2 points 10 months ago (1 children)

40 GB is pretty rough and personally I’d say about 120 GB is the lowest if you want some wiggle room without needing to frequently tinker with finding free space. But 500 GB is way more than necessary at least for now.

[–] ArbiterXero@lemmy.world 2 points 10 months ago (1 children)

Depends on what you use it for.

The second you install outlook, that’s probably 80gb of pst lol.

120 is good for a low usage machine

[–] Hawke@lemmy.world 2 points 10 months ago (1 children)

The second you install outlook

Well there’s the problem right there! :-D

[–] ArbiterXero@lemmy.world 2 points 10 months ago

Agreed 😝

[–] lemann@lemmy.dbzer0.com -3 points 10 months ago

Defragging is the fix for this, but that's not available on SSDs.

You'd need a dedicated partition management program to work around this issue. There is one major caveat - this could negatively affect the life of the SSD due to something called write amplification.

Personally I would suggest using another disk if you have one available...