Show Table of Contents
C.4.7. 新增一個項目至 /etc/fstab
新增一個項目至
/etc/fstab。這只有在您希望在裝置與掛載點之間,建置一項一致性關聯的情況下才需要這麼作。請在 /etc/fstab 檔案中使用已解密的裝置 /dev/mapper/<name>。
在許多情況下,您可能會希望以 UUID 或是檔案系統標籤來列出
/etc/fstab 中的裝置。這麼做的主要原因就是要在裝置名稱(例如 /dev/sda4)改變的情況下,提供一致的標識符號。格式為 /dev/mapper/luks-<luks_uuid> 的 LUKS 裝置名稱只會基於裝置的 LUKS UUID,因此將保證一致性不會受到變更。因為此原因,它們適合使用於 /etc/fstab 中。
注意
欲取得
/etc/fstab 檔案格式上的詳情,請參閱 fstab(5) man page。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.