mount / unmount encrypted partitions.
Go to file
Yiyang Kang 7e5ba94235
fix: lint issues
2022-10-07 02:09:37 +08:00
blk fix: lint issues 2022-10-07 02:09:37 +08:00
cfg feat: xmnt 2022-10-07 01:19:04 +08:00
mnt feat: xmnt 2022-10-07 01:19:04 +08:00
msg feat: xmnt 2022-10-07 01:19:04 +08:00
util fix: lint issues 2022-10-07 02:09:37 +08:00
zfs fix: lint issues 2022-10-07 02:09:37 +08:00
.gitignore feat: xmnt 2022-10-07 01:19:04 +08:00
Makefile feat: xmnt 2022-10-07 01:19:04 +08:00
README.md docs: minor changes 2022-10-07 01:41:56 +08:00
go.mod feat: xmnt 2022-10-07 01:19:04 +08:00
go.sum feat: xmnt 2022-10-07 01:19:04 +08:00
main.go fix: lint issues 2022-10-07 02:09:37 +08:00
mounters.go feat: xmnt 2022-10-07 01:19:04 +08:00

README.md

xMnt

A tool for mounting encrypted partitions.

Use case

I have encrypted partitions that I need to mount them from time to time.

I use GPG to encrypt the decryption keys for each partition, save them as ${uuid}.key

With this tool, I can mount and unmount them with one command.

Usage

Presets are stored in $XDG_CONFIG_HOME/xmnt/presets.

For example, save the following content as boot.yml in the presets directory:

type: blk
path: /dev/nvme0n1p2
mountpoint: /boot

Then when you run xmnt boot, the tool will decrypt /dev/nvme0n1p2 and mount it on /boot.

You can also use it without defining presets. See --help for detailed usage.

Supported partition types

  • luks encrypted partitions (e.g. ext4)
  • regular unencrypted partitions
  • zfs datasets