You are not logged in.

#1 2012-09-16 09:58:22

woodok
Member
Registered: 2012-08-18
Posts: 2

[SOLVED] Does the mount flag "discard" take effect

When I type:

cat /sys/class/block/sdb/discard_alignment

it returns:

0

So, does this mean the mount flag "discard" doesn't take effect on my system?

Thanks for any help.

Last edited by woodok (2012-09-20 14:46:02)

Offline

#2 2012-09-16 13:59:10

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [SOLVED] Does the mount flag "discard" take effect

I have the same value on my machine using an ssd. However i am sure trim is enabled, because the kernel tells it to me in the logs.
kernel: EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: discard
Just search for 'discard' in your logs. I also tested the method described on askubuntu and it worked.

Last edited by teateawhy (2012-09-16 14:02:49)

Offline

#3 2012-09-20 14:45:22

woodok
Member
Registered: 2012-08-18
Posts: 2

Re: [SOLVED] Does the mount flag "discard" take effect

I have taken the test, and got the result just as you said.
Thank you!

Offline

Board footer

Powered by FluxBB