Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Flash-based Devices Not Mounted Under Buster

Linux Kernel, Network, and Services configuration.
Message
Author
CwF
Global Moderator
Global Moderator
Posts: 2638
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: Flash-based Devices Not Mounted Under Buster

#21 Post by CwF »

Not sure from here...I think it's in the udev or usbid department...not much help, sorry.

I confirmed, an older camera plugged into usb3 did nothing until I powered on the camera.
> showed up on the desktop as a 2.0 GB volume on a stretch hypervisor
>> passed it to a buster vm, as Konika whatever, it showed up on the desktop the same, and a double click opened in spacefm, i could view the pics...works fine...

I *think* usb storage is never mounted until clicked to do so. So a right click shows the mount option, a double click for me does mount & open in the declared FM.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Flash-based Devices Not Mounted Under Buster

#22 Post by GarryRicketson »

Last night I got the new computer and installed Debian 9.8 netinstall to the 2nd drive, and then installed XFCE4, all usb devices, including camera showed fine on the Desktop.
So then I upgraded, dist upgrade to Debian Buster/testing, and still no problems , the camera and other usb devices all show on the Desktop. None are auto mounted, by my choice, the camera mounts fine, if and when I select the mount option.
I did notice one thing that seemed odd, if I umounted the camera, unplugged it and the re-plugged it, and turned it on, it showed on the Desktop, but with a disk type icon, that normally represents a CD/DVD device.
Also if the camera was not turned on, obviously it was not detected, that is normal with this particular camera. Samsung 5x inexpensive, bought at a walmart.
All though the OP thinks Shotwell is not related to this, that is a factor that is different, and I am not going to install shotwell, I have no reason or desire to.
Nomacs and ImageMagick work fine for viewing,editing the images in the camera, and simple CLI, 'mv', to put selected photos into my Images dir, as desired is all I use for that. So , any way, guess that does not help the OP much, but it does seem to indicate to me, it is not Debian Buster, or XFCE4.
Hope the OP figures it out.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Flash-based Devices Not Mounted Under Buster

#23 Post by GarryRicketson »

Last night I did install "shotwell", seems to work fine, and my camera still shows on the Desktop, ... maybe a re-fresh, update,upgrade, now that Debian Buster is stable and released ?
Image
^Before turning on the camera
Image
After ^ turning on the camera, note it is the 4gb disc icon.

KitchM
Posts: 170
Joined: 2019-06-11 18:11

Re: Flash-based Devices Not Mounted Under Buster

#24 Post by KitchM »

I'm a little new to Debian, so I'm not sure about automatic upgrades. Nothing has ever shown up that there is a new version of anything available to install. Evidently Buster testing becomes Buster stable automatically. sudo apt update and sudo apt upgrade finds nothing new. I must assume I am up to date on everything.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Flash-based Devices Not Mounted Under Buster

#25 Post by GarryRicketson »

Well, I am not a big fan of "assuming" anything, and don't use any "auto updates, or upgrades", but yes , you are right, no new updates or upgrades have been made available recently, and probably there will be none for a while now, since Buster is now stable .
Later there may be some, that resolve some of the current "bugs", etc,..in which case your "auto Upgrade" should advise you of that.
Maybe you would be interested to read some of the results from these key words, :

Code: Select all

How can I check and see if there are updates or upgrades available for Debian Stable 
https://wiki.debian.org/StableUpdates
You can check for new available updates here: https://lists.debian.org/debian-stable-announce/
Or just keep assuming the "auto update" will advise you.
At this time , there is nothing new for July:
https://lists.debian.org/debian-stable- ... reads.html
The above is for packages, below, for security updates:
https://www.debian.org/security/
The only one I see is involving Dosbox, if you are using that, you should update.

KitchM
Posts: 170
Joined: 2019-06-11 18:11

Re: Flash-based Devices Not Mounted Under Buster

#26 Post by KitchM »

The bottom line is that we can rule out that the OS needs upgrading.

So what does that leave us?

CwF
Global Moderator
Global Moderator
Posts: 2638
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: Flash-based Devices Not Mounted Under Buster

#27 Post by CwF »

I'm unclear - does shotwell browse the camera storage ok?

