LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-04-2007, 06:56 PM   #1
BigMomma
LQ Newbie
 
Registered: Sep 2007
Posts: 4

Rep: Reputation: 0
Question mount fat32 partition in several different locations with individual uid/gid


The Subject describes it, basically..

I dual boot WinXP and Debian Linux on a vaio laptop with a scsi hd.
I have a fat32 partition which I share between both os.
I would like to have most of my stuff on that partition, eg. mysql data, web data, hence I would like to double mount or "bind-mount" some folders on that partition with individual mount options (uid,gid). I tried everything but I think it's not possible, or is it?

Thanks for your help and sorry if this is a typical newbie question that everyone asks. I tried to find old posts on this topic but didn't succeed.
I am also thankful for any suggestions on workarounds and alternative solutions.
 
Old 09-04-2007, 07:20 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
You are absolutely correct there is no way to mount the directories contained within a partition.
 
Old 09-05-2007, 08:14 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
Yes it is possible to mount a subdirectory but AFAIK its not possible to change mounting options

Code:
$ mount
/dev/hda2 on /mnt/hda2 type ext3 (rw,commit=0)

# mkdir /test

# mount /mnt/hda2/work/ /test -o rbind
# mount
/dev/hda2 on /mnt/hda2 type ext3 (rw,commit=0)
/mnt/hda2/work on /test type none (rw,bind)
 
Old 09-05-2007, 11:31 AM   #4
BigMomma
LQ Newbie
 
Registered: Sep 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nx5000 View Post
Yes it is possible to mount a subdirectory but AFAIK its not possible to change mounting options

Code:
$ mount
/dev/hda2 on /mnt/hda2 type ext3 (rw,commit=0)

# mkdir /test

# mount /mnt/hda2/work/ /test -o rbind
# mount
/dev/hda2 on /mnt/hda2 type ext3 (rw,commit=0)
/mnt/hda2/work on /test type none (rw,bind)
So can you maybe suggest any workarounds? I suppose this problem of mine must be very common amongst "dual-booters". Isn't there any common solution?
I'm grateful for any hints. Thanks
 
Old 09-05-2007, 11:34 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
As fat does not use permission; I have no real idea..
 
  


Reply


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
what is uid and gid rmanocha Linux - Software 9 08-19-2008 12:03 AM
cifs not using uid and gid mattd7591 Linux - General 10 07-19-2007 12:30 PM
What is my uid/gid? Jeebizz Slackware 2 11-22-2005 12:39 PM
SuSE 9.2, Samba, wrong GID/UID after mount dickohead Linux - Networking 2 04-21-2005 05:38 AM
changing uid, gid zeke1955 Linux - General 4 01-10-2004 12:53 AM

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

All times are GMT -5. The time now is 02:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration