Possible Duplicate:
How to automount NTFS partitions?
I have 300 gb NTFS drive with documents folder on it. Is it possible to automount /media/300gb/documents to home/documents at system startup? How can i do it?
Possible Duplicate:
How to automount NTFS partitions?
I have 300 gb NTFS drive with documents folder on it. Is it possible to automount /media/300gb/documents to home/documents at system startup? How can i do it?
You'll first have to set up the NTFS partition to be automounted (see this answer), then you can set up the appropriate links as @mikewhatever suggested.
Along with this you might also need to update the entries in the ~/.config/user-dirs.dirs
file for it to apply a specific user, or /etc/xdg/user-dirs.conf
for all users.
In my case (under Ubuntu 12.10) I moved my Documents
folder to a backup location before replacing it with a link to a folder on an NTFS partition. But afterwards Nautilus, LibreOffice, etc. still defaulted to the old folder until I updated the user-dirs.dirs
file.
For more detail, see this answer.
The fstab entry to bind mount one location to another looks like this:
/media/300gb/documents /home/USER/documents bind defaults,bind,auto, rw 0 0
You might need to adjust the mount options (defaults,bind) for ntfs a bit: users,exec,nls=utf8,umask=003,gid=YOUR_GROUP_ID,uid=YOUR_USER_ID
Remove the 'exec' if you don't intend to install executables on the ntfs partition. You can determine your group and user IDs with the id
command in a terminal.
Your link problem possibly stems from the fact, that documents is already an existing directory when you are issuing the link command.
.ssh
, .vimrc
etc.
– Brady Trainor
Aug 5 '14 at 17:45
Instead of messing with mount points, you can create a link to /media/300gb/documents
like this:
ln -s /media/300gb/documents ~/documents
documents
in your home folder, and point directly into the /media/300gb/documents
. In what way is that a half solution?
– mikewhatever
May 9 '12 at 1:57