Masachika ISHIZUKA
2018-11-30 16:14:11 UTC
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
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