Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 2021 19:26:45 -0700
From:      David Christensen <dpchrist@holgerdanske.com>
To:        freebsd-questions@freebsd.org
Subject:   FreeBSD 12.2-RELEASE-p9 trim: open failed: /dev/ada0: Operation not permitted
Message-ID:  <dda0a570-53bc-7676-9f38-67bcd7a6f8bb@holgerdanske.com>

next in thread | raw e-mail | index | archive | help
freebsd-questions:

I have a computer with FreeBSD:

2021-08-29 19:14:07 toor@f1 ~
# freebsd-version ; uname -a
12.2-RELEASE-p9
FreeBSD f1.tracy.holgerdanske.com 12.2-RELEASE-p7 FreeBSD 
12.2-RELEASE-p7 GENERIC  amd64


The system disk is an SSD:

2021-08-29 19:18:53 toor@f1 ~
# camcontrol devlist | grep ada0
<INTEL SSDSC2CW060A3 400i>         at scbus0 target 0 lun 0 (ada0,pass0)


I would like to trim the SSD, but trim(8) is not happy:

2021-08-29 19:22:36 toor@f1 ~
# trim -f /dev/ada0
trim /dev/ada0 offset 0 length 60022480896
trim: open failed: /dev/ada0: Operation not permitted


Suggestions?


David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dda0a570-53bc-7676-9f38-67bcd7a6f8bb>