Raw and Cooked Partitions

Raw / cooked 的差別不是有沒有資料,而是資料是否由 general-purpose file system metadata 管理。

Raw partition

Raw partition 沒有一般 file system,使用它的 subsystem 自己定義 on-disk format。常見用途:swap space、某些 database storage、RAID metadata。它給 subsystem 最大控制權,但一般 path namespace、backup、fsck、permission tools 不一定能理解。

Cooked partition

Cooked partition 已 format 成 file system,有 superblock、free-space data、inode table 或等價 metadata。OS 可驗證、mount,之後 users / applications 透過 path、directories、permissions、file operations 存取。

Tradeoff

Raw 換取 control / possible performance,犧牲 OS integration 與管理便利;cooked 換取通用 namespace 與工具支援,但必須接受 file-system overhead 和 policy。