LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-15-2010, 07:29 PM   #1
fhsm
Member
 
Registered: Jan 2009
Posts: 51

Rep: Reputation: 17
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?
 
Old 03-15-2010, 08:34 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
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.

Last edited by smoker; 03-15-2010 at 08:43 PM.
 
1 members found this post helpful.
Old 03-15-2010, 10:38 PM   #3
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
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
 
  


Reply

Tags
dual boot, fstab, mount, security, windows7


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I cant mount NTFS file system... please help.. anoop40 Linux - Newbie 16 12-13-2009 11:34 PM
How to read .chm file in fedora, can't mount ntfs file system ishti_du Linux - Newbie 12 03-06-2007 03:27 AM
Mount ntfs file system tobiasw Linux - General 10 10-22-2006 07:20 PM
Compiled RH7.3 to read WinXP NTFS partition, mounts in Console, but can't mount fstab BlackDogg Linux - Newbie 20 08-05-2002 11:15 PM
mount the ntfs file system jdevanand Linux - General 3 01-22-2002 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration