Author Topic: Debian hates my vfat partitions  (Read 3037 times)

Annorax

  • Global Moderator
  • Member
  • ***
  • Posts: 694
  • Kudos: 457
Debian hates my vfat partitions
« 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
Quote from: "bash.org"
<3M> ok guys i've finally got my windows me machine up and running again :D
if everything seems to be running well on windows me you've obviously overlooked something....
<3M> who is general failure and why is he reading my hard disc :(
somehow, "i told you so" doesn't quite say it ;)

Aloone_Jonez

  • Administrator
  • Member
  • ***
  • Posts: 4,090
  • Kudos: 954
Re: Debian hates my vfat partitions
« Reply #1 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
This is not a Windows help forum, however please do feel free to sign up and agree or disagree with our views on Microsoft.

Oh and FUCKMicrosoft! :fu:

Annorax

  • Global Moderator
  • Member
  • ***
  • Posts: 694
  • Kudos: 457
Re: Debian hates my vfat partitions
« Reply #2 on: 25 March 2006, 19:27 »
That didn't work. :(
Quote from: "bash.org"
<3M> ok guys i've finally got my windows me machine up and running again :D
if everything seems to be running well on windows me you've obviously overlooked something....
<3M> who is general failure and why is he reading my hard disc :(
somehow, "i told you so" doesn't quite say it ;)

Aloone_Jonez

  • Administrator
  • Member
  • ***
  • Posts: 4,090
  • Kudos: 954
Re: Debian hates my vfat partitions
« Reply #3 on: 25 March 2006, 19:31 »
Just an idea but have you tried changing the permissions on the /media/windows directory?
This is not a Windows help forum, however please do feel free to sign up and agree or disagree with our views on Microsoft.

Oh and FUCKMicrosoft! :fu:

solemnwarning

  • Member
  • **
  • Posts: 747
  • Kudos: 338
    • http://www.solemnwarning.net
Re: Debian hates my vfat partitions
« Reply #4 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
-----BEGIN GEEK CODE BLOCK-----
 Version: 3.1
 GCS/CM d- s+:+ a--- C++ UL++++>$ P+ L+++ !E W++ !N !o !K-- w !O !M !V PS+ PE- !Y !PGP !t !5 !X !R tv b+ DI+ !D G e- h !r y-
 ------END GEEK CODE BLOCK------

Aloone_Jonez

  • Administrator
  • Member
  • ***
  • Posts: 4,090
  • Kudos: 954
Re: Debian hates my vfat partitions
« Reply #5 on: 26 March 2006, 00:32 »
The /media/windows he's mounting it to on his UNIX drive does though.
This is not a Windows help forum, however please do feel free to sign up and agree or disagree with our views on Microsoft.

Oh and FUCKMicrosoft! :fu:

solemnwarning

  • Member
  • **
  • Posts: 747
  • Kudos: 338
    • http://www.solemnwarning.net
Re: Debian hates my vfat partitions
« Reply #6 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 :)
-----BEGIN GEEK CODE BLOCK-----
 Version: 3.1
 GCS/CM d- s+:+ a--- C++ UL++++>$ P+ L+++ !E W++ !N !o !K-- w !O !M !V PS+ PE- !Y !PGP !t !5 !X !R tv b+ DI+ !D G e- h !r y-
 ------END GEEK CODE BLOCK------

KernelPanic

  • VIP
  • Member
  • ***
  • Posts: 1,878
  • Kudos: 222
Re: Debian hates my vfat partitions
« Reply #7 on: 26 March 2006, 15:33 »
Change defaults,auto to rw,umask=0. Then remount the fat partition.
Contains scenes of mild peril.

Annorax

  • Global Moderator
  • Member
  • ***
  • Posts: 694
  • Kudos: 457
Re: Debian hates my vfat partitions
« Reply #8 on: 26 March 2006, 15:56 »
Quote from: KernelPanic
Change defaults,auto to rw,umask=0. Then remount the fat partition.


This worked. Thanks.
Quote from: "bash.org"
<3M> ok guys i've finally got my windows me machine up and running again :D
if everything seems to be running well on windows me you've obviously overlooked something....
<3M> who is general failure and why is he reading my hard disc :(
somehow, "i told you so" doesn't quite say it ;)