https://github.com/reimunotmoe/trim2unmap
A workaround to let SSD TRIM work on some SAS RAID cards.
https://github.com/reimunotmoe/trim2unmap
Last synced: 10 days ago
JSON representation
A workaround to let SSD TRIM work on some SAS RAID cards.
- Host: GitHub
- URL: https://github.com/reimunotmoe/trim2unmap
- Owner: ReimuNotMoe
- License: gpl-3.0
- Created: 2019-02-03T10:25:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-03T18:28:25.000Z (over 6 years ago)
- Last Synced: 2025-04-21T19:44:43.059Z (3 months ago)
- Language: C
- Homepage:
- Size: 19.5 KB
- Stars: 8
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# trim2unmap
A workaround to let SSD TRIM work on some SAS RAID cards.## Warning
No warranty provided, use this at your own risk## Build
### Dependencies
- [BUSE](https://github.com/ReimuNotMoe/BUSE)### Compile
Nearly all my projects use CMake. It's very simple:mkdir build
cd build
cmake ..
make -j `nproc`## How to use
Load the `nbd` kernel module first.
```
modprobe nbd
```Syntax:
```
trim2unmap
```e.g.
```
trim2unmap /dev/sdd /dev/nbd10
```Then you can mount your virtual device like mounting the physical device as usual
```
mount /dev/nbd10 /mnt
```## Screenshots
### In Production
### mkfs.btrfs

