📌 Pinned: Treat all vulnerable road users as if they were your closest family. Maintain a safe following distance from the vehicle in front (at least 2 seconds).

製作 Linux 加密 USB 隨身碟檔案系統

In

Tags:



by

以下將把一個 USB 隨身碟透過 dm-crypt 將整個分區給加密。

分割區設定

A. 透過 lsblk 找出 USB 隨身碟的 device name

這邊找出 mmcblk3 為隨身碟的 device name.

A. 使用預設的加密選項為 USB 設定 LUKS header。將 device 替換為剛剛的 device name。

mmcblk3 為例:

B. 將加密分區解鎖,透過 device mapper 映射到 virtual block device (/dev/mapper/<name>):

mmcblk3 映射到 cryptroot 為例:

C. 選擇想使用的檔案系統後 (這邊以 ext4 為例) ,將映射分區格式化:

裝載/卸載隨身碟

裝載

卸載

Keyfile


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.