When HDD becomes full, how to create a symbolic link to the data store on another disk?
- by Brij Raj Singh
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.