LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Users cannot mount or access mounted windows vfat partitions (Distro: Gentoo Linux) (https://www.linuxquestions.org/questions/linux-software-2/users-cannot-mount-or-access-mounted-windows-vfat-partitions-distro-gentoo-linux-181725/)

kamel 05-15-2004 08:28 AM

Users cannot mount or access mounted windows vfat partitions (Distro: Gentoo Linux)
 
I tried tons of things, but users cannot mount or access mounted windows partitions. Here is my fstab:

Code:


/dev/hda2                /boot                reiserfs        noatime,notail                        1 2
/dev/hda4                /                reiserfs        noatime,notail                        0 1
/dev/hda3                none                swap                sw                                0 0
/dev/hda1                /mnt/Windows        vfat                noauto,users,unmask=022 0 0        0 0
/dev/hdb1                /mnt/Files        vfat                noauto,users,unmask=022 0 0        0 0
/dev/cdroms/cdrom0        /mnt/DVDR        auto                noauto,users,ro                        0 0
/dev/cdroms/cdrom1        /mnt/CDR        auto                noauto,users,ro                        0 0
none                        /proc                proc                defaults                        0 0
none                        /dev/shm        tmpfs                defaults                        0 0


Does anyone know what I can do to try to fix this problem?

Thank you :cry:

Hammett 05-15-2004 08:35 AM

have you tried to change owner on /mnt/Windows and so on??? Like to be root:username or something like that.

jtshaw 05-15-2004 08:38 AM

Did you compile vfat support into your kernel?

The unmask options probably aren't all that important.

Oh, and make sure those windows partitions aren't NTFS. Linux has no write support (at least none I would recommend using) for NTFS partitions. Microsoft has always been hush hush about the fs details making it a difficult reverse engineering job.

kamel 05-15-2004 08:53 AM

Hammett:

I have indeed tried logging in as root and changing the folder permissions on the mountpoint but when i change to the other user it changes the permissions on the folder back to what it was.


jtshaw:

vfat is indeed compiled into my kernel (just checked)

adding or removing the unmask options doesn't do anything for me ~.~ It was the last thing I tried as a last resort before I went to start a thread

all of my windows partitions are FAT32

jtshaw 05-15-2004 11:13 AM

The only example I have for a vfat drive is my digital camera mount on my desktop machine.

fstab:
/dev/sda1 /mnt/e775 vfat noauto,users 0 0

Folder permissions:
drwxr-xr-x 2 root root 48 Feb 20 14:50 e775

Other then that I didn't do anything special and it works just fine for me. You can mount the partitions and use them as root, and just not as other users right?

kamel 05-15-2004 02:11 PM

OK, i got it working. The problem is this:

The user needs to mount it, and that doesnt work. I couldnt mount with the user and now i know why:

i cant do
mount device mountpoint

i have to do
mount mountpoint

because then it goes through the fstab.

gnu noob 05-15-2004 06:08 PM

If you change noauto to auto, it should mount every time you boot up


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