Browse Source

Create guide for partition mounting

Including cyphered partitions with LUKS.
DricomDragon 4 years ago
parent
commit
ad7ce5b427
1 changed files with 66 additions and 0 deletions
  1. 66 0
      Guides/mount.md

+ 66 - 0
Guides/mount.md

@@ -0,0 +1,66 @@
+# Mounting devices
+
+## Mounting regular partitions
+
+### Spot your device
+
+```sh
+sudo fdisk -l
+```
+
+or to list only partitions of one particular disk
+
+```sh
+sudo fdisk -l /dev/sdb
+```
+
+### Mount partition
+
+Like _ext4_, to an existing directory :
+
+```sh
+sudo mount /dev/sdb3 iss_share
+```
+
+## Mount encrypted partition
+
+### Check if encrypted
+
+```sh
+sudo cryptsetup isLuks -v /dev/sdb2
+```
+
+### Decypher
+
+```sh
+sudo cryptsetup open /dev/sdb2 iss_cyph_bridge
+```
+
+### Check status
+
+```sh
+sudo cryptsetup status iss_cyph_bridge
+```
+
+### Mount partiton
+
+Mount the partiton binded in _/dev/mapper_ as a regular partition.
+
+```sh
+sudo mount /dev/mapper/iss_cyph_bridge iss_cyph
+```
+
+## Unmount
+
+### Regular partition
+
+```sh
+sudo umount /media/jovian/iss_share
+```
+
+### Encrypted partition
+
+```sh
+sudo umount iss_cyph
+sudo cryptsetup close iss_cyph_bridge
+```