Date: Sat, 01 Dec 2018 01:14:11 +0900 (JST) From: Masachika ISHIZUKA <ish@amail.plala.or.jp> To: hackers@freebsd.org Subject: How to use trim command ? Message-ID: <20181201.011411.2100982142219259108.ish@amail.plala.or.jp>
next in thread | raw e-mail | index | archive | help
Hi. I'm using FreeBSD 13.0-CURRENT r341327. I want to use trim command. # trim /dev/gpt/fbroot-current trim `/dev/gpt/fbroot-current' offset 0 length 60568829952 dry run: add -f to actually perform the operation # trim -f /dev/gpt/fbroot-current trim `/dev/gpt/fbroot-current' offset 0 length 60568829952 trim: `/dev/gpt/fbroot-current': Operation not permitted carrot# echo $status 66 How can I use /usr/sbin/trim command ? P.S. My SSDs are as follows. (1) LITEONIT LMT-256M6M mSATA % dmesg | grep -i ada0 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: <LITEONIT LMT-256M6M mSATA 256GB DM8110F> ATA8-ACS SATA 3.x device ada0: Serial Number TW0XXM305508536E0419 ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 244198MB (500118192 512 byte sectors) (2) Sandisk X600 SATA % dmesg | grep -i ada0 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: <SanDisk SD9SB8W512G1122 X6104000> ACS-4 ATA SATA 3.x device ada0: Serial Number 180678800796 ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes) ada0: Command Queueing enabled ada0: 488386MB (1000215216 512 byte sectors) -- Masachika ISHIZUKA
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20181201.011411.2100982142219259108.ish>