Opt Directory To Another Drive. .

So I was able to successfully move my opt directory to another drive.
I first tried just doing a direct link in fstab . . . yea that ain’t gonna work.

So I just did a symlink ln -s opt and that seemed to work.

I’m doing this because apparently CUDA and Davinci love to use the root opt and it just ate up space. Yes, I only gave my root directory 70 gb of space. I kind of thought I wouldn’t need anymore. . .

Anyways weird issue I know but if you’re wondering if it’s possible, yes you can do it.
Also for davinci, you need to have ownership of the davinci opt folder as your user so it can write your serial code down which is stupid and dumb.

Why not just mount a disk there? Failing that I would not symlink this, but rather do a bind mount as some applications will refuse to work correctly if they see the path is symlinked.

mount -o bind /some/other/path/opt /opt

3 Likes

I didn’t have another disk and didn’t want to build a new partition just for this.

I wasn’t aware apps would have an issue with a symlink, so far no apps seem to have an issue.

I’ll look into doing this through bind, maybe that is a better way, not really sure. There is supposedly a way to bind through fstab as well but that’s a bit out of my wheelhouse.

thanks