SYS: Mount, unmount, and use LUKS-encrypted file systems.

Share this link

To mount a LUKS-encrypted file system by its mounting point in the /etc/fstab file (here /vol), type:

# mount /vol

To mount a LUKS-encrypted file system by its LUKS name (here vol), type:

# mount /dev/mapper/vol

To unmount a LUKS-encrypted file system by its mounting point in the /etc/fstab file (here /vol), type:

# umount /vol

To unmount a LUKS-encrypted file system by its LUKS name (here vol), type:

# umount /dev/mapper/vol

To remove a LUKS-encrypted file system, follow these steps.

Unmount the LUKS file system (here /vol):

# umount /vol

Close the LUKS logical volume:

# cryptsetup luksClose /dev/mapper/vol

Remove the logical volume:

# lvremove /dev/vg/lv_vol

Remove the file where the passphrase is stored (here /root/luks.key):

# rm /root/luks.key

Edit the /etc/crypttab and /etc/fstab files and remove the entries associated with the LUKS logical volume (here vol).

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Leave a Reply

Be the First to Comment!

Notify of
wpDiscuz

RHCSA7: Task of the day

Allowed time: 3 minutes.
Check that you've got no SELinux policy violations.

RHCE7: Task of the day

Allowed time: 15 minutes.
Configure a Samba server called MYSERVER, belonging to the MYGROUP group, sharing the /shared directory with the name "shared".

Poll for favorite RHEL 7 book

What is your favorite RHEL 7 book to prepare RHCSA & RHCE exams?

View Results

Loading ... Loading ...

Poll for most difficult RHCSA 7 topic

What do you think is the most difficult RHCSA 7 topic?

View Results

Loading ... Loading ...

Poll for most difficult RHCE 7 topic

What do you think is the most difficult RHCE 7 topic?

View Results

Loading ... Loading ...