i have 2 partition on cenos 6.4 in SOFT RAID 1.
my current mounted partitions(df -h):
Filesystem Size Used Avail Use% Mountedon
/dev/md1 20G 5.4G 14G 29% /
/dev/md2 897G 680M 851G 1% /home
How to mount /backup
in /dev/md2
? or
How to create new mount point for /backup
?
Another solution is to make a Bind mount, which will "link" the two directories together.
Extract from mount
man page :
Since Linux 2.4.0 it is possible to remount part of the file hierarchy
somewhere else. The call is
mount --bind olddir newdir
After this call the same contents is accessible in two places.
So do something like :
mount --bind /home/backup/ /backup/
All you have to do next is to make this permanent by adding the corresponding line to /etc/fstab
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments