Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reimunotmoe/trim2unmap
A workaround to let SSD TRIM work on some SAS RAID cards.
https://github.com/reimunotmoe/trim2unmap
Last synced: 4 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 (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-03T18:28:25.000Z (almost 6 years ago)
- Last Synced: 2024-10-26T21:34:19.495Z (18 days ago)
- Language: C
- Homepage:
- Size: 19.5 KB
- Stars: 8
- Watchers: 5
- 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
![](https://raw.githubusercontent.com/ReimuNotMoe/ReimuNotMoe.github.io/master/images/trim2unmap/Screenshot_20190204_022446.png)### mkfs.btrfs
![](https://raw.githubusercontent.com/ReimuNotMoe/ReimuNotMoe.github.io/master/images/trim2unmap/Screenshot_20190203_203012.png)![](https://raw.githubusercontent.com/ReimuNotMoe/ReimuNotMoe.github.io/master/images/trim2unmap/Screenshot_20190203_203317.png)
![](https://raw.githubusercontent.com/ReimuNotMoe/ReimuNotMoe.github.io/master/images/trim2unmap/Screenshot_20190203_203351.png)