LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   USB not detected? (https://www.linuxquestions.org/questions/linux-newbie-8/usb-not-detected-4175624811/)

Bill Schultz 03-02-2018 12:46 PM

USB not detected?
 
Hello,

My USB stick is not being detected. I don't know if it is partitioned or not, and do not know what kind of file system it has.

The USB is a Cruzer Edge 16GB.
With it connected, the output for various commands are as follows:

lsblk
Code:

NAME  MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0 298.1G  0 disk
└─sda1  8:1    0 298.1G  0 part /
sr0    11:0    1  1024M  0 rom

lsusb
Code:

Bus 002 Device 003: ID 17ef:1003 Lenovo Integrated Smart Card Reader
Bus 002 Device 008: ID 0781:556b SanDisk Corp. Cruzer Edge
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0a5c:217f Broadcom Corp. BCM2045B (BDC-2.1)
Bus 001 Device 003: ID 147e:2016 Upek Biometric Touchchip/Touchstrip Fingerprint Sensor
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

fdisk -l
Code:

Disk /dev/sda: 298.1 GiB, 320072933376 bytes, 625142448 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xb707527d

Device    Boot Start      End  Sectors  Size Id Type
/dev/sda1  *    2048 625141759 625139712 298.1G 83 Linux

Does anybody know how I can resolve this problem without using any GTK+ utilities such as GNOME Disks, as I currently have an issue with the "canberra-gtk-module" [https://www.linuxquestions.org/quest...le-4175624805/].

Thanks in advance!
Bill

Emerson 03-02-2018 12:52 PM

Start from beginning, is USB storage kernel module loaded?

Bill Schultz 03-02-2018 01:04 PM

Thanks for the reply Emerson,

lsmod
Code:

Module                  Size  Used by
nls_iso8859_1          16384  0
nls_cp437              20480  0
vfat                  20480  0
fat                    77824  1 vfat
ccm                    20480  3
fuse                  118784  3
snd_hda_codec_hdmi    57344  1
snd_hda_codec_conexant    24576  1
btusb                  53248  0
intel_powerclamp      16384  0
coretemp              16384  0
btrtl                  16384  1 btusb
kvm_intel            229376  0
snd_hda_codec_generic    86016  1 snd_hda_codec_conexant
kvm                  704512  1 kvm_intel
btbcm                  16384  1 btusb
mei_wdt                16384  0
joydev                24576  0
btintel                16384  1 btusb
bluetooth            634880  5 btrtl,btintel,btbcm,btusb
wmi_bmof              16384  0
mousedev              24576  0
irqbypass              16384  1 kvm
snd_hda_intel          45056  0
snd_hda_codec        151552  4 snd_hda_intel,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hda_codec_generic
snd_hda_core          94208  5 snd_hda_intel,snd_hda_codec_conexant,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic
snd_hwdep              20480  1 snd_hda_codec
ecdh_generic          24576  1 bluetooth
crct10dif_pclmul      16384  0
arc4                  16384  2
crc32_pclmul          16384  0
snd_pcm              135168  4 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
ghash_clmulni_intel    16384  0
snd_timer              36864  1 snd_pcm
iwldvm                270336  0
mac80211              909312  1 iwldvm
pcbc                  16384  0
mxm_wmi                16384  0
iwlwifi              315392  1 iwldvm
cfg80211              741376  3 iwlwifi,mac80211,iwldvm
iTCO_wdt              16384  0
iTCO_vendor_support    16384  1 iTCO_wdt
aesni_intel          188416  2
psmouse              167936  0
aes_x86_64            20480  1 aesni_intel
crypto_simd            16384  1 aesni_intel
glue_helper            16384  1 aesni_intel
pcspkr                16384  0
mei_me                45056  1
i915                1921024  18
cryptd                28672  3 crypto_simd,ghash_clmulni_intel,aesni_intel
thinkpad_acpi          98304  1
intel_cstate          16384  0
intel_uncore          131072  0
nvram                  16384  1 thinkpad_acpi
input_leds            16384  0
rfkill                28672  5 bluetooth,thinkpad_acpi,cfg80211
mei                  106496  3 mei_me,mei_wdt
ac                    16384  0
snd                    98304  9 snd_hda_intel,snd_hwdep,snd_hda_codec_conexant,snd_hda_codec,snd_timer,thinkpad_acpi,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_pcm
soundcore              16384  1 snd
intel_ips              24576  0
drm_kms_helper        200704  1 i915
i2c_i801              32768  0
drm                  466944  8 i915,drm_kms_helper
e1000e                282624  0
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
i2c_algo_bit          16384  1 i915
ptp                    20480  1 e1000e
wmi                    28672  2 wmi_bmof,mxm_wmi
shpchp                40960  0
tpm_tis                16384  0
tpm_tis_core          20480  1 tpm_tis
evdev                  20480  13
tpm                    65536  2 tpm_tis,tpm_tis_core
battery                20480  0
pps_core              20480  1 ptp
lpc_ich                28672  0
mac_hid                16384  0
intel_agp              24576  0
intel_gtt              24576  2 intel_agp,i915
agpgart                49152  3 intel_agp,intel_gtt,drm
rtc_cmos              24576  1
acpi_cpufreq          24576  1
sg                    40960  0
ip_tables              28672  0
x_tables              45056  1 ip_tables
ext4                  712704  1
crc16                  16384  2 bluetooth,ext4
mbcache                16384  1 ext4
jbd2                  122880  1 ext4
fscrypto              32768  1 ext4
sr_mod                28672  0
cdrom                  69632  1 sr_mod
sd_mod                61440  2
mmc_block              40960  0
serio_raw              16384  0
atkbd                  32768  0
libps2                16384  2 atkbd,psmouse
ahci                  40960  1
libahci                40960  1 ahci
libata                278528  2 ahci,libahci
sdhci_pci              32768  0
crc32c_intel          24576  0
sdhci                  53248  1 sdhci_pci
ehci_pci              16384  0
led_class              16384  4 sdhci,input_leds,thinkpad_acpi,iwldvm
ehci_hcd              94208  1 ehci_pci
scsi_mod              258048  4 sd_mod,libata,sr_mod,sg
mmc_core              172032  3 sdhci,sdhci_pci,mmc_block
usbcore              286720  3 ehci_hcd,btusb,ehci_pci
usb_common            16384  1 usbcore
i8042                  32768  0
serio                  28672  7 serio_raw,atkbd,psmouse,i8042

I am not too sure what you mean by "USB storage kernal module" (hence why I am posting in Newbie section), but these are the modules.

From the lsusb command, the USB is detected, however, in Xfce File Manager, it does not appear. Nor does it appear under the lsblk command.

Thanks for the help!

Emerson 03-02-2018 01:53 PM

The kernel module to access USB block devices is called usb_storage, I do not see it loaded. I'd try and load it by hand and check if fdisk shows your drive afterwards.

Bill Schultz 03-02-2018 02:07 PM

Thanks for the reply Emerson,

How do I do this from the terminal?
I've been through Arch Linux boot camp (i.e. the installation), however I don't know too many other unrelated commands.

Cheers!

Bill Schultz 03-02-2018 02:31 PM

modprobe usb_storage
Code:

modprobe: FATAL: Module usb_storage not found in directory /lib/modules/4.15.3-2-ARCH

michaelk 03-02-2018 02:49 PM

Have you looked at the output of the dmesg command to see if the drive is being recognized?

Assuming you are running a stock kernel SCSI-Support, SCSI-Disk-Support and usb_storage are compiled in so it isn't a loadable module.

Emerson 03-02-2018 04:00 PM

Thanks, michaelk. The only non-Gentoo Linux I have here is Mint and it has usb_storage as module.

DavidMcCann 03-03-2018 10:57 AM

I don't have that module in CentOS.

Firstly, have you tried using more than one USB port? Can you try the stick on another computer?

The fact that it's not being mounted doesn't necessarily mean it's not being found. Plug it in, start gparted, and see if that program can find /dev/sdb.

AwesomeMachine 03-03-2018 08:47 PM

It does appear something is amiss. Try ls /dev/sd*. As also mentioned, try different usb ports. Try different computers. Seriously, if it won't show up in /dev, that's a bad sign. If you're using a laptop, make sure it's plugged into the AC outlet. Most laptops supply less power to the USB ports when running on battery power. The Sandisk Cruz might require more power than that.


All times are GMT -5. The time now is 11:31 PM.