Ubuntu – How to i change the Pictures/Documents/etc directory

directoryhome-directoryxdg

I am a total noob in Ubuntu, and i would like to change the default directory of Documents, Music, Pictures etc. My setting is as follows:

  • 1 partition for Windows
  • 1 partition for ubuntu
  • 1 partition in NTFS format for Storage.
    In that particular partition I store the Documents, Pictures etc for Windows.

Now I would like to make the exact same folders that store these stuff in Windows, to store the same stuff in Ubuntu as well. I used the tips I found in one post here, mentioning how to change the lines like this in ~/.config/user-dirs.dirs

XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_MUSIC_DIR="/home/common/Music"
XDG_VIDEOS_DIR="$HOME/Movies"

and indeed it works fine, but every time I restart the machine, it's reset to simple "$Home/", without pointing to any actual directory. I mean that if I open the Documents folder, it takes me to an empty folder.

What is it that I'm doing wrong? How can I fix it? Many thanks in advance. (I use 14.04)

my fstab looks like that:

enter image description here

The terminal on the right side has the dev6, which is the partition i want to assign the Home folder to

Best Answer

You can add a line in your etc/fstab

/dev/sda6 /media/basislis/Storage ntfs rw,users,nosuid,nodev,default_permissions

This should automatically mount your NTFS share at boot and should normally fix the problem.

You may have to tweak the mount option. Look for documenation on that and educate yourself.

Related Question