Mount NTFS partition deeper in file system with fstab?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Mount NTFS partition deeper in file system with fstab?
I'm dual booting with Windows 7 and would like to have my windows 7 user folder mount when I boot.
After some looking around I edited /etc/fstab to add the following line:
UUID=##### /mnt/windows ntfs-3g auto,users,uid=1000,gid=1000,dmask=027,fmask=137,utf8 0 0
This works. But it mounts the windows partition from the root level. I'd like to just mount C:\Users\FHSM (/Users/FSHM) to /mnt/windows.
I'm trying to get it so that when I click on the windows drive I get my windows user folder instead of having to click through from C:\ to get to it.
How can I do this?
As a side note I'm the only user on this system but if I created a second windows user would my home folder mount for that person too or does setting the user ID prevent that from happening?
Put a symlink in your home folder to /mnt/windows/Users/FHSM
Put a separate symlink in the other users home. You can't stop the other users going up to C: from fstab. Not if they're to access their directories too.
From your home directory ~
ln -s /mnt/windows/Users/FHSM windows
windows is a directory and should exist in your home directory. You can use any name you like as long as it exists. If you leave it off, then you'll get a link called FHSM.
I agree with smoker's solution.
If you keep a link to the /mnt/windows/users/FHSM
then the changes in user's folder will reflect at the linked directory also ( i.e home directory for your case ).
so if you create/delete of a user in windows will reflect at linux also
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.