My Kubuntu workstation has an SSD and an HDD. The SSD contains the Kubuntu installation, while I would like to use the HDD for general storage where drive speed is not a concern.
I have the HDD mounted via /etc/fstab using:
UUID=... /mnt/hdd ext4 defaults 0 2
I created symlinks for some of my /home subdirs to the HDD using:
ln -s /mnt/hdd/Downloads/ ~/Downloads
This creates the desired outcome - e.g. Firefox downloads will downloaded to
/mnt/hdd/Downloads on the mounted HDD partition instead of the SSD. This is not the only use-case intended for this. The intention is for directories like Downloads and Documents to be stored on the mounted HDD, while appearing to be in their default /home locations (both to applications and to myself).
However, when I reboot, this symlink breaks with the following result:
$ ls -l ~ ... Downloads -> /mnt/hdd/Downloads/ ... $ ls -l /mnt/hdd/ ... Downloads -> /home/<username>/../../../../../mnt/hdd/Downloads ...
I'm not sure why
/mnt/hdd/Downloads would turn into a broken symlink on reboot.
This is a fresh install with no other symlinks set.
Am I doing something wrong here?
Edit: After some experimentation, I've found that this behavior is not consistent. Sometimes a symlink will break, and sometimes it won't. I've had cases where out of 5 symlinks, only 1 or 2 will be broken on reboot.
/homeand whether or not they are breaking. If that isn't the case, then there's no significant reason that you can't just edit the Firefox settings and leave the other ones alone.