Can not mount a 64GByte exFAT SDXC card from my IPCam

If none of the more specific forums is the right place to ask

Can not mount a 64GByte exFAT SDXC card from my IPCam

Postby linux4michelleWeb » 2020-05-29 22:00

Good evening,

After searching the Internet and trying everything I found,
I have to ask here, because it minght be a Debian problem.

I am in te group "disk" and have in my /etc/fstab

UUID=3131-3765 /media/IPCam exfat defaults,user,noauto 0 0

and I have also tried

UUID=3131-3765 /media/IPCam exfat-fuse defaults,user,noauto 0 0

But I still get the error message

$ mount /media/IPCam
FUSE exfat 1.3.0
ERROR: failed to open '/dev/sdc1': Permission denied.

I get the error also if I set UID/GID in the fstab which is not nice, because I am not the only user here.

Any suggestions?

Thanks in advance
Michelle
linux4michelleWeb
 
Posts: 29
Joined: 2019-07-15 15:41
Location: Estonia

Re: Can not mount a 64GByte exFAT SDXC card from my IPCam

Postby eriefisher » 2020-05-29 22:20

Which version of Debian are you using and which desktop/file manager. It should be auto mounted assuming you have the correct utilities installed and it looks like you do. exfat-utils, exfat-fuse..... Card reader issue maybe?
____________________________________________
There's a manual?
Siduction
Debian Sid
Xfce4 4.14
User avatar
eriefisher
 
Posts: 114
Joined: 2008-06-04 03:49
Location: Ontario's South Coast

Re: Can not mount a 64GByte exFAT SDXC card from my IPCam

Postby LE_746F6D617A7A69 » 2020-05-29 22:33

Who told You that You need fstab entry for the SD card?
Remove that fstab entry and everything should work correctly (You will be able to mount it from any file manager)

.
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed
LE_746F6D617A7A69
 
Posts: 184
Joined: 2020-05-03 14:16

Re: Can not mount a 64GByte exFAT SDXC card from my IPCam

Postby linux4michelleWeb » 2020-05-30 04:46

I use Debian 10.4 and my Desktop is FVWM.

I need to mount my SDXC cards from the terminal/console.

When I got the error message, that exfat is unknown, I searched the Internet and installed exfat-utils and exfat-fuse.

But now I CAN MOUNT this thing ONLY AS ROOT, not as an ordinary user.
Putting UID and GID into the fstab is no option, because I am not the only user.

The USB CardReader support at least the Sandisk 200GByte and 256GByte microSDXC cards.

Thanks for your help
and nice weekend
linux4michelleWeb
 
Posts: 29
Joined: 2019-07-15 15:41
Location: Estonia

Re: Can not mount a 64GByte exFAT SDXC card from my IPCam

Postby linux4michelleWeb » 2020-05-30 04:55

As root:

Code: Select all
root@t400:/media# mount IPCam
FUSE exfat 1.3.0
Press any key to continue...

root@t400:/media# df -m
Filesystem     1M-blocks   Used Available Use% Mounted on
udev                1916      0      1916   0% /dev
tmpfs                385      1       384   1% /run
/dev/block/8:2      9324   8659       649  94% /
tmpfs                  5      1         5   1% /run/lock
tmpfs               1532    402      1130  27% /dev/shm
/dev/sda5           9323     49      8782   1% /tmp
/dev/sda6         125312 124583       714 100% /home
/dev/sdc1          60890     17     60874   1% /media/IPCam


and as you can see, it works. No hardware problems.

I have also re-tried the automounting from udev, which generally work if I insert the USB reader, BUT I must umount it as root!
linux4michelleWeb
 
Posts: 29
Joined: 2019-07-15 15:41
Location: Estonia

Re: Can not mount a 64GByte exFAT SDXC card from my IPCam

Postby Head_on_a_Stick » 2020-05-30 09:22

Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12194
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Can not mount a 64GByte exFAT SDXC card from my IPCam

Postby oswaldkelso » 2020-05-30 09:40

You didn't say what file manager you use. If like many window manager users your system is more minimalist your file manager may not mount things. I suspect installing udevil would be an easy fix.

https://packages.debian.org/buster/udevil

https://ignorantguru.github.io/udevil/
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
User avatar
oswaldkelso
 
Posts: 1250
Joined: 2005-07-26 23:20
Location: UK

Re: Can not mount a 64GByte exFAT SDXC card from my IPCam

Postby linux4michelleWeb » 2020-05-30 09:53

installed and I am ALREADY in group plugdev but:

Code: Select all
michelle.konzack@t400:/media$ pmount /dev/sdc1 /media/IPCam
bash: /usr/bin/pmount: Permission denied


has a 64GBYte exFAT filesystem on the microSDXC card

Code: Select all
michelle.konzack@t400:/media$ pmount /dev/sr0 /media/Huawei
bash: /usr/bin/pmount: Permission denied


has 32 GByte iso9660 filesystem but it seems, Huawei has made two root partitions on it

Any suggestions?
linux4michelleWeb
 
Posts: 29
Joined: 2019-07-15 15:41
Location: Estonia

Re: Can not mount a 64GByte exFAT SDXC card from my IPCam

Postby linux4michelleWeb » 2020-05-30 10:03

Head_on_a_Stick wrote:https://packages.debian.org/buster/pmount


Grmpf, I am probably hit bei:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=961705
linux4michelleWeb
 
Posts: 29
Joined: 2019-07-15 15:41
Location: Estonia

Re: Can not mount a 64GByte exFAT SDXC card from my IPCam

Postby linux4michelleWeb » 2020-05-30 10:04

oswaldkelso wrote:You didn't say what file manager you use. If like many window manager users your system is more minimalist your file manager may not mount things. I suspect installing udevil would be an easy fix.

https://packages.debian.org/buster/udevil

https://ignorantguru.github.io/udevil/


Midnight Commander
linux4michelleWeb
 
Posts: 29
Joined: 2019-07-15 15:41
Location: Estonia

Re: Can not mount a 64GByte exFAT SDXC card from my IPCam

Postby linux4michelleWeb » 2020-05-30 10:15

There is something wrong:


michelle.konzack@t400:/media$ udevil mount /dev/sdc1 /media/IPCam
udevil: denied 71: '/media' is not an allowed media directory

michelle.konzack@t400:/media$ udevil mount /dev/sr0 /media/Huawei
udevil: denied 71: '/media' is not an allowed media directory


Hmmm, using Crystal-GOOGLE:

Why is in Debian "/media" not in "allowed_media_dirs"?

Adding it let me mount also the exFAT...

Now I have only to find out, how to switch to the second root of my Huawei
linux4michelleWeb
 
Posts: 29
Joined: 2019-07-15 15:41
Location: Estonia

Re: Can not mount a 64GByte exFAT SDXC card from my IPCam

Postby Head_on_a_Stick » 2020-05-31 12:48

linux4michelleWeb wrote:installed and I am ALREADY in group plugdev but:

Code: Select all
michelle.konzack@t400:/media$ pmount /dev/sdc1 /media/IPCam
bash: /usr/bin/pmount: Permission denied

https://wiki.debian.org/pmount
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12194
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Can not mount a 64GByte exFAT SDXC card from my IPCam

Postby p.H » 2020-05-31 16:18

linux4michelleWeb wrote:I am in te group "disk"

I advise against adding a normal user to the "disk" group. It grants the user the privilege to read and write any part of a disk or partition and cause major damage by mistake.

linux4michelleWeb wrote:ERROR: failed to open '/dev/sdc1': Permission denied.

Did you start a new user session ? Adding a user to a group does not take effect in the current session.

linux4michelleWeb wrote:I get the error also if I set UID/GID in the fstab

uid/gid mount options only have an effect on file access inside the mounted filesystem, not on the underlying device.

I did a bit of testing. The same "permission denied" error message happens also with NTFS (ntfs-3g), so I guess this is general to FUSE filesystems. After adding the user to the "disk" group (for testing only !) and opening a new session, the error message changed, requiring to do a change in /etc/fuse.conf. Then the error message changed again, fusermount complaining about the option "user=<username>" being not supported. It seems that mount.exfat calls fusermount with this wrong option when run by a non-root user. Well, I'm afraid this is a bug and one cannot mount an exFAT filesystem without root privileges.

LE_746F6D617A7A69 wrote:Who told You that You need fstab entry for the SD card?
Remove that fstab entry and everything should work correctly (You will be able to mount it from any file manager)
.

Who told you the OP uses a file manager ?

linux4michelleWeb wrote:I have also re-tried the automounting from udev, which generally work if I insert the USB reader, BUT I must umount it as root!

You must use the "users" option instead of "user" to allow any user to unmount a filesystem mounted by another user.
p.H
 
Posts: 1383
Joined: 2017-09-17 07:12

Re: Can not mount a 64GByte exFAT SDXC card from my IPCam

Postby LE_746F6D617A7A69 » 2020-05-31 19:16

p.H wrote:Who told you the OP uses a file manager ?
This:
linux4michelleWeb wrote:Putting UID and GID into the fstab is no option, because I am not the only user.

Do You expect that a *normal* users will use the terminal to mount that SD card?

p.H wrote:You must use the "users" option instead of "user" to allow any user to unmount a filesystem mounted by another user.

No. It should work OOTB - if it's not working, then we have a BUG (although, I'm able to mount exFAT and ntfs-3g filesystems on Buster without a problem - it seems like the OP have changed the configuration of the OS to the point which have broke something...)
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed
LE_746F6D617A7A69
 
Posts: 184
Joined: 2020-05-03 14:16

Re: Can not mount a 64GByte exFAT SDXC card from my IPCam

Postby linux4michelleWeb » 2020-06-02 03:40

I do not know, what I have done,

but instead using the provided USB SXDC card reader,
I retried the Internal SDCard reader from my T400 (was not working before Buster)
and oh wonder, I simply mount /dev/mmcblk0p1 and it just works.

FUSE exFAT was used automagical.

Thanks for your Help
Michelle
linux4michelleWeb
 
Posts: 29
Joined: 2019-07-15 15:41
Location: Estonia


Return to General Questions

Who is online

Users browsing this forum: No registered users and 16 guests

fashionable