Results 1 to 13 of 13
  1. #1
    Joined
    Jul 2001
    Location
    UK
    Age
    51
    Posts
    20,229

    How do I mount a fat32 partition writable by all from /etc/fstab

    Hi,

    Can anyone tell me how I set up a vat32 partition in /etc/fstab so it's writable by all users (well, me anyway) rather than just root, and also allow execution of applications on that partition (windows apps under wine).

    My current entry in /etc/fstab looks like below but only root can write to it.

    /dev/hda5 /windows vfat defaults 0 0

    Thanks,

    Ned

  2. #2
    Joined
    Sep 2002
    Location
    In and out of Detroit
    Posts
    1,556

    Re: How do I mount a fat32 partition writable by all from /etc/fstab

    Quote Originally Posted by Ned Slider
    Can anyone tell me how I set up a vat32 partition in /etc/fstab so it's writable by all users (well, me anyway) rather than just root, and also allow execution of applications on that partition (windows apps under wine).
    Code:
    /dev/hda5      /windows      vfat      rw,noatime,user   0 0
    "user" lets a user mount it, "rw" lets the system know its read-write, if that was the problem your having with execution

    "Well, let's just say, 'if your VCR is still blinking 12:00,you don't want Linux.'"
    - Bruce Perens, Former Debian Project Leader

  3. #3
    Joined
    Jul 2001
    Location
    UK
    Age
    51
    Posts
    20,229

    Re: How do I mount a fat32 partition writable by all from /etc/fstab

    I edited my fstab file as indicated and rebooted but still no go

    The dirs are still owned by root and are 755. I tried changing permissions as root but it still won't let me

    and what does the 'noatime' option do?

    Thanks,

    Ned

  4. #4
    Joined
    Jul 2001
    Location
    UK
    Age
    51
    Posts
    20,229

    Re: How do I mount a fat32 partition writable by all from /etc/fstab

    Quote Originally Posted by Provicemo
    Code:
    /dev/hda5      /windows      vfat      rw,noatime,user   0 0
    "user" lets a user mount it, "rw" lets the system know its read-write, if that was the problem your having with execution
    OK, I've figured it out, I added my uid and gid values and now I own the mount instead of root which solves the problem

    Code:
    /dev/hda5      /windows      vfat      rw,noatime,uid=500,gid=500,user   0 0
    Ned

  5. #5
    Joined
    Sep 2002
    Location
    In and out of Detroit
    Posts
    1,556

    Re: How do I mount a fat32 partition writable by all from /etc/fstab

    Good to hear you got it working. fat doesn't support permissions/ownership as far as i know. whoever mounts it, owns it.

    "Well, let's just say, 'if your VCR is still blinking 12:00,you don't want Linux.'"
    - Bruce Perens, Former Debian Project Leader

  6. #6
    Joined
    Jul 2001
    Location
    UK
    Age
    51
    Posts
    20,229

    Re: How do I mount a fat32 partition writable by all from /etc/fstab

    Thanks Provicemo for pointing me in the right direction

    Ned

  7. #7
    Joined
    Feb 2001
    Location
    CA bay area
    Posts
    252

    Re: How do I mount a fat32 partition writable by all from /etc/fstab

    if you want all users to have r/w access you should use this line
    Code:
    /dev/hda5      /windows      vfat      rw,noatime,user,umask=0   0 0
    burzmali

  8. #8
    Joined
    Jul 2001
    Location
    UK
    Age
    51
    Posts
    20,229

    Re: How do I mount a fat32 partition writable by all from /etc/fstab

    Thanks burzmali,

    I found that option too when doing a forum search and man page on mount and fstab

    Yes, you're right. As I'm the only user, besides root, the uid option works fine for me, but for multiple users the umask option presumably would be the way to go

    Ned

  9. #9
    Joined
    Jul 2001
    Location
    UK
    Age
    51
    Posts
    20,229

    Re: How do I mount a fat32 partition writable by all from /etc/fstab

    One last question while we're on the subject, is there a way to reinvoke fstab without having to reboot whilst I'm testing different options?

    Ned

  10. #10
    Joined
    Jan 2002
    Location
    Nashville, TN
    Age
    39
    Posts
    3,369

    Re: How do I mount a fat32 partition writable by all from /etc/fstab

    Quote Originally Posted by Ned Slider
    One last question while we're on the subject, is there a way to reinvoke fstab without having to reboot whilst I'm testing different options?

    Ned
    There is no need, you should jsut be able to do "mount /mountpoint" then it checks the file and does what it should. If you want to do the mounting that should happen when you start up do mount -a
    i code therefore i am

  11. #11
    Joined
    Jul 2001
    Location
    UK
    Age
    51
    Posts
    20,229

    Re: How do I mount a fat32 partition writable by all from /etc/fstab

    Quote Originally Posted by Eggs
    There is no need, you should jsut be able to do "mount /mountpoint" then it checks the file and does what it should. If you want to do the mounting that should happen when you start up do mount -a
    Thanks eggs.

    Do I need to umount it first as it's already mounted when I boot or will issuing a mount command remount it with the new settings?

    Ned

  12. #12
    Joined
    Jan 2002
    Location
    Nashville, TN
    Age
    39
    Posts
    3,369

    Re: How do I mount a fat32 partition writable by all from /etc/fstab

    Quote Originally Posted by Ned Slider
    Thanks eggs.

    Do I need to umount it first as it's already mounted when I boot or will issuing a mount command remount it with the new settings?

    Ned
    Yah just remount it, sorry.
    i code therefore i am

  13. #13
    Joined
    Jul 2001
    Location
    UK
    Age
    51
    Posts
    20,229

    Re: How do I mount a fat32 partition writable by all from /etc/fstab

    Thanks

    Another one resolved

Posting Permissions

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