When HDD becomes full, how to create a symbolic link to the data store on another disk?

Posted by Brij Raj Singh on Super User See other posts from Super User or by Brij Raj Singh
Published on 2013-11-11T08:57:46Z Indexed on 2013/11/11 10:01 UTC
Read the original article Hit count: 361

Filed under:
|

I have a Linux Ubuntu machine which has an X GB hard disk. There is folder, say, /opt/software/data. The disk /dev/sda1 is almost full and I have attached another disk at /dev/sda2 which is mounted at /hdd2.

Is it possible for me to link the folders /opt/software/data with /hdd2/software/data so, that every file get stored in the /hdd2/software/data but may be referred from the /opt/software/data?

I can't do a reinstall of the software that creates this data, to change the default location of storage.

© Super User or respective owner

Related posts about linux

Related posts about ubuntu-12.04