https://github.com/jcsalterego/ramdisk-utils
https://github.com/jcsalterego/ramdisk-utils
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/jcsalterego/ramdisk-utils
- Owner: jcsalterego
- License: other
- Created: 2021-12-07T19:20:33.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-07T19:22:18.000Z (over 4 years ago)
- Last Synced: 2025-01-17T16:37:31.360Z (over 1 year ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ramdisk Utils
## Example Usage
### Setup
```
$ ./setup.sh
Name is ramdisk
Creating ramdisk of 10240 sectors (512 bytes per sector)
Device created: /dev/disk2
Formatting ramdisk
Started erase on disk2
Unmounting disk
Erasing
Initialized /dev/rdisk2 as a 5 MB case-insensitive HFS Plus volume
Mounting disk
Finished erase on disk2 (ramdisk)
```
### Load Config
```
$ source ./config.sh
```
### Use Ramdisk
```
$ screencapture -o ${RAMDISK_PATH}/test.png
$ ls -al ${RAMDISK_PATH}/test.png
-rw-r--r--@ 1 jerry staff 1873707 Dec 7 13:16 /Volumes/ramdisk/test.png
```
### Cleanup
```
$ ./teardown.sh
Name is ramdisk
Destroying ramdisk /dev/disk2
"disk2" ejected.
```