| Crates.io | luksctl |
| lib.rs | luksctl |
| version | 0.1.0 |
| created_at | 2025-12-31 14:08:01.884039+00 |
| updated_at | 2025-12-31 14:08:01.884039+00 |
| description | A CLI tool for mounting and unmounting LUKS encrypted volumes |
| homepage | https://github.com/zeroday0619/luksctl |
| repository | https://github.com/zeroday0619/luksctl |
| max_upload_size | |
| id | 2014787 |
| size | 99,819 |
A CLI tool for easily mounting and unmounting LUKS encrypted volumes.
--mkdir option--ro, --fs-type, --options)# Build and install to /usr/local/bin
make
sudo make install
# Or install to a custom location
sudo make PREFIX=/opt/luksctl install
# Uninstall
sudo make uninstall
cargo build --release
sudo cp target/release/luks_mount /usr/local/bin/
sudo cp target/release/luks_umount /usr/local/bin/
# Basic usage
sudo luks_mount /dev/sda1 /mnt/encrypted
# Auto-create mount point if it doesn't exist
sudo luks_mount --mkdir /dev/Video/nvme_video /mnt/nvme_video
# Mount as read-only
sudo luks_mount --ro /dev/sda1 /mnt/encrypted
# Specify filesystem type
sudo luks_mount --fs-type ext4 /dev/sda1 /mnt/encrypted
# Specify additional mount options
sudo luks_mount --options "noatime,nodiratime" /dev/sda1 /mnt/encrypted
# Combine all options
sudo luks_mount --mkdir --ro --fs-type ext4 --options "noatime" /dev/sda1 /mnt/encrypted
# Basic unmount (automatically locks LUKS)
sudo luks_umount /mnt/encrypted
# Force unmount (lazy unmount)
sudo luks_umount --force /mnt/encrypted
| Option | Short | Description |
|---|---|---|
--mkdir |
Create mount point directory if it doesn't exist | |
--ro |
-r |
Mount as read-only |
--fs-type |
-t |
Specify filesystem type (e.g., ext4, xfs, btrfs) |
--options |
-o |
Additional mount options (comma-separated) |
| Option | Short | Description |
|---|---|---|
--force |
-f |
Force unmount (lazy unmount) |
The tool automatically detects your system locale from the LANG environment variable and displays messages in the appropriate language.
Supported languages:
Example:
# Use Korean
LANG=ko_KR.UTF-8 sudo luks_mount /dev/sda1 /mnt/encrypted
# Use Japanese
LANG=ja_JP.UTF-8 sudo luks_umount /mnt/encrypted
On mount (luks_mount):
luks-a1b2c3d4-...)cryptsetup open/dev/mapper/{mapper_name} to the specified mount point/run/luksctl/On unmount (luks_umount):
/proc/mountscryptsetup closeParts of this project were created with assistance from AI tools (e.g. large language models). All AI-assisted contributions were reviewed and adapted by maintainers before inclusion. If you need provenance for specific changes, please refer to the Git history and commit messages.