Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
I've been using Ubuntu now for a few weeks and I decided I'd add my shared partition on my computer to it, which is a FAT32 (/dev/hda5). I can mount ...
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Location
    Australia
    Posts
    39

    Enabling user write access to Fat 32 partition

    I've been using Ubuntu now for a few weeks and I decided I'd add my shared partition on my computer to it, which is a FAT32 (/dev/hda5). I can mount it fine to the media folder using the /etc/fstab entry:

    /dev/hda5 /media/share vfat defaults 0 0

    But I'm not sure what I need to change to enable a normal user account to write to the partition. At the moment the only permissions on the drive are 755.

    I have tried chmod 777 -R /media/share both with the drive mounted and without it mounted. I've also tried to copy the entry on the /etc/fstab from my suse 10 fstab to ubuntu and I've noticed they are in no way compatible.

    Any help would be GREATLY appreciated

  2. #2
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,413
    I forget the exact syntax, but you need to add "rw" to the fstab to enable read/write access. Just a guess, but maybe it's as simple as adding it right after the word "defaults"??
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  3. #3
    Just Joined!
    Join Date
    Aug 2005
    Location
    Australia
    Posts
    39

    tried that

    Thanks but I've already tried that and it says when I try to mount it that there is an error in the fstab file.

  4. #4
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    try
    Code:
    /dev/hda5       /media/share          vfat       auto,users,rw,exec   1       0
    Brilliant Mediocrity - Making Failure Look Good

  5. #5
    Just Joined!
    Join Date
    Aug 2005
    Location
    Australia
    Posts
    39

    argh!!!

    It still doesn't work. I can't even change the permissions of individual folders through the terminal logged in as root.

    Can anyone think of anything else I might not have done? I've changed the fstab file to what was suggested and I have been able to use the same partition fine in SUSE 10 which is also on the same computer.

  6. #6
    Just Joined!
    Join Date
    Aug 2005
    Location
    Australia
    Posts
    39

    yay

    All is good now, thanks. Basically I followed the advice on ubuntuguide.org but the biggest problem I had was that I needed to restart the computer so it would mount during boot.

    Anyway, it works now. thanks!

  7. #7
    Just Joined!
    Join Date
    Aug 2005
    Posts
    15
    "sudo mount -a" would have solved that problem. I think the Ubuntu guide mentioned it somewhere.

  8. #8
    Just Joined!
    Join Date
    Jan 2005
    Location
    Linux Drive
    Posts
    43
    Quote Originally Posted by Vergil83
    try
    Code:
    /dev/hda5       /media/share          vfat       auto,users,rw,exec   1       0
    what exactly does exec do? Just curious

  9. #9
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    It lets you execute binaries that are on that partition (which you aren't really supposed to do )
    Brilliant Mediocrity - Making Failure Look Good

  10. #10
    Just Joined!
    Join Date
    Jan 2005
    Location
    Linux Drive
    Posts
    43
    Quote Originally Posted by Vergil83
    It lets you execute binaries that are on that partition (which you aren't really supposed to do )
    Doesn't chmod +x filename do that?

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •