How to mount ext4 partition?
Solution 1:
You don't. The files in the fs are owned by whoever owns them, and you can not change that at mount time. Instead you need to change the permissions to give yourself access with sudo chown yourname.yourname /path/to/mount
. On a freshly formatted filesystem, the root directory is owned by root, so you will need to change it and from then on, you will be able to create new files which will be owned by you.
Solution 2:
Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.
gksudo nautilus /etc/fstab
To mount the partition as "data" for example with read-write permissions add this entry in the /etc/fstab:
/dev/sd8 /data ext4 defaults 1 2
Once the partition is mounted as "data", make yourself (my user account) the owner
sudo chown flint:root /mnt/data
and give yourself permission so you can access the partition
sudo chmod 700 /mnt/data