Mount with Umask Not Working – Troubleshooting

mountnvmepermissionsumask

I tried to run

mount /home/user/nvme0n1 -U 8da513ec-20ce-4a2d-863d-978b60089ad3 -t ext4 -o umask=0000

and the response is:

mount: /home/user/nvme0n1: wrong fs type, bad option, bad superblock
on /dev/nvme0n1, missing codepage or helper program, or other error.

However, when I remove the umask option, the SSD is mounted as desired.
What should I do? How can I start debugging the problem? I want the device to have mode=777.

Best Answer

You're mounting an ext4 filesystem:

... -t ext4 -o umask=0000

Per the ext4(5) man page, the ext4 filesystem does not have a umask mount option.

I want the device to have mode=777.

If you need different permissions on files and/or directories, you can set file/directory permissions on the files/directories themselves. See What are the different ways to set file permissions etc on gnu/linux.

Related Question