跳到正文
网络寻租
返回

how to mount disk to linux operation system

image

I’ve bought a NAS as home server recently, so I’ve considered how to mount disk on it by using linux operating system.

I’ve got SSD and HDD, SSD is faster, but is more expensive, and write time limit. So SSD should mount at /, OS will run faster. Writing frequently location like /home, /var should mount on HDD, Temporary location /tmp should mount to file system tmpfs.

About choosing file system. SSD can use ext4 with some adjustment to reduce write, HDD can use ext4 for ordinary use, if used for file sharing and service, ZFS is a good fit: Compressed storage, higher ID throughput.

If you want setup NAS disk array, RAID0 is the simplest solution, multiple disks handle IO in the same time. If you have to store some important data, use RAID2: dual disk write the same data. But RAID1 spend too much disk space, software RAID5 can balance it well enough. If you know nothing about RAID, you can watch this demo.


分享这篇文章:

上一篇
linux分区策略
下一篇
喜新厌旧

评论

评论通过 GitHub 账号发布,需要先使用 GitHub 登录。