I am trying to format a partition /dev/nvme0n1p4
as fat32 on ~/Work
so that I can WRITE on it. But when I try to write e.g.
touch Work/test.tst
I get an error
touch: cannot touch 'Work/test.tst': Permission denied
It is mounted as
drwxr-xr-x 2 root root 32768 Jan 1 1970 /media/Work/
and doing
sudo chown alex:alex /media/Work/
gives error
chown: changing ownership of '/media/Work/': Operation not permitted
I did a check with sudo fsck /dev/nvme0n1p4
but that seems to be ok?
What else can I do?
fmask
/dmask
/umask
anduid
/gid
set like in https://askubuntu.com/a/956072/158442 – muru Mar 27 '24 at 07:05vfat
), just use those options in addition – muru Mar 27 '24 at 07:08sudo mount -o rw,user,uid=1000,umask=007,exec /dev/nvme0n1p4 /media/Work/
seems to work maybe – Alex Mar 27 '24 at 07:09/etc/fstab
? If not, the change wouldn't be permanent and have no effect on booting – muru Mar 27 '24 at 08:05