From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DF310159C9B for ; Thu, 1 Aug 2024 10:24:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 84D00E2A86; Thu, 1 Aug 2024 10:24:42 +0000 (UTC) Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0E278E2A7C for ; Thu, 1 Aug 2024 10:24:41 +0000 (UTC) Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-67682149265so56052757b3.2 for ; Thu, 01 Aug 2024 03:24:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722507881; x=1723112681; darn=lists.gentoo.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=lUpkQnjKvVLwPE8GAsa7wn1viT7vPfeTf9llzulRiUA=; b=mTVeheg5dPxr4UHHukSmiVtHbBl+DxHV0ZtCWLpMeALyHXLQfhil2DK+CPsJObhdYI 9Gb/Azvq8HVEnoM0yOlakBDyrd0FrowDB8N1+CeagxNhz3mQOBqSONbJgmT5P9yNhWdV tnEHqrq1ze6XDiwU27H2MdY2pagCiW3yMllh3sHJCvTpUBRLu+0BhTQfttG63izSjdmL b2fU1khZLBHn1GU/AXh7csFQnmlp/id/yV8LIhuMetoygqQX3ww9IDiHskOgnch+Qe31 1MNTlpXYWt9J+XwgoGEOUm4RZwsyXx6SwJDxASPU/Cl+3WZ9N8cKljqVpUniXiwifzEw lriw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722507881; x=1723112681; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lUpkQnjKvVLwPE8GAsa7wn1viT7vPfeTf9llzulRiUA=; b=ECZBdjarzz+YgiCag9PYNTSx/9jkD/Rk3RkZJieEmnQ/9sPvmysQAaDizKD7ZrLw76 GuRx8QtZVskk94lhfjVxJRtCCbSnm/6pnU84fiO6+CwDOuj8rVI4De0PTMKhOgUIcOoI XE9+g5bV6m1non6Pgvx0K0pVImbXoDO/uhiqp3pgHqxJCA9UXFbUi1xt7TBge2ZhxZHj 2BTss8LGVXbolaZ+5ilek33Pk95KckdrR9jcj0zPHi/oKMxLfvyZtXWyboHMSDRRhuin 7QJxN/c33k4CAsX3hcZ5VIj0fq9Ijr7yvDcSyhQWlKHxtNfDvQGX8shMtgcqQyt5LbCb 6nmA== X-Gm-Message-State: AOJu0YxQXq3oECKFiq9eFwjGDhri1Xof1JVIR3HjrG/65DnJILGsMvhD aNWOrlNvJR1XsFqxAbvf/CNFpZr23PXVkBcEcvmRblh4AF1Jj64Ul8fo4Mpp6o4PNRvtK5E6N9r DZiC1QkljlyR5I9GYfNJr+/K8ZjD80GC3 X-Google-Smtp-Source: AGHT+IHuIMaTSJdmIwR6PWNVuLeZIQbBrLZ4hfqk66bjX88V6kZtg/f6KSL3lAst8q1Q1D+/K4FZ5y1F8EU0pMOn5xM= X-Received: by 2002:a81:c250:0:b0:64b:630f:9f85 with SMTP id 00721157ae682-6874acd3a87mr13771867b3.12.1722507880673; Thu, 01 Aug 2024 03:24:40 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: <2277785.iZASKD2KPV@rogueboard> <23600569.6Emhk5qWAg@rogueboard> In-Reply-To: <23600569.6Emhk5qWAg@rogueboard> From: Jacques Montier Date: Thu, 1 Aug 2024 12:24:29 +0200 Message-ID: Subject: Re: [gentoo-user] auto-mounting external usb disk problem To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary="00000000000059bca3061e9c9ecb" X-Archives-Salt: 4064656f-c3f6-4c23-9986-4fea58e3d6c6 X-Archives-Hash: 031d3b5f9e150ebcfa7bb01e0fa1a011 --00000000000059bca3061e9c9ecb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le mer. 31 juil. 2024 =C3=A0 18:46, Michael a = =C3=A9crit : > On Wednesday, 31 July 2024 17:37:17 BST Jacques Montier wrote: > > Le mer. 31 juil. 2024 =C3=A0 16:49, Michael = a > =C3=A9crit : > > > On Wednesday, 31 July 2024 10:36:20 BST Jacques Montier wrote: > > > > Hello all, > > > > > > > > For a few days, my two usb external disks do not automatically moun= t > on > > > > /run/media/ > > > > > > Have you changed your PC, USB port/hub, kernel or your udisks version= , > > > before > > > you noticed this? > > > > > > If you observed this on a laptop, does it happen when mains power is > on? > > > > > > > Those disks are successfully detected. > > > > > > > > - dmesg : > > > > 20.711135] usb 10-2: New USB device found, idVendor=3D1058, > > > > > > > > idProduct=3D2621, bcdDevice=3D10.34 > > > > [ 20.711144] usb 10-2: New USB device strings: Mfr=3D1, Product= =3D2, > > > > SerialNumber=3D3 > > > > [ 20.711147] usb 10-2: Product: Elements 2621 > > > > [ 20.711150] usb 10-2: Manufacturer: Western Digital > > > > [ 20.711152] usb 10-2: SerialNumber: 575837324139315041324831 > > > > [ 20.712935] usb-storage 10-2:1.0: USB Mass Storage device detect= ed > > > > [ 20.713081] scsi host14: usb-storage 10-2:1.0 > > > > [ 21.740964] scsi 14:0:0:0: Direct-Access WD Elements > 2621 > > > > > > > > 1034 PQ: 0 ANSI: 6 > > > > > > > > [ 21.741163] sd 14:0:0:0: Attached scsi generic sg6 type 0 > > > > [ 21.743671] sd 14:0:0:0: [sde] Spinning up disk... > > > > [ 22.764230] ....ready > > > > > > > [ 25.936769] sd 14:0:0:0: [sde] 3906963456 512-byte logical block= s: > > > (2.00 > > > > > > > TB/1.82 TiB) > > > > [ 25.937331] sd 14:0:0:0: [sde] Write Protect is off > > > > [ 25.937337] sd 14:0:0:0: [sde] Mode Sense: 47 00 10 08 > > > > [ 25.937831] sd 14:0:0:0: [sde] No Caching mode page found > > > > [ 25.937836] sd 14:0:0:0: [sde] Assuming drive cache: write throu= gh > > > > [ 25.939868] sde: sde1 > > > > > > > > - Some errors by journalctl (attached file) > > > > > > > > juil. 31 11:21:00 GentooLinux udisksd[1178]: Error probing device: > Error > > > > sending ATA command IDENTIFY DEVICE to '/dev/sde': Unexpected> > > > > > > > > 0000: f0 00 01 00 00 > 00 00 > > > > > > 0a > > > > > > > 00 00 00 00 00 1d 00 00 ................ > > > > > > > > 0010: 00 00 00 00 00 > 00 00 > > > > > > 00 > > > > > > > 00 00 00 00 00 00 00 00 ................ > > > > > > > > (g-io-error-quark, 0) > > > > > > > > - I can manually mount them without any issue. > > > > > > > > - USB sticks successfully mount. > > > > > > > > - No problem with Linux Mint OS 23.1 > > > > > > > > Any idea ? > > > > > > > > Thanks in advance, > > > > > > > > Cheers, > > > > > > > > -- > > > > Jacques > > > > > > It often happens external USB drives need enough power to start up > fully, > > > before their onboard controller responds to probes from udisksd. If > > > something > > > (from PSU, to battery power, to kernel/desktop power management > options) > > > has > > > changed, to the point where the power on the USB port becomes margina= l, > > > then > > > such symptoms are possible. > > > > > > Things you could try: > > > > > > 1. Try a different USB port, ideally USB 3.0 or later version e.g. US= B > 3.2 > > > Gen2, which can provide more power. > > > > > > 2. Use a powered USB Hub between the PC and the drive, or a Y-shaped > USB > > > cable > > > to feed the drive from two ports. > > > > > > 3. If on a laptop, use mains power (esp. in the summer when the cooli= ng > > > fan > > > may be demanding more from the battery). > > > > > > 4. Remove other consumables from USB ports sharing the same bus. > > > > > > 5. Do not set your desktop to auto-mount USBs when you plug in, but > only > > > when > > > you manually click on it in your GUI. > > > > > > > > > Anecdotal observation: I have a WD Elements drive which I connect > through > > > an > > > external powered hub on a USB 2.0 port on the PC. Even though the hu= b > is > > > powered, I have to power it up first, wait a few seconds for the driv= e > to > > > come > > > up to speed (the LED flashing slows down), before I boot the PC. > > > Otherwise > > > it's a hit or miss affair for the PC to detect it. This got worse > after > > > some > > > months/years, although the drive itself has seen relatively little us= e. > > > > Thank you Michael, > > > > It's a desktop PC working with cinnamon 6. > > I tried KDE Plasma (wayland or X11) and it works ! > > So, maybe a cinnamon-6.0.4 issue ? > > > > Cheers, > > > > Jacques > > Looks like a possibility, if this started when you ran an update of the > desktop, or changed some cinnamon/gnome settings. Play around with the > auto- > mount USB drive options, to see if it corrects itself. Thanks Michael, I did not understand why an usb stick was automounted and not WD usb drive. I saw the one was fat32 formatted and WD ext4. So, i formatted fat32 another empty WD drive and it worked ! Last version of cinnamon could not automount ext4 drive ? That's weird. Well, it's not so important and in can deal with it. Cheers, Jacques --00000000000059bca3061e9c9ecb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
Le=C2=A0mer. 31 juil. 2024 =C3=A0=C2= =A018:46, Michael <confabulate@kintzios.com> a =C3=A9crit=C2=A0:
On Wednesday, 31 July 2024 17= :37:17 BST Jacques Montier wrote:
> Le mer. 31 juil. 2024 =C3=A0 16:49, Michael <confabulate@kintzios.com> a = =C3=A9crit :
> > On Wednesday, 31 July 2024 10:36:20 BST Jacques Montier wrote: > > > Hello all,
> > >
> > > For a few days, my two usb external disks do not automatical= ly mount on
> > > /run/media/<user>
> >
> > Have you changed your PC, USB port/hub, kernel or your udisks ver= sion,
> > before
> > you noticed this?
> >
> > If you observed this on a laptop, does it happen when mains power= is on?
> >
> > > Those disks are successfully detected.
> > >
> > > - dmesg :
> > >=C2=A0 =C2=A0 20.711135] usb 10-2: New USB device found, idVe= ndor=3D1058,
> > >
> > > idProduct=3D2621, bcdDevice=3D10.34
> > > [=C2=A0 =C2=A020.711144] usb 10-2: New USB device strings: M= fr=3D1, Product=3D2,
> > > SerialNumber=3D3
> > > [=C2=A0 =C2=A020.711147] usb 10-2: Product: Elements 2621 > > > [=C2=A0 =C2=A020.711150] usb 10-2: Manufacturer: Western Dig= ital
> > > [=C2=A0 =C2=A020.711152] usb 10-2: SerialNumber: 57583732413= 9315041324831
> > > [=C2=A0 =C2=A020.712935] usb-storage 10-2:1.0: USB Mass Stor= age device detected
> > > [=C2=A0 =C2=A020.713081] scsi host14: usb-storage 10-2:1.0 > > > [=C2=A0 =C2=A021.740964] scsi 14:0:0:0: Direct-Access=C2=A0 = =C2=A0 =C2=A0WD=C2=A0 =C2=A0 =C2=A0 =C2=A0Elements 2621
> > >
> > >=C2=A0 1034 PQ: 0 ANSI: 6
> > >
> > > [=C2=A0 =C2=A021.741163] sd 14:0:0:0: Attached scsi generic = sg6 type 0
> > > [=C2=A0 =C2=A021.743671] sd 14:0:0:0: [sde] Spinning up disk= ...
> > > [=C2=A0 =C2=A022.764230] ....ready
> >
> > > [=C2=A0 =C2=A025.936769] sd 14:0:0:0: [sde] 3906963456 512-b= yte logical blocks:
> > (2.00
> >
> > > TB/1.82 TiB)
> > > [=C2=A0 =C2=A025.937331] sd 14:0:0:0: [sde] Write Protect is= off
> > > [=C2=A0 =C2=A025.937337] sd 14:0:0:0: [sde] Mode Sense: 47 0= 0 10 08
> > > [=C2=A0 =C2=A025.937831] sd 14:0:0:0: [sde] No Caching mode = page found
> > > [=C2=A0 =C2=A025.937836] sd 14:0:0:0: [sde] Assuming drive c= ache: write through
> > > [=C2=A0 =C2=A025.939868]=C2=A0 sde: sde1
> > >
> > > - Some errors by journalctl (attached file)
> > >
> > > juil. 31 11:21:00 GentooLinux udisksd[1178]: Error probing d= evice: Error
> > > sending ATA command IDENTIFY DEVICE to '/dev/sde': U= nexpected>
> > >
> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 0000: f0 00 01 00=C2=A0 00 00 00
> >
> > 0a
> >
> > >=C2=A0 00 00 00 00=C2=A0 00 1d 00 00=C2=A0 =C2=A0 ...........= .....
> > >=C2=A0
> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 0010: 00 00 00 00=C2=A0 00 00 00
> >
> > 00
> >
> > >=C2=A0 00 00 00 00=C2=A0 00 00 00 00=C2=A0 =C2=A0 ...........= .....
> > >=C2=A0
> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(g-io-error-quark, 0)
> > >
> > > - I can manually mount them without any issue.
> > >
> > > - USB sticks successfully mount.
> > >
> > > - No problem with Linux Mint OS 23.1
> > >
> > > Any idea ?
> > >
> > > Thanks in advance,
> > >
> > > Cheers,
> > >
> > > --
> > > Jacques
> >
> > It often happens external USB drives need enough power to start u= p fully,
> > before their onboard controller responds to probes from udisksd.= =C2=A0 If
> > something
> > (from PSU, to battery power, to kernel/desktop power management o= ptions)
> > has
> > changed, to the point where the power on the USB port becomes mar= ginal,
> > then
> > such symptoms are possible.
> >
> > Things you could try:
> >
> > 1. Try a different USB port, ideally USB 3.0 or later version e.g= . USB 3.2
> > Gen2, which can provide more power.
> >
> > 2. Use a powered USB Hub between the PC and the drive, or a Y-sha= ped USB
> > cable
> > to feed the drive from two ports.
> >
> > 3. If on a laptop, use mains power (esp. in the summer when the c= ooling
> > fan
> > may be demanding more from the battery).
> >
> > 4. Remove other consumables from USB ports sharing the same bus.<= br> > >
> > 5. Do not set your desktop to auto-mount USBs when you plug in, b= ut only
> > when
> > you manually click on it in your GUI.
> >
> >
> > Anecdotal observation:=C2=A0 I have a WD Elements drive which I c= onnect through
> > an
> > external powered hub on a USB 2.0 port on the PC.=C2=A0 Even thou= gh the hub is
> > powered, I have to power it up first, wait a few seconds for the = drive to
> > come
> > up to speed (the LED flashing slows down), before I boot the PC.<= br> > > Otherwise
> > it's a hit or miss affair for the PC to detect it.=C2=A0 This= got worse after
> > some
> > months/years, although the drive itself has seen relatively littl= e use.
>
> Thank you Michael,
>
> It's a desktop PC working with cinnamon 6.
> I tried KDE Plasma (wayland or X11) and it works !
> So, maybe=C2=A0 a cinnamon-6.0.4 issue ?
>
> Cheers,
>
> Jacques

Looks like a possibility, if this started when you ran an update of the desktop, or changed some cinnamon/gnome settings.=C2=A0 Play around with th= e auto-
mount USB drive options, to see if it corrects itself.

Thanks Michael,

I did not un= derstand why an usb stick was automounted and not WD usb drive.
I saw th= e one was fat32 formatted and WD ext4.
So, i formatted=C2=A0fat32 anothe= r empty WD drive and it worked !
Last version of cinnamon could not auto= mount ext4 drive ? That's weird.

Well, it's not so important and in can d= eal with it.

Cheers,

Jacques

--00000000000059bca3061e9c9ecb--