网络寻租

Programmer, Gamer, Hacker

How to Mount Disk to Linux Operation System

| Comments

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.

Comments