No description
Find a file
2026-11-12 08:29:26 +00:00
pmount.sh keyfile moved 2026-11-12 08:29:26 +00:00
README.md keyfile moved 2026-11-12 08:29:26 +00:00

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, mode 600, inside /etc/pmount (owned by root, mode 700).

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