fstab¶
The configuration file “/etc/fstab” contains the necessary information to automate the process of mounting partitions.
Mount partitions¶
Add following line to the end of fstab file.
<partition> <mount_point> auto auto,user,rw 0 0
Following are two examples:
/dev/sdc1 /data/.data1 auto auto,user,rw 0 0
/dev/sdd1 /data/.data2 auto auto,user,rw 0 0
Join partitions¶
mhddfs: tool for joining several filesystems together to form a single larger one.
Install mhddfs
$ sudo apt-get install mhddfs
Create folder for merging
mkdir /data/main
Add the following line to the end of fstab
mhddfs#/data/.data1,/data/.data2 /data/main fuse defaults,allow_other 0 0