LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mount fat32 partition in several different locations with individual uid/gid (https://www.linuxquestions.org/questions/linux-newbie-8/mount-fat32-partition-in-several-different-locations-with-individual-uid-gid-582217/)

BigMomma 09-04-2007 05:56 PM

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.

Lenard 09-04-2007 06:20 PM

You are absolutely correct there is no way to mount the directories contained within a partition.

nx5000 09-05-2007 07:14 AM

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)


BigMomma 09-05-2007 10:31 AM

Quote:

Originally Posted by nx5000 (Post 2881882)
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

nx5000 09-05-2007 10:34 AM

As fat does not use permission; I have no real idea..


All times are GMT -5. The time now is 09:18 PM.