How do I store my pics on another harddrive?
toxen
Joined: 2009-06-12
Posts: 4 |
![]() |
Hi, I have two drives in my server, 40GB with Arch linux and 500GB with all my pictures mounted as /storage . I want to have all my pictures in /storage and also build albums of the already existing directories in /storage. http://toxen.mine.nu/pics/ is what /storage looks like. |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
toxen
Joined: 2009-06-12
Posts: 4 |
![]() |
Yes, I'm admin of the box. If I mount sdb1 to /srv/http/gallery3/var , how do I get the dirs into albums in g3? |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
I'm not very experienced with using mount, but this is what I'm going to be following for my box: So if you mount to /srv/http/gallery3/var you'll need to first mount to a temporary location, then copy/move the contents over, then unmount, then remount to the correct location. ____________________________________________ |
|
fryfrog
Joined: 2002-10-30
Posts: 3236 |
![]() |
If you want to keep /storage (ie, you have other things that want it to be there) you could use a symlink or use "mount -o bind /storage /another/path" Or you can just move the whole thing as suggested. _________________________________ |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
Or just create a symlink from /storage/var to /var/www/gallery3/var |
|