Linux - Hardware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-29-2020, 08:28 AM
|
#1
|
Member
Registered: Sep 2020
Posts: 436
Rep: 
|
Why PenDrive is not mounted?
Hello,
I have a PenDrive with below information:
Code:
$ sudo lsusb -D /dev/bus/usb/002/023
Device: ID 0c76:0005 JMTek, LLC. Transcend Flash disk
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0c76 JMTek, LLC.
idProduct 0x0005 Transcend Flash disk
bcdDevice 1.00
iManufacturer 1 GENERIC
iProduct 2 USB Mass Storage
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0020
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 255
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 255
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x0000
(Bus Powered)
But, drive not mounted:
Code:
$ sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 667M 0 part
├─sda2 8:2 0 84.2G 0 part /
├─sda3 8:3 0 372.5G 0 part /home
└─sda4 8:4 0 8.4G 0 part [SWAP]
sr0 11:0 1 1024M 0 rom
Why?
Thank you.
|
|
|
11-29-2020, 09:15 AM
|
#2
|
LQ Addict
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316
|
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.
|
|
|
11-29-2020, 09:18 AM
|
#3
|
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,077
|
Quote:
Originally Posted by n00b_noob
Hello,
I have a PenDrive with below information:
Code:
$ sudo lsusb -D /dev/bus/usb/002/023
Device: ID 0c76:0005 JMTek, LLC. Transcend Flash disk
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0c76 JMTek, LLC.
idProduct 0x0005 Transcend Flash disk
bcdDevice 1.00
iManufacturer 1 GENERIC
iProduct 2 USB Mass Storage
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0020
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 255
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 255
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x0000
(Bus Powered)
But, drive not mounted:
Code:
$ sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 667M 0 part
├─sda2 8:2 0 84.2G 0 part /
├─sda3 8:3 0 372.5G 0 part /home
└─sda4 8:4 0 8.4G 0 part [SWAP]
sr0 11:0 1 1024M 0 rom
Why?
Thank you.
|
Have you tried running a mount command to mount the device?
What is your distribution and version?
|
|
|
11-29-2020, 09:33 AM
|
#4
|
LQ Addict
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316
|
Quote:
Originally Posted by wpeckham
Have you tried running a mount command to mount the device?
|
To use mount, a device file is required. Which OP doesn't seem to have.
|
|
|
11-29-2020, 09:42 AM
|
#5
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,649
|
|
|
1 members found this post helpful.
|
12-02-2020, 04:23 AM
|
#6
|
Member
Registered: Sep 2020
Posts: 436
Original Poster
Rep: 
|
Quote:
Originally Posted by pan64
|
No, it is another USB.
|
|
|
12-02-2020, 04:25 AM
|
#7
|
Member
Registered: Sep 2020
Posts: 436
Original Poster
Rep: 
|
Quote:
Originally Posted by berndbausch
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
Last edited by n00b_noob; 12-02-2020 at 04:27 AM.
|
|
|
12-02-2020, 05:59 AM
|
#8
|
LQ Addict
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316
|
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 06:02 AM.
|
|
|
12-02-2020, 11:13 AM
|
#9
|
Senior Member
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252
|
Are there partitions on the device?
|
|
|
12-03-2020, 01:40 AM
|
#10
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by n00b_noob
Quote:
Originally Posted by pan64
|
No, it is another USB.
|
In that thread:
Quote:
Originally Posted by n00b_noob
Code:
[18167.939101] usb 2-8: New USB device found, idVendor=0c76, idProduct=0005, bcdDevice= 1.00
|
In this thread:
Quote:
Originally Posted by n00b_noob
Code:
$ sudo lsusb -D /dev/bus/usb/002/023
Device: ID 0c76:0005 JMTek, LLC. Transcend Flash disk
|
Colour me sceptical.
More than sceptical, given your posting history.
|
|
|
12-03-2020, 05:31 AM
|
#11
|
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,077
|
Quote:
Originally Posted by n00b_noob
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
|
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?
|
|
|
12-03-2020, 05:37 AM
|
#12
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,649
|
|
|
|
All times are GMT -5. The time now is 05:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|