25 lines
574 B
Bash
25 lines
574 B
Bash
#!/usr/bin/env bash
|
|
cat << EOF
|
|
* mountman list
|
|
List known partitions for humans:
|
|
* 8G [] (/dev/sda, disk)
|
|
* 8G [label] (/dev/sda1, crypto_LUKS)
|
|
* 0M [] (/dev/sda2, part)
|
|
...
|
|
|
|
* mountman plist
|
|
List known partitions, programmatically:
|
|
mm_path='/dev/sda1'; mm_label='label'; mm_size='8G'; mm_type='part'; mm_format='crypto_LUKS'; mm_parent='/dev/sda'; mm_mountpath=''
|
|
...
|
|
(note: escape ' in strings with ")
|
|
|
|
* mountman mount </path>
|
|
Mount a partition
|
|
|
|
* mountman umount </path>
|
|
Unmount a partition
|
|
|
|
* mountman eject </path>
|
|
Eject the device the partition belongs to"
|
|
EOF
|