Stop Microsoft

Miscellaneous => Technical Support => Topic started by: Annorax on 25 March 2006, 18:12

Title: Debian hates my vfat partitions
Post by: Annorax on 25 March 2006, 18:12
I'm trying to set up Debian to allow read and write access to both my vfat partitions so that I can share certain data files between my Windows 98 and Debian setups. For some reason, Debian restricts non-root users to read-only access on the vfat partitions. Nothing I've found so far can fix this little problem. What could be causing it, and how can I fix it?


Quote from: fstab
# /etc/fstab: static file system information.
#
#            
proc            /proc           proc    defaults        0       0
/dev/hda6       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda5       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/hdd        /media/cdrom1   iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
/dev/hda7       /media/shared   vfat    defaults,auto 0       0
/dev/hda1       /media/windows  vfat    defaults,auto 0       0
Title: Re: Debian hates my vfat partitions
Post by: Aloone_Jonez on 25 March 2006, 18:25
I don't know but here's mine from my Ubuntu install:

Code: [Select]
# /etc/fstab: static file system information.
#
#            
proc            /proc           proc    defaults        0       0
/dev/hda1       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda5       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
/dev/hda4 /mnt/windows ntfs    gid=100,umask=002,noexec,nosuid   0   0
/dev/hda3 /mnt/dos vfat    gid=100,umask=002,noexec,nosuid   0   0
Title: Re: Debian hates my vfat partitions
Post by: Annorax on 25 March 2006, 19:27
That didn't work. :(
Title: Re: Debian hates my vfat partitions
Post by: Aloone_Jonez on 25 March 2006, 19:31
Just an idea but have you tried changing the permissions on the /media/windows directory?
Title: Re: Debian hates my vfat partitions
Post by: solemnwarning on 26 March 2006, 00:23
FAT32 has no permissions so chmod and chown do nothing, just add the following to the mount options section of each FAT32:

Code: [Select]
,uid=your_user_id,gid=your_group_id
Title: Re: Debian hates my vfat partitions
Post by: Aloone_Jonez on 26 March 2006, 00:32
The /media/windows he's mounting it to on his UNIX drive does though.
Title: Re: Debian hates my vfat partitions
Post by: solemnwarning on 26 March 2006, 03:01
Quote from: Aloone_Jonez
The /media/windows he's mounting it to on his UNIX drive does though.


But chmod/chown wont give him write access :)
Title: Re: Debian hates my vfat partitions
Post by: KernelPanic on 26 March 2006, 15:33
Change defaults,auto to rw,umask=0. Then remount the fat partition.
Title: Re: Debian hates my vfat partitions
Post by: Annorax on 26 March 2006, 15:56
Quote from: KernelPanic
Change defaults,auto to rw,umask=0. Then remount the fat partition.


This worked. Thanks.