Date: Sat, 1 Dec 2018 03:32:17 +0700 From: Eugene Grosbein <eugen@grosbein.net> To: Masachika ISHIZUKA <ish@amail.plala.or.jp>, hackers@freebsd.org Subject: Re: How to use trim command ? Message-ID: <7e69211c-6ffb-6155-b17a-a845c0b3586d@grosbein.net> In-Reply-To: <20181201.011411.2100982142219259108.ish@amail.plala.or.jp> References: <20181201.011411.2100982142219259108.ish@amail.plala.or.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
30.11.2018 23:14, Masachika ISHIZUKA wrote: > 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 ? It seems this partition is in use (mounted?) and GEOM won't allow to write to opened partition, you need to close it first (unmount). Be warned: trim will destroy all data in the partition.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7e69211c-6ffb-6155-b17a-a845c0b3586d>