mount.md 956 B

Mounting devices

Mounting regular partitions

Spot your device

sudo fdisk -l

or to list only partitions of one particular disk

sudo fdisk -l /dev/sdb

Mount partition

Like ext4, to an existing directory :

sudo mount /dev/sdb3 iss_share

Mount encrypted partition

Check if encrypted

sudo cryptsetup isLuks -v /dev/sdb2

Decypher

sudo cryptsetup open /dev/sdb2 iss_cyph_bridge

Check status

sudo cryptsetup status iss_cyph_bridge

Mount partiton

Mount the partiton binded in /dev/mapper as a regular partition.

sudo mount /dev/mapper/iss_cyph_bridge iss_cyph

Unmount

Regular partition

sudo umount /media/jovian/iss_share

Encrypted partition

sudo umount iss_cyph
sudo cryptsetup close iss_cyph_bridge

Power off external drive

Useful for safe removal.

sudo udisksctl power-off -b /dev/sdb