You are not logged in.

#1 2020-09-30 03:51:06

wpkzz
Member
Registered: 2020-01-10
Posts: 43

[Solved ] Succesive problems with exFAT SD card and FUSE

Okey team, I have this issue that "i had never had before".

I have this slot where I can introduce SD cards in my laptop, with an adapter I use to put the SD card from my phone.
Now, I distinctly recall that with the previous kernel (5.8.8 or something like that),the memory got detected as

/dev/sdc1

and my fstab had the following entry:

/dev/sdc1		/media/espalda1	auto		noauto,user,rw	0 0

and I did mount it to fill it with music and emtpy it from photos, with a simple

mount /media/espalda1

as users.
As today, I performed a global update/upgrade of the system.
Now i have kernel 5.8.12-arch1-1.
I tried to mount the SD card, and I got a wonderfull "unkown filetype system: exFAT" or something like that.
So I pacman'ed the exfat-utils.

So, if I try a simple mount as normal user, I cannot, I do not have the permisions

karel@monstruona ~ $ mount /media/espalda1/
FUSE exfat 1.3.0
ERROR: failed to open '/dev/sdc1': Permission denied.

If i try to mount it with fusermount, it says that

fusermount: old style mounting not permited

If I mount it as root, then I can browse the directorys in the SD card as user, but
NOT the files!!! if I make an ls in a directoy with files, it says that it

karel@monstruona Camera $ ls
ls: leyendo el directorio '.': Error de entrada/salida

Which is spanish for "Error of input/output".

I googled the thing about old style mounting not permited and I found nothing useful.

1) I seem to be unable to understand the manuals of fuse, because I cannot find how to give myself the permissions.
2) I seem to be unable to understand the manuals of fuse, because I do not find anything related to "old style".

Any guidance would be kindly appreciated. Also if someone has a tutorial of FUSE I would like to read it...

Thank you in advance.

Last edited by wpkzz (2020-10-07 18:42:16)


Moyocoyani, Tloque Nahuaque.

Offline

#2 2020-09-30 05:59:06

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 596

Re: [Solved ] Succesive problems with exFAT SD card and FUSE

First of all /dev/sdc1 is not persistent, see the warning in https://wiki.archlinux.org/index.php/Fs … escriptors .

Did you perhaps update the kernel but didn't reboot afterwards?
Also you shouldn't need the FUSE driver for exFAT, the kernel has a exfat module. Replace exfat-utils with exfatprogs.

Offline

#3 2020-09-30 15:39:38

wpkzz
Member
Registered: 2020-01-10
Posts: 43

Re: [Solved ] Succesive problems with exFAT SD card and FUSE

Okey, that is good start, but in my case it seems to be persistent. I did reboot the kernel. And I did reboot the computer, turn it down, go to sleep, and restart it the following day. The same errors.
But it seems that I forgot some info. I am begining to suspect that the culprit is the SD card, it may be damaged.
A month ago, I did use that card WITHOUT exfat anything installed, i copied some videos from it to my laptop and i did upload music from the laptop to the card without issues.
Now, as i have explored further, I can see two things: in others directories, "ls" does give filenames and such. It is just the "DCIM/Camera" directory that seems to give the error.

Can it be that the card is NOT exFAT but other thing and due to damage it gets recognized as exFAT?
Can I hope to repair and get my photos out of it?

Should I remove fuse2? It gets listed as dependant on exfat-utils?

mmm i removed exfat-utils and replaced it with exfatprogs... now I do not detect the partitions on the SD card:
Output of dmesg:

[ 1035.418494] sd 6:0:0:0: [sdc] Attached SCSI removable disk
[ 1057.010383] usb 1-1.4: USB disconnect, device number 10
[ 1071.786823] usb 1-1.4: new high-speed USB device number 11 using ehci-pci
[ 1071.886331] usb 1-1.4: New USB device found, idVendor=058f, idProduct=6366, bcdDevice= 1.00
[ 1071.886337] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1071.886340] usb 1-1.4: Product: Flash Card Reader/Writer
[ 1071.886342] usb 1-1.4: Manufacturer: Generic
[ 1071.886345] usb 1-1.4: SerialNumber: 058F63666435
[ 1071.886838] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[ 1071.887397] scsi host6: usb-storage 1-1.4:1.0
[ 1073.039401] scsi 6:0:0:0: Direct-Access     Multiple Card  Reader     1.00 PQ: 0 ANSI: 0
[ 1073.499030] sd 6:0:0:0: [sdc] Attached SCSI removable disk

...
okey after a few tries it DID detect it but with a warning:

[ 1201.057787] sd 6:0:0:0: [sdc] 121319424 512-byte logical blocks: (62.1 GB/57.8 GiB)
[ 1201.058893] sd 6:0:0:0: [sdc] Write Protect is off
[ 1201.058898] sd 6:0:0:0: [sdc] Mode Sense: 03 00 00 00
[ 1201.059984] sd 6:0:0:0: [sdc] No Caching mode page found
[ 1201.059987] sd 6:0:0:0: [sdc] Assuming drive cache: write through
[ 1201.089573]  sdc: sdc1
[ 1201.093686] sd 6:0:0:0: [sdc] Attached SCSI removable disk

aaaaaand it works. I could mount it as user.
¿Is this Solved? I think not thoroughly. It is still too weird for me.

Let me see about the warning.

Thanks nl6720


Moyocoyani, Tloque Nahuaque.

Offline

#4 2020-09-30 17:06:14

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 596

Re: [Solved ] Succesive problems with exFAT SD card and FUSE

It does sound like a hardware issue (of the card or the reader).

You previous didn't need to have anything installed because you were using the kernel's driver (the exfat module), but once you installed exfat-utils you were using the FUSE driver instead. I suggested installing exfatprogs as way to get rid of exfat-utils.
For file systems that Linux supports natively, you don't really need any additional packages (userspace utilities) to access the file system. You mostly only need them to create or manipulate the file system and also for fsck.

Edit:
If nothing requires fuse2, you can uninstall it.

Last edited by nl6720 (2020-09-30 17:07:56)

Offline

#5 2020-09-30 19:26:57

wpkzz
Member
Registered: 2020-01-10
Posts: 43

Re: [Solved ] Succesive problems with exFAT SD card and FUSE

But, then, why it said "unknown filesystem type" before I installed either of the packages?
And why  did  it not happen a month ago?

Did the kernel changed it's behavior towards exFAT?

I shall remove fuse2 and see if something changes.


Moyocoyani, Tloque Nahuaque.

Offline

#6 2020-09-30 19:47:14

frostschutz
Member
Registered: 2013-11-15
Posts: 1,418

Re: [Solved ] Succesive problems with exFAT SD card and FUSE

exfat in kernel is a very recent development during this year, it's not available in linux-lts yet and still sees frequent changes and improvements (actively maintained).

it should work fine in latest kernels...

your output looks normal to me.

Offline

Board footer

Powered by FluxBB