Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
What's backup? Is it another partition? Partitions are mounted at directories, not the other way around. Please edit your question to clarify what you are trying to do. Are you trying to create a new partition in /dev/md2 and mount that as backup? – terdon Oct 7 '13 at 15:02
What you could also do is backup /home's content, remove/shrink the partition and create new ones as needed. – mveroone Oct 7 '13 at 15:24
up vote 1 down vote accepted

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

share|improve this answer
i'll take syn backup /home to /backup. any problem? – nkteam Oct 7 '13 at 15:28
Then you'll have /home subdirectories in /backup also =) – mveroone Oct 8 '13 at 7:17

You may just want a symlink:

  1. Make a directory /home/backup
  2. Make a symlink from /backup to /home/backup, i.e. ln -s /home/backup/ /backup

Now you can move files to/from /backup and they will get stored on /dev/md2

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .