From nobody Tue Dec 27 06:05:47 2022 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Nh4002pSlz2cDJs for ; Tue, 27 Dec 2022 06:05:52 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Nh3zz5gdqz49CQ for ; Tue, 27 Dec 2022 06:05:51 +0000 (UTC) (envelope-from freebsd@edvax.de) Authentication-Results: mx1.freebsd.org; none Received: from r56.edvax.de ([178.12.112.4]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPA (Nemesis) id 1MoNyA-1oU9op2kbQ-00omDk; Tue, 27 Dec 2022 07:05:47 +0100 Date: Tue, 27 Dec 2022 07:05:47 +0100 From: Polytropon To: Robert Huff Cc: questions@FreeBSD.org Subject: Re: unknown USR mass storage device Message-Id: <20221227070547.a3d38f76.freebsd@edvax.de> In-Reply-To: <25513.50264.824359.772717@jerusalem.litteratus.org> References: <25513.50264.824359.772717@jerusalem.litteratus.org> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:CenV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default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Mon, 26 Dec 2022 10:57:12 -0500, Robert Huff wrote: >=20 > Hello: > On a system running: >=20 > FreeBSD 14.0-CURRENT #0 main-f0a15aafcb > Mon Oct 31 08:19:54 EDT 2022 > amd64 >=20 > I plugged a mystery thumb drive into a USB port, and went through > the usual steps of trying to mount it. > Except the drive isn't recognized by gpart. Or camcontrol. > /var/log/messages shows: >=20 > Dec 26 10:48:38 jerusalem kernel: usb_msc_auto_quirk: UQ_MSC_NO_GETMAXLUN= set for USB mass storage device Generic Mass Storage Device (0x14cd:0x1212) > Dec 26 10:48:38 jerusalem kernel: usb_msc_auto_quirk: UQ_MSC_NO_TEST_UNIT= _READY set for USB mass storage device Generic Mass Storage Device (0x14cd:= 0x1212) > Dec 26 10:48:38 jerusalem kernel: usb_msc_auto_quirk: UQ_MSC_NO_PREVENT_A= LLOW set for USB mass storage device Generic Mass Storage Device (0x14cd:0x= 1212) > Dec 26 10:48:38 jerusalem kernel: usb_msc_auto_quirk: UQ_MSC_NO_SYNC_CACH= E set for USB mass storage device Generic Mass Storage Device (0x14cd:0x121= 2) > Dec 26 10:48:38 jerusalem kernel: ugen2.4: = at usbus2 > Dec 26 10:48:38 jerusalem kernel: umass0 on uhub7 > Dec 26 10:48:38 jerusalem kernel: umass0: on usbus2 > Dec 26 10:48:38 jerusalem kernel: umass0: SCSI over Bulk-Only; quirks = =3D 0xc101 > Dec 26 10:48:38 jerusalem kernel: umass0:6:0: Attached to scbus6 > Dec 26 10:48:39 jerusalem kernel: da0 at umass-sim0 bus 0 scbus6 target 0= lun 0 > Dec 26 10:48:39 jerusalem kernel: da0: Removab= le Direct Access SCSI device > Dec 26 10:48:39 jerusalem kernel: da0: Serial Number 121220160204 > Dec 26 10:48:39 jerusalem kernel: da0: 40.000MB/s transfers > Dec 26 10:48:39 jerusalem kernel: da0: Attempt to query device size faile= d: NOT READY, Medium not present > Dec 26 10:48:39 jerusalem kernel: da0: quirks=3D0x2 > Dec 26 10:48:39 jerusalem kernel: da0: Write Protected >=20 > > Anyone know what I'm looking at here? What capabilities does usbconfig list f=FCr this particular device? Without knowing what it is, I'm just guessing: It could be a device that contains drivers for "Windows", presented on an imaginary file system (USB mass storage, write protected). Some older UMTS sticks did this, but they presented themselves both as USB CD drive and as USB communications device. Maybe you're looking at something comparable? If you cannot use gpart, can you inspect the raw file (/dev/da0, maybe /dev/da0s1), "file -s /dev/da0" or using a hex viewer, if you can access data on the device at all, without mounting? Also check the USB vendor and device ID, maybe you can find out what it is? If you're sure it is a regular USB stick / thumb drive, try "newfs /dev/da0". Before you do, replace the write ring. ;-) --=20 Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...