problems mounting camera to download pics ....

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


On 02/26/15 12:09, Polytropon wrote:
> On Thu, 26 Feb 2015 12:04:15 -0600, William A. Mahaffey III wrote:
>> 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 %
> I didn't find the "users" option in "man mount" or "man mount_msdosfs",
> what is it supposed to do? What if you temporarily remove it?

A linuxism :-/ .... makes no difference either way, other than the 
parsing error .... It's supposed to allow regular users to mount that 
resource ....

>
>
>>>> 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 essential to solve the problem, but might be helpful for
> further usage.
>
>
>
>>>> 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
>> [...]
>> drwxr-xr-x   5 root  wheel          512 Oct 26 08:01 media/
>> [...]
>> So am I supposed to have /media group writable ? I did so & same issue ....
> I think so. You can test this by temporarily chown'ing the
> whole /media subtree to your user, and then run the command
> as user (given that vfs.usermount is already set).
>
> You can find more info here (regarding user mount):
>
> https://www.freebsd.org/doc/handbook/usb-disks.html
>

Hmmmm .... this looks rather involved, I think I'll punt. I can get 
stuff mounted by root, & I usually have a root window open, so I'm OK as 
is. Thanks :-) ....

-- 

	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