I have duplicated the issue. The handshake for usb storage is not always completing. In my case the screen on the camera shows 'usb initializing...' Never goes out. My host OS sees it with lsusb, passed to the guest, it sees it, and back. Neither desktop shows the storage icon on the desktop during this episode. As of yet I can't determine who's dropping the ball, camera or the os.

Other than my shotwell question, the next narrowing is to try consecutively if you can on two OS's, Buster and any you say is working. If it consistently doesn't work on Buster and does on the other choice with back to back test, yes-no-yes-no-etc, then you will narrow it down to camera or os.

In my case, subsequent attempts did work, so I have no way to compare a CONSISTENTLY broken condition. As soon as the camera's display message disappears the desktop icon appears. I have to suspect the camera.

KitchM
Posts: 170
Joined: 2019-06-11 18:11

Re: Flash-based Devices Not Mounted Under Buster

#28 Post by KitchM »

I have had your experience in the past, where the desktop icon appears after Shotwell is done with the device. But that no longer appears. Simply nothing happens to create the desktop icon. In this, it is very consistent.

KitchM
Posts: 170
Joined: 2019-06-11 18:11

Re: Flash-based Devices Not Mounted Under Buster

#29 Post by KitchM »

More information from dmesg:
00:15:00.0/usb1/1-2/1-2.4/1-2.4.2/1-2.4.2:1.1/0003:1EA7:0066.002C/input/input71
[34614.105266] hid-generic 0003:1EA7:0066.002C: input,hiddev0,hidraw1: USB HID v1.10 Mouse [2.4GHz keyboard and mouse] on usb-0000:15:00.0-2.4.2/input1
[35096.648226] usb 1-2.1: new high-speed USB device number 46 using xhci_hcd
[35096.885095] usb 1-2.1: New USB device found, idVendor=04a9, idProduct=314f, bcdDevice= 0.02
[35096.885097] usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[35096.885098] usb 1-2.1: Product: Canon Digital Camera
[35096.885099] usb 1-2.1: Manufacturer: Canon Inc.
[35096.885099] usb 1-2.1: SerialNumber: 69FC80F9C7754059874B0EC144CF168A
[35395.869722] usb 1-2.1: USB disconnect, device number 46
[36190.923429] usb 1-2.1: new high-speed USB device number 47 using xhci_hcd
[36191.156136] usb 1-2.1: New USB device found, idVendor=04a9, idProduct=314f, bcdDevice= 0.02
[36191.156137] usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[36191.156138] usb 1-2.1: Product: Canon Digital Camera
[36191.156139] usb 1-2.1: Manufacturer: Canon Inc.
[36191.156140] usb 1-2.1: SerialNumber: 69FC80F9C7754059874B0EC144CF168A
[36356.499390] usb 1-2.1: USB disconnect, device number 47
[36360.416788] usb 1-2.1: new high-speed USB device number 48 using xhci_hcd
[36360.648917] usb 1-2.1: New USB device found, idVendor=04a9, idProduct=314f, bcdDevice= 0.02
[36360.648919] usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[36360.648920] usb 1-2.1: Product: Canon Digital Camera
[36360.648921] usb 1-2.1: Manufacturer: Canon Inc.
[36360.648921] usb 1-2.1: SerialNumber: 69FC80F9C7754059874B0EC144CF168A

So, it is seen by the OS.

CwF
Global Moderator
Global Moderator
Posts: 2638
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: Flash-based Devices Not Mounted Under Buster

#30 Post by CwF »

more direct

Code: Select all

lsusb -d 04a9:314f
Successful dmesg looks like:

Code: Select all

