Which directory in /dev/disk/ can be used to determine the UUID of a connected hard disk?
Answer: by-uuid 或 /dev/disk/by-uuid 或 /dev/disk/by-uuid/
題解
「/dev/disk」中有以下幾個目錄:
- by-id:由硬碟的 WWID 來分類裝置。
- by-partuuid:由分割區的 PARTUUID 來分類裝置。PARTUUID 存在於硬碟的分割表。
- by-path:由硬碟的硬體連接路徑來分類裝置。格式為「Host:Bus:Target:LUN」。
- by-uuid:由分割區的 UUID 來分類裝置。UUID 存在於分割區的檔案系統內。
