Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

fstrim with Buster

If none of the specific sub-forums seem right for your thread, ask here.
Message
Author
User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: fstrim with Buster

#21 Post by Head_on_a_Stick »

shep wrote:fstrim/emmc
Run

Code: Select all

lsblk --discard
and check the DISC-GRAN (discard granularity) and DISC-MAX (discard max bytes) columns — non-zero values indicate TRIM support.

Alternatively, install hdparm and use

Code: Select all

# hdparm -I /dev/sdX | grep TRIM
Replace X with the appropriate drive letter.

Sample outputs:

Code: Select all

empty@shinken:~ $ lsblk --discard
NAME   DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO
sda           0      512B       2G         0
├─sda1        0      512B       2G         0
├─sda2        0      512B       2G         0
└─sda3        0      512B       2G         0
empty@shinken:~ $ su -c '/sbin/hdparm -I /dev/sda | grep TRIM'                   
           *    Data Set Management TRIM supported (limit 1 block)
empty@shinken:~ $
As you can see, my drive supports TRIM :)
deadbang

shep
Posts: 423
Joined: 2011-03-15 15:22

Re: fstrim with Buster

#22 Post by shep »

My emmc does support trim and I implemented it. This reminds me of medicine: Here, take this pill. You will not feel any better but will benefit in the long run. Trust me.

Post Reply