4

I have multiple drives in a desktop computer. I want one of those drives to function as my /home/username/Pictures folder. Can this be done?

I thought symbolic links could do this, but I'm not having any success.
The target drive is /media/Images. Here's what I tried so far:

terminal screenshot

All four variations give me the same result, a shortcut inside the /Pictures folder.

link inside folder

This isn't what I want. I want the /Pictures folder itself to be the shortcut. How do I do this?

2 Answers 2

8

Why it's as simple as deleting the Pictures folder first before linking my good man. Like so:

rm -rf ~/Pictures

ln -s /media/Images ~/Pictures
3
  • I hope it's something simple like this. I just tried your command and got "rm: cannot remove `/home/tom/Pictures': Is a directory" as an error. May 17, 2012 at 18:55
  • 3
    rm -rf !!!!!!!!
    – Rinzwind
    May 17, 2012 at 18:58
  • Perfect, thanks. I was getting so frustrated! A quick fstab edit and I'm all set now. May 17, 2012 at 19:32
0

I was inspired with the answer of @SomKit. But I stick to more safe method to not delete the files

mv Pictures/ /media/akpp/data1/screenshots/
ln -s /media/akpp/data1/screenshots/ ~/Pictures

I moved target folder to a new location with a new name, then created a link for new folder in the old location

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.