LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 11-29-2020, 07:28 AM   #1
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Rep: Reputation: Disabled
Post 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.
 
Old 11-29-2020, 08:15 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
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.
 
Old 11-29-2020, 08:18 AM   #3
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,613

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Quote:
Originally Posted by n00b_noob View Post
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?
 
Old 11-29-2020, 08:33 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by wpeckham View Post
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.
 
Old 11-29-2020, 08:42 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
is this still the same issue? https://www.linuxquestions.org/quest...le-4175685050/
 
1 members found this post helpful.
Old 12-02-2020, 03:23 AM   #6
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
No, it is another USB.
 
Old 12-02-2020, 03:25 AM   #7
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
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 03:27 AM.
 
Old 12-02-2020, 04:59 AM   #8
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
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.
 
Old 12-02-2020, 10:13 AM   #9
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Are there partitions on the device?
 
Old 12-03-2020, 12:40 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by n00b_noob View Post
Quote:
Originally Posted by pan64 View Post
No, it is another USB.
In that thread:
Quote:
Originally Posted by n00b_noob View Post
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 View Post
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.
 
Old 12-03-2020, 04:31 AM   #11
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,613

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Quote:
Originally Posted by n00b_noob View Post
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?
 
Old 12-03-2020, 04:37 AM   #12
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
that is completely entangled https://www.linuxquestions.org/quest...ce-4175685248/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why so many "tmpfs" mounted? One is mounted on /media -- why? SharpyWarpy Fedora 6 03-13-2012 12:15 AM
Is the disk partition mounted or not mounted? Kenarkies Linux - Kernel 3 01-16-2010 02:06 AM
Mounted but not mounted jmoschetti45 Linux - Hardware 8 12-14-2009 08:05 PM
HAL daemon does not reconize a mounted partition as mounted 888m Slackware 4 07-30-2007 12:58 PM
How to install and configure grub on pendrive while os' are on the same pendrive? CeremCem DamnSmallLinux 0 11-07-2006 11:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration