problems mounting camera to download pics ....

William A. Mahaffey III wam at hiwaay.net
Thu Feb 26 17:58:01 UTC 2015


On 02/26/15 11:39, Polytropon wrote:
> On Thu, 26 Feb 2015 11:38:48 -0600, William A. Mahaffey III wrote:
>>
>> .... I am trying to mount my digital camera to download some pics I just
>> took. When I do this as root, it works AOK & I got the pics off.
>> However, when I changed my fstab file to (supposedly) allow regular
>> users to mount that directory, the mount command fails:
>>
>>
>> [wam at kabini1, ~, 11:33:11am] 530 % mount /media/flash/
>> mount_msdosfs: /dev/da0s1: Operation not permitted
>> [wam at kabini1, ~, 11:35:58am] 530 %
> And with "sudo" prefix? :-)

[wam at kabini1, ~, 11:58:22am] 568 % mount /media/flash/
mount_msdosfs: /dev/da0s1: Operation not permitted
[wam at kabini1, ~, 11:58:25am] 569 % sudo mount /media/flash/
mount_msdosfs: /dev/da0s1: mount option <users> is unknown: Invalid argument
[wam at kabini1, ~, 11:58:27am] 570 %

>
>
>> relevant lines from my fstab file:
>>
>>
>> /dev/da0s1      /media/flash            msdosfs
>> rw,sync,noauto,longnames,-Lru_RU.UTF-8,users    0       0
> Suggestion regarding msdosfs: add "-m=644,-M=755" to the
> options to get rid of the fake +x attributes for the files.
> You could also add "noatime".

Roger, wilco ....

>
>> Not a huge issue, since I can get 'er done as root, but I don't see why
>> this shouldn't be feasible as a regular user .... TIA & have a nice,
>> snowy (here) day ;-) ....
> Do you have the mandatory "vfs.usermount=1" in /etc/sysctl.conf?
> Also check the device permissions: User or group requires rw for
> the device and must own the mountpoint.

.... & remember to change it in the command line as well, done, still 
the same problem .... my root dir:


[wam at kabini1, ~, 12:01:36pm] 570 % ll /
total 32890
dr-xr-xr-x   4 root  wheel          512 Feb 26 01:50 .amd_mnt/
-rw-r--r--   2 root  wheel         1182 Oct 12 13:27 .cshrc
-rw-r--r--   2 root  wheel          253 Jul 10  2014 .profile
drwxrwxr-x   2 root  operator       512 Aug  2  2014 .snap/
-r--------   1 root  wheel     33554432 Aug  2  2014 .sujournal
-r--r--r--   1 root  wheel         6197 Jul 10  2014 COPYRIGHT
drwxr-xr-x   2 root  wheel         1024 Jul 10  2014 bin/
drwxr-xr-x  10 root  wheel         1024 Feb 20 16:38 boot/
drwxr-xr-x   3 root  wheel          512 Feb 24 23:14 compat/
dr-xr-xr-x  10 root  wheel          512 Feb 20 09:57 dev/
-rw-------   1 root  wheel         4096 Dec  3 07:43 entropy
drwxr-xr-x  21 root  wheel         3072 Feb 22 09:15 etc/
drwxr-xr-x   6 root  wheel          512 Jan 26 22:31 home/
dr-xr-xr-x   2 root  wheel          512 Feb 20 17:46 host/
drwxr-xr-x   3 root  wheel         1536 Feb 20 15:55 lib/
drwxr-xr-x   3 root  wheel          512 Aug  2  2014 libexec/
drwxr-xr-x   5 root  wheel          512 Oct 26 08:01 media/
drwxr-xr-x   2 root  wheel          512 Jul 10  2014 mnt/
dr-xr-xr-x   2 root  wheel          512 Feb 26 11:59 net/
dr-xr-xr-x   1 root  wheel            0 Feb 26 12:01 proc/
drwxr-xr-x   2 root  wheel         2560 Oct 28 10:33 rescue/
drwxr-xr-x  15 root  wheel         1024 Feb 22 09:14 root/
drwxr-xr-x   2 root  wheel         2560 Oct 28 10:33 sbin/
lrwxr-xr-x   1 root  wheel           11 Jul 10  2014 sys@ -> usr/src/sys
drwxrwxrwt  10 root  wheel          440 Feb 26 12:01 tmp/
drwxr-xr-x  16 root  wheel          512 Aug  2  2014 usr/
drwxr-xr-x  25 root  wheel          512 Feb 20 09:57 var/
[wam at kabini1, ~, 12:01:39pm] 571 %

So am I supposed to have /media group writable ? I did so & same issue ....

-- 

	William A. Mahaffey III

  ----------------------------------------------------------------------

	"The M1 Garand is without doubt the finest implement of war
	 ever devised by man."
                            -- Gen. George S. Patton Jr.



More information about the freebsd-questions mailing list