Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
Hard drive on server which hosts public_html folder is full. What to do?

i have a hard drive (1TB) which has a folder named "flvideo2" i need to mount into /home/ivan/public_html/flvideo2/ because my home folder is almost full. my home folder is on different hard-drive (2tb,full)...

Is this possible, and how can i do it?

The server is running on 64 bit centos6/apache2/php5.

share|improve this question

marked as duplicate by Michael Hampton, Magellan, Scott Pack, John Gardeniers, Iain Oct 17 '12 at 19:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

mount --bind /some/folder/where/original/is /home/user/videos

man mount

 -B, --bind
     Remount a subtree somewhere else (so that its contents are available 
     in both places). See above.
share|improve this answer
    
Keep in mind that this is NOT a copy of the folder and if you rm the folder instead of unmounting it, the folder will be gone from the harddrive. –  DerfK Oct 13 '12 at 14:59
    
Thanks! will this last even after server reboot? –  Бай Иван Oct 13 '12 at 20:11
    
no. but you can put it in /etc/fstab like this: /mnt/media/media /media none bind 0 0 –  Ярослав Рахматуллин Oct 13 '12 at 20:20
    
why none? should it not be ext3? –  Бай Иван Oct 13 '12 at 20:57
    
you are making a "virtual copy" from one folder to another folder. ext3 is involved when you take a /dev/block-device (sda1,hde4,etc) to a folder. --bind does not mount anything, it only makes some folder visible in another place. –  Ярослав Рахматуллин Oct 13 '12 at 21:01

Not the answer you're looking for? Browse other questions tagged or ask your own question.