# mount /dev/sda1 /tmp/mnt/VERBATIM -o discard
# mount | grep sda1
/dev/sda1 on /tmp/mnt/VERBATIM type ext4 (rw,relatime,barrier=1,data=ordered,discard)
Well call me surprised, but it appears to work!
Code:# mount /dev/sda1 /tmp/mnt/VERBATIM -o discard # mount | grep sda1 /dev/sda1 on /tmp/mnt/VERBATIM type ext4 (rw,relatime,barrier=1,data=ordered,discard)
Whether it actually does anything is another question.
but router mount my usb flash disk automatically, how can i use the -o discard param?-o discard performs trim in realtime.
https://www.reddit.com/r/archlinux/comments/1jhed8/fstrim_necessary_with_discard/
I think you would have to compile your own version of the firmware that includes the fstrim command. Set the busybox CONFIG_FSTRIM compile option.do you know how to let merlin supporting "fstrim" command? i would like to use fstrim via cron job
I think you would have to compile your own version of the firmware that includes the fstrim command. Set the busybox CONFIG_FSTRIM compile option.
Alternatively you could install entware-ng and use blkdiscard instead but the filesystem must be unmounted to use it.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!