FedoraForum.org - Fedora Support Forums and Community
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2011
    Posts
    41

    Mounting an ext4 USB drive with full permissions to users

    I want an ext4 formatted drive to mount in /mnt/data and I want users to have full permissions.

    Here's what I did:

    Created a directory /mnt/data and changed permissions using chmod 777 /mnt/data then I changed ownership to my username with chown user:user data and added this line to fstab:

    UUID=1546d91f-466c-42ac-bf7b-5d3edce0b9d8 /mnt/data ext4 defaults 1 2

    yet me as a user can't do anything in there, I can only read and execute, no write.

    what am I missing?

  2. #2
    Join Date
    Oct 2007
    Location
    Freedonia
    Age
    68
    Posts
    3,036

    Re: Mounting an ext4 USB drive with full permissions to users

    I've had that same problem at times with mounting internal drives formatted as msdos, and found that replacing defaults with umask=0000 does the trick.
    Registered Linux user #470359 and permanently recovered BOFH.

    Any advice in this post is worth exactly what you paid for it.

  3. #3
    gordon64 Guest

    Re: Mounting an ext4 USB drive with full permissions to users

    I suggest you add an unique label to usb partition using gparted or e2label

    my internal hard drive has a mount point of /p4 and this is my fstab entry to allow user read write access

    LABEL=p4 /p4 ext4 users,rw 1 2
    if you have only one hard internal drive and one usb drive connected with one partition try

    Code:
    sudo e2label /dev/sdb1 usbone
    change usbone to what ever label name you want and reflect it in the fstab entry.
    I use p<number> on internal drives and name my usb sticks by brand, size or colour etc
    so
    pur is the only purple usb stick I own
    lex16 is a 16G lexar instead of a 8 which I also own.

    sorry for unique naming secrets reveals.

  4. #4
    Join Date
    Dec 2007
    Location
    Australia
    Posts
    1,628

    Re: Mounting an ext4 USB drive with full permissions to users

    These mount options work for me in fstab:
    Code:
    users,noatime,umask=0,rw,exec
    I also use "noauto" because I mount the usbs manually on that machine.

  5. #5
    Join Date
    Jan 2015
    Location
    Al Ain, UAE
    Posts
    735

    Re: Mounting an ext4 USB drive with full permissions to users

    The umask 0 mount trick should work - otherwise as root, make a directory on the disk and set the owner and group as required.
    --
    Have fun!
    http://www.aeronetworks.ca

Similar Threads

  1. Mounting USB drive with permissions
    By drew1337 in forum Using Fedora
    Replies: 3
    Last Post: 21st June 2012, 12:45 AM
  2. Mounting 2nd drive with permissions for any user
    By tristanlee85 in forum Using Fedora
    Replies: 16
    Last Post: 25th February 2010, 06:46 AM
  3. Does F12 have full ext4 support? What are your experiences?
    By Vector in forum Fedora 12 Alpha, Beta & Release Candidates
    Replies: 14
    Last Post: 4th October 2009, 10:20 AM
  4. in f9 support for ext4 will be full?
    By -DarkMind- in forum Alpha - Beta (Fedora 9 Only)
    Replies: 2
    Last Post: 14th April 2008, 05:54 PM
  5. Mounting USB drive on Windows+Permissions
    By PaulClarke in forum Servers & Networking
    Replies: 4
    Last Post: 7th December 2006, 08:44 AM

Tags for this Thread

Posting Permissions

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