Ubuntu – How to mount an ext4 partition and have write permission


I've set the /etc/fstab file so that I can mount an ext4 partition on startup and I did it with the following options : rw, auto, nouser, exec, sync.

The problem is that I can't create or delete any file on that partition without using sudo, which I find even more puzzling because I've mounted an ntfs partition (with these options : rw, auto, user, noexec, sync) and I didn't get the same problem I can read and write on the ntfs partition without using sudo.

How could I mount an ext4 partition and have read/write permissions on it?

Best Answer

First of, it'd be useful to check the drive's UUID by using following command:

ls -l /dev/disk/by-uuid

In my experience, I usually mount an EXT4 formatted harddrive using the defaults, and I never experienced any errors in write permissions.

My /etc/fstab looks like the following:

UUID=004f9bfa-fb5a-438c-8a5a-dc04fa6f2d3e /media/MYCH0  auto defaults 0 0 #external hdd

if all fails, you also might try to set yourself as the owner by doing this:

sudo chown username:username /media/mountpoint

For further reference, you might want to take a look at this: