Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mmiscool/debianusbflashswapsetup
Script to automatically set up a USB flash drive as swap on debian with failback
https://github.com/mmiscool/debianusbflashswapsetup
Last synced: 24 days ago
JSON representation
Script to automatically set up a USB flash drive as swap on debian with failback
- Host: GitHub
- URL: https://github.com/mmiscool/debianusbflashswapsetup
- Owner: mmiscool
- License: mit
- Created: 2024-04-16T06:37:16.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-04-16T06:41:13.000Z (10 months ago)
- Last Synced: 2025-01-19T11:46:57.650Z (about 1 month ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# debianUSBflashSwapSetup
Script to automatically set up a USB flash drive as swap on debian with failbackHow to use this script:
* Run the script as root: Execute it with sudo ./autoUSBswapSetup.sh
* Follow the prompts: Unplug your USB drive, plug it back in, and let the script handle the rest.
* This script captures the UUID of your USB drive by comparing the state of block devices before and after you plug the drive in. It then creates a udev rule and a management script to handle the swap dynamically based on the drive's presence. Ensure the device path /dev/disk/by-uuid/$ID_FS_UUID in the script matches your system's configuration; this is a universal approach that should work across different Linux systems.