No description
- Shell 100%
| pmount.sh | ||
| README.md | ||
pmount
Mount portable luks drives
A script that mounts or unmounts the two encrypted portable drives (LUKS). It opens the container by UUID, uses a root‑only password file, creates /mnt/portableX, and mounts the decrypted device.
Prerequisites
- Linux with
bash,sudo,cryptsetup,mount. - Password files (
/etc/pmount/portable1.key,/etc/pmount/portable2.key) owned by root, mode600, inside/etc/pmount(owned by root, mode700).
Installation
git clone https://github.com/your-user/portable-luks-mount.git
cd portable-luks-mount
chmod +x portable-mount.sh # make executable
Usage
| Command | Action |
|---|---|
| sudo ./pmount.sh --portable1 | Mount first portable disk at /mnt/portable1 |
| sudo ./pmount.sh --portable2 | Mount second portable disk at /mnt/portable2 |
| sudo ./pmount.sh --portable1 --unmount | Unmount and lock first disk |
| sudo ./pmount.sh --portable2 --unmount | Unmount and lock second disk |