Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Please use correct terminology to avoid confusions. In the context of storage and Linux/UNIX, the term "mount" has a very specific meaning, namely connecting a filesystem to a directory (the "mount point"). It does not mean "recognizing that a storage device has been attached".
In your case, the USB device is recognized but not as a block device. The first thing I would do is checking kernel messages to find out what happens when the thumb drive is inserted. Tools to see kernel messages are the dmesg command, or journalctl -k if your system uses systemd, or system log files /var/log/syslog or /var/log/messages depending on the distro.
Please use correct terminology to avoid confusions. In the context of storage and Linux/UNIX, the term "mount" has a very specific meaning, namely connecting a filesystem to a directory (the "mount point"). It does not mean "recognizing that a storage device has been attached".
In your case, the USB device is recognized but not as a block device. The first thing I would do is checking kernel messages to find out what happens when the thumb drive is inserted. Tools to see kernel messages are the dmesg command, or journalctl -k if your system uses systemd, or system log files /var/log/syslog or /var/log/messages depending on the distro.
Thank you.
Code:
[14421.916953] usb 2-8: new high-speed USB device number 5 using xhci_hcd
[14422.066069] usb 2-8: New USB device found, idVendor=0c76, idProduct=0005, bcdDevice= 1.00
[14423.070276] sd 6:0:0:0: Attached scsi generic sg3 type 0
[14423.071212] sd 6:0:0:0: [sdc] Attached SCSI removable disk
I can't format it:
Code:
$ sudo mkfs.ext4 /dev/sdc
mke2fs 1.44.5 (15-Dec-2018)
Could not open /dev/sdc: No medium found
The scsi disk driver attaches a removable drive. When trying to format it, it turns out there is no medium in the drive. As if this were a CDROM drive with no CD in it, or perhaps an SD card reader without a card.
Somehow, the USB flash disk is seen as an empty drive. I can't tell why, but perhaps you find something on the internet. A simple explanation: the device is faulty.
Another possibility: The wrong driver is used. Perhaps several drivers have the same vendor/model combination in their metadata. I don't know whether it is possible to blacklist sg3 when booting?
Or to exclude hardware failure, try the device on another system, if possible something else than Linux.
Last edited by berndbausch; 12-02-2020 at 05:02 AM.
[14421.916953] usb 2-8: new high-speed USB device number 5 using xhci_hcd
[14422.066069] usb 2-8: New USB device found, idVendor=0c76, idProduct=0005, bcdDevice= 1.00
[14423.070276] sd 6:0:0:0: Attached scsi generic sg3 type 0
[14423.071212] sd 6:0:0:0: [sdc] Attached SCSI removable disk
I can't format it:
Code:
$ sudo mkfs.ext4 /dev/sdc
mke2fs 1.44.5 (15-Dec-2018)
Could not open /dev/sdc: No medium found
Question for you, where did you obtain this device? We have seen various configuration of FAKE usb devices (some actually destructive, some just not with far less space than advertised or none at all) on EBAY and WISH. Could you have a fake or faulty device?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.