Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I did this in Windows 7. My Documents, Videos, Music and other personal folders are in D:\ because it is my media disk.

In case of a system failure, I will always have access to these files when I reinstall the OS. I just right click, i.e. "Videos" in my personal folder (in my case named "Tesla") and click "location" to set a new location for it, which is in D:\Tesla and in the case of Videos folder in D:\Tesla\Videos. I do that for every personal folder.

Now, I want to know if this is also possible in Ubuntu 11.10? I would like, when I open my Home folder and click i.e. Videos, to go to /media/Media/Tesla/Videos (which is where my D:\ disk is mounted), instead of the default /home/tesla/Videos.

Thanks in advance.

EDIT: I already set up NTFS automounting via the NTFS Configuration Tool.

share|improve this question
up vote 10 down vote accepted

This can be accomplished with symlinks. But first, you need to setup your system so that the D: partition is automounted every time you boot Ubuntu.

Run sudo blkid to see the UUID (Universally Unique Identifier) for all of your partitions. Then you will have to edit your fstab with this information.

fstab is a file located in /etc/ which determines which drives and partitions should be mounted every time the system starts. Before you do anything else, make a backup of the one you have:

sudo cp /etc/fstab /etc/fstab.backup

Then, edit fstab (with for example sudo nano or gksu gedit) and add this line:

UUID=<UUID of your D: partition> /media/Media ntfs defaults 0 0

Make sure that the mount location, /media/Media, exists before doing this, then reboot.

Now it's time to create symlinks. You will need to remove the personal folders first, as otherwise the symlinks will be placed inside them instead of replacing them. Make sure to backup any files you have there before running these commands:

rm -rf ~/Videos && ln -s /media/Media/Tesla/Videos ~/Videos

Repeat for all the folders you want to appear in your Home directory.

share|improve this answer
Yep, that's exactly what I wanted. Thanks a lot. It will help a lot with video editing, web development and everything else I do on both systems. – Tesla Mar 5 '12 at 12:36
Happy to help. :) – bessman Mar 5 '12 at 12:38
bessman, I'm using Ubuntu Studio 15.10 and I followed all the steps you wrote before and the only one thing I got is to mount the D: partition into the /media/ directory. The system is still using the standard personal folders into the original location (not into D: partition). What's wrong here? – Juan Nov 27 '15 at 20:45

enter image description hereUbuntu tweak might be helpful (I've never tried it on 11.10 but it works on 10.10) there is a section for Default folder Locations in Ubuntu tweak and you can change the folders, But I think you may need to mount the partitions after each reboot for access files through Home folder :-)

share|improve this answer
Ubuntu Tweak is working on 11.10 over here. I don't know if it would cause problems if the directories specified here aren't mounted. I suppose this is done by autofs right now. If you encounter problems after booting or leaving the system for a while, it could be because of the automatic unmounting of the directories. In that case: cut and paste the right (/media/Media/Tesla/..) line from /etc/mtab to /etc/fstab. – xatr0z Mar 5 '12 at 12:09
Or you can setup NTFS drives for automount on startup. Check out this tutorial. :) – user45315 Mar 5 '12 at 12:20
That tutorial is not entirely accurate for Ubuntu. It assumes that ntfs-3g is not installed per default, which it is in 11.10. – bessman Mar 5 '12 at 12:26
Although as not as close to the solution as Carborundum's method, Ubuntu Tweak helped solving some other issues. Thanks a lot dude! – Tesla Mar 5 '12 at 12:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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