I want to mount an ext3 filesystem on a device with uid, gid, umask options set. When I use these options during mount, I get an error.

Below is the command I am using to mount:

mount -t ext3 -o uid=1001, gid=1001, umask=0066 /dev/mapper/mdev5 /dir

Is there any alternate to do so using mount?

link|improve this question
Why do you think umask is an option you can set with ext3 filesystems? – sarnold Nov 16 '11 at 11:29
Check the allowable mount options for ext3 in your mount man page. As far as I'm aware, umask is not available for ext3, and from a brief reading I'm not sure uid and gid are either. – drfrogsplat Mar 27 at 6:08
feedback

migrated from stackoverflow.com Nov 16 '11 at 13:00

This question came from our site for professional and enthusiast programmers.

1 Answer

Read manpage for mount command. It says,

-o, --options opts Options are specified with a -o flag followed by a comma separated string of options

so, your command should be,

mount -t ext3 -ouid=1001,gid=1001,umask=0066 /dev/mapper/mdev5 /dir

(without space between options)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown