https://github.com/freaky/trim
A tool to TRIM devices in FreeBSD
https://github.com/freaky/trim
Last synced: 4 days ago
JSON representation
A tool to TRIM devices in FreeBSD
- Host: GitHub
- URL: https://github.com/freaky/trim
- Owner: Freaky
- Created: 2015-07-15T01:40:50.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-15T01:44:59.000Z (almost 11 years ago)
- Last Synced: 2025-03-02T20:30:41.084Z (over 1 year ago)
- Language: C
- Size: 113 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# trim
TRIM a device in FreeBSD.
## Usage
trim [device]
## Example
-# hexdump -C /dev/ada3
00000000 ce 5e 98 86 b6 67 28 48 e2 66 86 ec e1 e5 6f 0a |.^...g(H.f....o.|
...
-# trim ada3
trim 256060514304 bytes from ada3? (yes/no) yes
-# hexdump -C /dev/ada3
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
## Notes
Use of this software may result in data loss. Hopefully.
It is *not* a tool for TRIMing free space in a filesystem like Linux's `fstrim`.
It is *not* a secure erase tool. For that use `camcontrol(1)`:
camcontrol security [device] -s erase -e erase