I have a usb device ext4 file system, I manually mount it like this

  mount -t ext4 /dev/sda1  /mnt/sdcard1 

then change permissions manually to enable others to write to it.

What line should I use in fstab so that all users have read/write permissions on it..


Since you are referring to fstab, I assume that this device will always be connected to your system.

Try the following:

mkdir -p /mnt/sdcard1
chmod 777 /mnt/sdcard1

and add the following line at the end of your /etc/fstab:

/dev/sda1    /mnt/sdcard1    ext4    rw,user,exec,umask=000 0 0

Note: If the device is not presenting during the boot time, boot might take long time before it fails to mount the device. make sure that the device is always connected and the name is correct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.