You are not logged in.

#1 2025-01-18 00:47:44

sukolyn
Member
Registered: 2024-02-14
Posts: 139

[solved] cleaning things I can't handle on disk

hi,

I updated my Debian system when I saw fstrim appear, so I asked what it is.

it is supposed to (more or less) clean partitions (I guess a bit like suppressing bits of lost files..)

anyway, it  fails on the machine.
I tried it like that :

# fstrim /home
fstrim: /home: the discard operation is not supported
mount | grep home
/dev/sdb1 on /home type ext4 (rw,relatime)
sda 74,5G WDC WD800JD-75MSA3
sdb 931,5G ST1000LM024 HN-M101MBB

too old SSD ?

Last edited by sukolyn (2025-01-18 20:30:47)

Offline

#2 2025-01-18 01:15:01

mytArch
Member
Registered: 2024-11-16
Posts: 18

Re: [solved] cleaning things I can't handle on disk

On a mounted file system you could try:
sudo fstrim --all
Note from the manual entry:
       Running fstrim frequently, or even using mount -o discard, might
       negatively affect the lifetime of poor-quality SSD devices. For
       most desktop and server systems a sufficient trimming frequency
       is once a week. Note that not all devices support a queued trim,
       so each trim command incurs a performance penalty on whatever
       else might be trying to use the disk at the time.

Offline

#3 2025-01-18 01:20:55

mpan
Member
Registered: 2012-08-01
Posts: 1,367
Website

Re: [solved] cleaning things I can't handle on disk

Which SSD? “/dev/sdb” is a hard disk, not an SSD.

Hard disks don’t offer the TRIM command. They wouldn’t benefit from it.

The job of TRIM command is also not cleaning anything. It marks unused flash blocks as such, so the controller could do better work managing them.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#4 2025-01-18 02:57:22

sukolyn
Member
Registered: 2024-02-14
Posts: 139

Re: [solved] cleaning things I can't handle on disk

oops
lshw -C disk shows nothing

how to tell a disk is hhd or ssd (without opening the box) ?

Offline

#5 2025-01-18 05:24:00

mpan
Member
Registered: 2012-08-01
Posts: 1,367
Website

Re: [solved] cleaning things I can't handle on disk

Model name.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#6 2025-01-18 14:39:46

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,245

Re: [solved] cleaning things I can't handle on disk

The output of fdisk -l (run as root) would also help.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB