固态硬盘在挂载时,由于其存储机制与机械硬盘存在差异,因此需要额外指定一些mount
参数,以减少对固态盘无谓的损耗。以下参数来源于网络。
文件系统 | 挂载参数 |
---|---|
ext3 | defaults,discard,async,noatime,nodiratime |
ext4 | defaults,discard,async,noatime,nodiratime,data=writeback,barrier=0 |
xfs | defaults,async,noatime,nodiratime,barrier=0 |
reiser4 | defaults,async,noatime,nodiratime |
reiserfs | defaults,async,noatime,nodiratime,notail,data=writeback |
jfs | defaults,async,noatime,nodiratime |
btrfs | defaults,async,noatime,nodiratime,ssd |
nilfs2 | defaults,async,noatime,nodiratime |
logfs | defaults,async,noatime,nodiratime,data=writeback,barrier=0 |