Find the answer to your Linux question:
Page 3 of 3 FirstFirst 1 2 3
Results 21 to 25 of 25
I think the answer can be found with a hard study of "man mount". Look especially close at "Mount options for fat" and "Mount options for vfat"....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #21
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733

    I think the answer can be found with a hard study of "man mount". Look especially close at "Mount options for fat" and "Mount options for vfat".

  2. #22
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Can /etc/fstab be changed to change the ownership of all the files? Or will the ownership always be root:root?
    I addressed this in my first post to you. And yes, it's all in man mount (vfat options and fat options).

    I wonder if when you specified the UID and GID you did not specify the correct one?

  3. #23
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,630
    Quote Originally Posted by anomie
    Can /etc/fstab be changed to change the ownership of all the files? Or will the ownership always be root:root?
    I addressed this in my first post to you. And yes, it's all in man mount (vfat options and fat options).

    I wonder if when you specified the UID and GID you did not specify the correct one?
    That's why I was asking because I umounted /media/wd_fat_1, changed /etc/fstab with the different (and correct) UID and GID, and re-mounted with the new /etc/fstab settings. The UID and GID remained root:root for all files and folders despite the changes. I'll try it again to verify.
    Linux Mint + IceWM Registered: #371367 New Members: click here

  4. $spacer_open
    $spacer_close
  5. #24
    Just Joined!
    Join Date
    Dec 2006
    Posts
    1

    do you have the correct syntax?

    you have : chown -R blu30n3:usbdisk
    try chown -R blu30n3 usbdisk

  6. #25
    Just Joined!
    Join Date
    Sep 2007
    Posts
    1

    Talking

    Quote Originally Posted by anomie View Post
    Not sure why you can not change ownership, and I don't have a vfat partition to test theories on. But what you can do is use the mount options to change ownership.

    Try changing
    Code:
    /dev/sda5        /media/wd_fat_1  vfat        defaults         1   0
    to
    Code:
    /dev/sda5        /media/wd_fat_1  vfat        uid=uid_here,gid=gid_here         1   0
    Specify the UID and GID according to which you want to have ownership. If you do not know the UID/GID, then a quick way to find this out is by using
    Code:
    id user_name_here


    Noobie here:
    Thanks, this worked for me:
    where xxx is uid and gid.
    fstab entry
    /dev/sdb1 /media/usb vfat auto,uid=xxx,gid=xxx,rw,umask=000 0 0
    thanks.

Page 3 of 3 FirstFirst 1 2 3

Posting Permissions

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