4643104.487520] usb 1-2: Manufacturer: KONICA MINOLTA
[4643104.489571] usb-storage 1-2:1.0: USB Mass Storage device detected
[4643104.489826] scsi host8: usb-storage 1-2:1.0
[4643105.518407] scsi 8:0:0:0: Direct-Access     KM       DiMAGE Z3        1.00 PQ: 0 ANSI: 0 CCS
[4643105.518986] sd 8:0:0:0: Attached scsi generic sg6 type 0
[4643105.520796] sd 8:0:0:0: [sdg] 3841821 512-byte logical blocks: (1.97 GB/1.83 GiB)
Failure looks like:
[4641537.069850] sdg: sdg1
[4641537.069854] sdg: p1 size 3841821 extends beyond EOD, enabling native capacity
[4641537.094313] sdg: sdg1
[4641537.094317] sdg: p1 size 3841821 extends beyond EOD, truncated
[4641537.098460] sd 8:0:0:0: [sdg] Attached SCSI removable disk
[4641538.682168] usb 1-2: reset full-speed USB device number 17 using xhci_hcd
[4641572.414467] usb 1-2: USB disconnect, device number 17
[4641572.428442] sd 8:0:0:0: [sdg] tag#0 FAILED Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[4641572.428447] sd 8:0:0:0: [sdg] tag#0 CDB: Read(10) 28 00 00 3a 9c 80 00 00 48 00
So in my case, that the hang up, a read error, bad format, whatever. So look for these types of errors. It might be worthwhile to reformat the storage of the camera if there is the option, if you see such errors.. So thank you for finding my problem I didn't know I had! Otherwise, I'm faily confident the issue is buggy firmware on the camera. A different driver could be more tolerant of timings or resets maybe, those quirks need real test on the real device...so that's you. keep digging.

Back to earlier comments expanded, the usb storage enumeration fails so no desktop icon. Shotwell is evidently successfully resetting the device.

KitchM
Posts: 170
Joined: 2019-06-11 18:11

Re: Flash-based Devices Not Mounted Under Buster

#31 Post by KitchM »

Just wanted to post an update for everyone. With the newest Debian 10 update, any USB device which is plugged into the system is immediately recognized with an appropriate icon placed on the desktop, unmounted. That's nice. It makes it extra nice because any device can be removed without having to eject or unmount it.

The Shotwell program does not automatically start up when the camera is plugged in, but that is likely a problem with specific actions not being associated with the plugin. Probably a Xfce issue.

Thanks to all.

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: Flash-based Devices Not Mounted Under Buster

#32 Post by Dai_trying »

KitchM wrote:It makes it extra nice because any device can be removed without having to eject or unmount it.
I do not think this is strictly true, you still need to have the device unmounted before removal (unless you want to create a failed usb device) and ejecting a device will do this for you, but something definitely must be done before pulling out a device that is mounted.

CwF
Global Moderator
Global Moderator
Posts: 2638
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: Flash-based Devices Not Mounted Under Buster

#33 Post by CwF »

Dai_trying wrote: but something definitely must be done before pulling out a device that is mounted.
No, that's part of the spec of being USB, it is suppose to survive being yanked. The distinction is ACTIVE verses mounted. It is nice to unmount first, so do it, but it should not be required for a mounted and inactive device. If you set up the caching right, same goes for hot-pluggable sata.
My xfce's have worked fine in 9 and 10.

KitchM
Posts: 170
Joined: 2019-06-11 18:11

Re: Flash-based Devices Not Mounted Under Buster

#34 Post by KitchM »

Yes, CwF, you are quite correct.

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: Flash-based Devices Not Mounted Under Buster

#35 Post by Dai_trying »

:oops: I was sure I had failures when removing devices when being written to, but thinking about it after reading ^^ it was just the filesystem that was messed up and I reformatted it. But that aside I would never remove any device that was still mounted (not intentionally that is).

KitchM
Posts: 170
Joined: 2019-06-11 18:11

Re: Flash-based Devices Not Mounted Under Buster

#36 Post by KitchM »

Well, yes, I suppose there is a risk during file write. However, I only remove when all writing is done. I have found it to be a problem under Windows and some distros and apps that use a write-behind system. I hate those. Writing is so important, it must have priority. With newer processors however, this should be a concurrent process while other things are happening at the same time. This means there should be no delay and no reason why there would be an issue.

Again, please remember that my comment only had to do with unmounted drives, which can be yanked out at any point in time.

LE_746F6D617A7A69
Posts: 932
Joined: 2020-05-03 14:16
Has thanked: 7 times
Been thanked: 65 times

Re: Flash-based Devices Not Mounted Under Buster

#37 Post by LE_746F6D617A7A69 »

KitchM wrote:Well, yes, I suppose there is a risk during file write.
http://forums.debian.net/viewtopic.php? ... 54#p625978
.
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

Post Reply