need help mount hd to user folder

I want a data partion to mount /home/user/Documents. And I want it to mount to ever user who logs on.

Any Ideas how I can write fstab?

thank,
john

Don’t mount it to user

From a su terminal give us: fdisk -l

and from a regular terminal: cat /etc/fstab

If you give the partition a Volume Label if it doesn’t already have one (like my_data)

then in fstab add a line

/dev/sdb1 /media ntfs-3g defaults 0 0

The above assumes it’s ntfs, we will need to adjust accordingly as you didn’t say what it was

When it mounts though it will be in /media/my_data

I dont want the partion mounted in /media. This system has to share OS’s with Win7 and OpenSuSE. My wife needs her documents between the 2 OS’s. I want it mounted to a user’s document folder in Win7 and OpenSuSE. My wife doenst want to know how to change folders, she wants to open her documents folder and select a file. I need to think like a Windows User.

John

It’s not clear to me what you are doing or what your setup is exactly.:slight_smile:

I have a dual boot system that runs Win7 and OpenSuSE 11.2 64bit. My wife needs to be able to open documents in both OS’s. I am giving her a 5GB fat partition that is mounted at /home/User_Name/Documents.

John

I fail to see how a partition mounted in openSUSE will give your wife access to both your OS’s

Are we really talking about a shared folder using SAMBA

I can mount that partition to a user document folder in Win7. So when she opens her document folder, its the same files that she created or saved in Linux. Kind of like how people save data to thumb drives, and then open the data in an other OS.

John

But there are no mount points in windows.

Are you saying you want to mount a windows partition in Linux to save documents to. So that when you start winders again the documents are there?

Otherwise you still have me confused. You seem to know more about this than me.

I am sorry for the lack of info, been a long day for me.

Correct, I need to be able to start windows again and have the documents there. Whats few people know is that you can mount a drive to a folder in Windows like you can in Linux. Instead of giving it a Drive letter, you can give it a folder. And I am choosing the Documents folder on both OS’s to be the mount point.

John

So why the third wheel.
If you just mount the windows c drive in fstab, the whole of winders is available.

What you describe is mounting a separate partition to a a directory in a partition which itself needs to be mounted.

Otherwise just use a separate partition as a documents share which you sync between the two OS’s

I have my reasons for what I want. I dont see it as a third wheel. Have you ever tired to locate the user home folder in a Windows 7 system. Now give a computer user that. All they want to do is open My Documents. They dont want to open the file browser, then remember the entire path as too where the files are located. Which is why I am not mounting the entire windows drive.

As far as the mounting in a dir that needs… I have swap, boot, and /. I dont mount seperate partition for home.

"Otherwise just use a separate partition as a documents share which you sync between the two OS’s " This is what I want to do. But I am choosing to mount it to the Documents Folders within both OS’s. And I want both mine and my wifes account to mount the drive to Documents.

I just need to know how to make the mount dynamic on linux, so it mounts to any users Documents folder. I under stand that only 1 user at a time can access the drive, but thats ok.

John

Just create a shortcut to the directory and put it in your file browser places. No special mounting needed.
So long as you change the fstab entry for your winders mount to defaults 0 0
it will be fine

I know how difficult it is to find the directory in winders.:slight_smile:

Please delete this thread. I know I have done stuff like this with smb and nfs mounts in the pass. I will locate what I need and go forward with my needs.

Thanks,
John

Well, I sorted it out. I created 2 scripts that were put in the login and logout folders involving KDE that would mount/umount /dev/sda8 /home/$USER/Documents in the skel folder in etc. Now when a new user logs in, the script comes with the default user profile.

Its not pretty, but it works great and does exactly what I want.

John