2

So I Currently have my /home on an SSD but I also have an HDD mounted to /mnt/hdd1

Now, I want to keep the big files like movies on my HDD. How do I move the Movies folder into my HDD while keeping the nice link in nautilus "Places" menu?

I tried to just move the movies folder on HDD and then making a Link of it but that seemed to just make a copy of the Videos folder that I have on SSD.

enter image description here

inimene
  • 2,236

1 Answers1

3
  1. Copy the contents of your Videos folder to a folder called Videos on your HDD, let's say /mnt/hdd1/Videos.
  2. Open a terminal and type mv ~/Videos ~/Videos.old.
  3. Type ln -s /mnt/hdd1/Videos/ ~/. This will create a link from that Videos folder in your HDD into your home directory (which is on the SSD).
  4. If you're on Ubuntu 14.04, I believe "Nautilus" will automatically fix the Videos icon and Places, but if it doesn't, do:

    sed -i~ '/^XDG_VIDEOS/s|.*|XDG_VIDEOS_DIR="$HOME/Videos"|' ~/.config/user-dirs.dirs
    

    That command should fix it.

Close all Nautilus windows and open again. Verify that the Videos icon still looks the same and you can click it under Places. Verify the symlink by doing ls -l ~.

Once done, you can safely remove the Videos.old folder in your Home directory.

Alaa Ali
  • 32,213