LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-29-2016, 04:11 PM   #1
deadstar32
LQ Newbie
 
Registered: Feb 2016
Posts: 26

Rep: Reputation: Disabled
Exclamation USB Detection Trouble (Software can't detect Hardware?)


Hello good people of LQ, I am in a bit of a conundrum and need a lot of help... So I've been a Slackware 14.1 user (x86 architecture) for quite some time and am relatively experienced, however, this problem is over my head. After I finished installing Slackware I decided to tweak it a little it (I've done many Linux installs before, especially custom Slackware installs), meaning I removed some packages manual using setup (Which is or is based off of pkgtools I believe) and for some reason when I put my USB in the USB slot of my computer udevd doesn't seem to be detecting it. Since my computer's software can't find the USB's hardware I can't mount it on /mnt anymore. # cat /proc/partition reveals nothing and /sys gives no leads. In addition udev's monitor program turns up nothing.

Could I not have the modules needed to use the USB any longer?
I know very little about drivers and modules other than the kernel and hardware need them for detection and functionality. If I did need the modules/drivers where could I get the software for it? I have the Slackware CD, but I wouldn't know where to start. I really don't want to reinstall again, I just got comfortable with this setup all I want is for my computer to realize it has a USB in it so I can mount it and go about my business. If anybody can help me, you will have my undying gratitude!!!!

Last edited by deadstar32; 02-29-2016 at 04:11 PM. Reason: Needed more Readability.
 
Old 02-29-2016, 04:55 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Australia
Distribution: Devuan
Posts: 5,472

Rep: Reputation: Disabled
Hi

1) If you have a file manager like pcmanfm, thunar etc then go into the preferences and edit them to allow "mounting" of removeable media etc.

There are a number of options in there.

pull out stick and re-insert and if that did not work go to (2)

2) assuming file manager auto mount failed...or lacks removeble media options....then you need to report parts of your log

remove stick then re-insert it and look at your logs in /var/log

maybe

Code:
tail /var/log/syslog  (or) tail /var/log/messages
I will show you the start of mine
tail syslog
Mar 1 06:51:00 asus kernel: [ 1099.463066] scsi 7:0:0:0: Direct-Access Lexar USB Flash Drive 8.07 PQ: 0 ANSI: 4
there are more lines below showing it getting a /dev/number and a mount point but the dev/sdx number is what you need

2b) if the log shows it then you can manually mount the stick for now and report

as root
Code:
mkdir -p /media/usb-red1
mount /dev/sdb1  /media/usb-red1
change the name of the mount point to something you understand such as maker's name, size etc
I have colour coded sticks and this is just an example
 
Old 02-29-2016, 05:00 PM   #3
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,317

Rep: Reputation: Disabled
My favorite command is tail -f /var/log/messages, then plug in the device and wait whether it is detected or not. I have a USB to SATA adapter here for instance and it takes up to minute to detect the hard drive connected to it.
 
Old 03-01-2016, 11:08 AM   #4
deadstar32
LQ Newbie
 
Registered: Feb 2016
Posts: 26

Original Poster
Rep: Reputation: Disabled
Hey aus9 and Emerson, thanks for the help... I still haven't figured out why it is not working yet but at least I'm not thinking in circles anymore.

First think I did was I used Thunar and reconfigured to mount USB's like aus9 said for step 1. That didn't work so i went to step 2.

The logs revealed this:

Mar 1 07:22:46 darkstar kernel: [ 61.722549] usb 1-1: device not accepting a$
Mar 1 07:22:46 darkstar kernel: [ 61.722609] hub 1-0:1.0: unable to enumerate$
Mar 1 07:22:46 darkstar udevd[214]: worker [274] terminated by signal 9 (Kille$
Mar 1 07:23:23 darkstar hp-systray: hp-systray[938]: warning: hp-systray shoul$
Mar 1 07:23:23 darkstar hp-systray: hp-systray[938]: error: hp-systray cannot $
Mar 1 07:23:27 darkstar ModemManager[1050]: <warn> Couldn't find support for $
Mar 1 07:23:27 darkstar ModemManager[1050]: <warn> Couldn't find support for $

This output was produced with tail /var/log/syslog and i saved it to a file. In accordance with aus9's instructions.

I tried Emerson's option of tail -f /var/log/message but only internet info came up, when i did tail -f /var/log/syslog more system
oriented information came up and I put in the USB but nothing was reported.

Maybe the solution is in front of me and I just don't know enough. My working knowledge of /var and it's sub directories is that its a variable sub-directory of root where programs record run-time info. System logging is often kept here but I'm not sure what some of the output means. for example i bolded the parts i cant understand:

Mar 1 07:22:46 darkstar kernel: [ 61.722609] hub 1-0:1.0: unable to enumerate$ is the number 61.72209 just a job identifier?
and the hub 1-0:1:1.0: is that a location or device?

Maybe There is a problem closer to the lower levels of abstraction such as the way the software of the Slackware computer communicates with newly inserted hardware like a USB block device? Perhaps this is a module/driver problem? lsmod reveals:

module Size Used by
pci_stub 1373 1
vboxpci 16249 0
vboxnetadp 19028 0
vboxnetflt 18960 0
vboxdrv 366461 3 vboxnetadp,vboxnetflt,vboxpci
lp 9851 0
ppdev 5862 0
parport_pc 19332 0
parport 30389 3 lp,ppdev,parport_pc
rt2800pci 10706 0
rt2800lib 60006 1 rt2800pci
coretemp 5870 0
acpi_cpufreq 7230 1
mperf 1163 1 acpi_cpufreq
rt2x00pci 2584 1 rt2800pci
rt2x00mmio 2801 1 rt2800pci
rt2x00lib 36967 4 rt2x00pci,rt2800lib,rt2800pci,rt2x00mmio
eeprom_93cx6 2145 1 rt2800pci
intel_agp 10864 1 i915
intel_gtt 12600 2 i915,intel_agp
cfg80211 380228 2 mac80211,rt2x00lib
drm_kms_helper 35118 1 i915
sparse_keymap 3074 1 asus_wmi
drm 229054 2 i915,drm_kms_helper
agpgart 27267 3 drm,intel_agp,intel_gtt
i2c_algo_bit 5351 1 i915
thermal 8644 0
crc_ccitt 1323 1 rt2800lib
i2c_core 20936 4 drm,i915,drm_kms_helper,i2c_algo_bit
rfkill 15522 2 cfg80211,asus_wmi
snd_hda_codec_realtek 34792 1
r8169 57775 0
hwmon 1337 3 coretemp,thermal_sys,asus_wmi
kvm_intel 126236 0
kvm 363491 1 kvm_intel
ehci_pci 3688 0
crc32_pclmul 2883 0
ehci_hcd 39275 1 ehci_pci
wmi 8243 1 asus_wmi
crc32c_intel 14113 0
mii 3955 1 r8169
ghash_clmulni_intel 4333 0
snd_hda_intel 34861 1
snd_hda_codec 143196 2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 6388 1 snd_hda_codec
snd_pcm 76009 2 snd_hda_codec,snd_hda_intel
snd_page_alloc 7098 2 snd_pcm,snd_hda_intel
snd_timer 18614 1 snd_pcm
snd 58630 8 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_pcm,snd_hda_codec,snd_hda_intel
soundcore 5354 1 snd
evdev 9648 7
loop 18479 0
ext4 446312 1
jbd2 76403 1 ext4
mbcache 5666 1 ext4

Thank you for so much! I hope if it's not to much trouble I can get more help?

Last edited by deadstar32; 03-01-2016 at 11:12 AM. Reason: too much info, must improve readability
 
1 members found this post helpful.
Old 03-02-2016, 01:46 AM   #5
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Australia
Distribution: Devuan
Posts: 5,472

Rep: Reputation: Disabled
ok well you have more errors in log than just usb. so no need to be shy....change the tail command to catch more entries

tail -n 50 /var/log/<nameoflog>

2) ignore list modules for moment pls post the output of your usb devices as per

Code:
lsusb
then tell us what you expect....do you have a tower or laptop? Does motherboard have front connectors to tower or only usb ports at back or sides.

Exactly how many physical ports can you see and compare to your lsusb command.

b) Are you using a hub?
If so whats inserted into that hub.

c) Can you try inserting media outside the hub?

3) some laptops and towers have a bios setting to disable or enable some features of the USB hardware, can you confirm your bios setting is good pls

Last edited by aus9; 03-02-2016 at 01:47 AM.
 
1 members found this post helpful.
Old 03-02-2016, 08:17 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware FreeBSD Win10 MX
Posts: 9,813

Rep: Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109
I've never had this problem with Slack, other then Apple's Cra* .(I don't use Slack anymore)

Why polkit (or, how to mount a disk on modern Linux)


polkit policies may help if you create or modify what you have to allow automounting

I had to create and use these in Debian when I was running Debian.

Code:
[Allow Automount]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-mount*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Allow Eject]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.eject-media*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Allow Mounting of fstab]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-fstab*
ResultAny=yes
ResultInactive=yes
ResultActive=yes
Code:
#[Allow Automount]
#Identity=unix-group:plugdev
#Action=org.freedesktop.udisks2.filesystem-mount
#ResultAny=yes
#ResultInactive=yes
#ResultActive=yes

[Allow Automount]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-mount*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Allow Eject]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.eject-media*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Allow Mounting of fstab]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-fstab*
ResultAny=yes
ResultInactive=yes
ResultActive=yes
____-----____

Udisk mounting

https://wiki.archlinux.org/index.php/udisks

Last edited by BW-userx; 03-02-2016 at 08:30 AM.
 
1 members found this post helpful.
Old 03-02-2016, 08:22 AM   #7
polaris96
Member
 
Registered: Jan 2015
Distribution: Slackware, LFS, OpenIndiana, debian wheezy
Posts: 55

Rep: Reputation: Disabled
+1 on aus 9's advice. first do lusb without the stick and then with it.

after you plug the stick in, also post dmesg | tail

then, to ice the cake, as it were, you might look for output from ps -e | grep udevd
... but if you're online, udev is almost certainly working.

could your stick be an issue? have you tried other usb devs and ports (as mentioned)
... again, these are less likely problems but they do sometimes happen
 
Old 03-10-2016, 02:11 PM   #8
deadstar32
LQ Newbie
 
Registered: Feb 2016
Posts: 26

Original Poster
Rep: Reputation: Disabled
Thumbs up

Alright, I'm going to try all the new replies advice later today and report back my findings. Thanks again! This is a great community that is here and I am really glad it exists.
 
Old 03-24-2016, 05:36 AM   #9
deadstar32
LQ Newbie
 
Registered: Feb 2016
Posts: 26

Original Poster
Rep: Reputation: Disabled
Lightbulb

The output from the lsusb command yielded without the physical usb inserted into the computer the following data:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

After that I ran the lsusb command again, this time with my usb inserted in the computer, the light to my usb never turned on, and the
output was the same as the last time.

I would also like to add for reference the system from which I am running slackware 14.1 is a laptop... Which was working fine until I reinstalled the OS while leaving out some packages ( I think I mentioned this before.)

The output from dmesg | tail reads off a good bit about the usb it looks like:

[ 11.919162] EXT4-fs (sda3): re-mounted. Opts: (null)
[ 12.450633] ppdev: user-space parallel port driver
[ 12.458572] lp: driver loaded but no devices found
[ 24.960840] usb 1-1: device not accepting address 2, error -110
[ 25.063156] usb 1-1: new high-speed USB device number 3 using ehci-pci
[ 40.648809] usb 1-1: device not accepting address 3, error -110
[ 40.750888] usb 1-1: new high-speed USB device number 4 using opehci-pci
[ 48.997437] NET: Registered protocol family 10
[ 51.205091] usb 1-1: device not accepting address 4, error -110
[ 51.307814] usb 1-1: new high-speed USB device number 5 using ehci-pci
[ 61.761846] usb 1-1: device not accepting address 5, error -110
[ 61.761905] hub 1-0:1.0: unable to enumerate USB device on port 1


I was hoping to have this information posted a week or two ago but somethings happened and my attention had to shift a little bit but I am back now. Thank you for the help thus far, I will be keeping an eye on this thread. Please continue to help me if possible I think I am finally getting somewhere!!! Thanks again to everyone who has been helping out and the community!
 
Old 03-24-2016, 06:12 AM   #10
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware FreeBSD Win10 MX
Posts: 9,813

Rep: Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109
Actual hardware problem? Did you try using that same USB Port to boot off of, say a live Linux to see if BIOS even sees it? Just to eliminate that possibility.

Last edited by BW-userx; 03-24-2016 at 06:42 AM.
 
Old 03-24-2016, 07:04 AM   #11
oldtechaa
Member
 
Registered: May 2015
Location: US
Distribution: Fedora
Posts: 364

Rep: Reputation: 83
Error -110 means a lack of power. The USB device is not getting enough current. If you shut down the laptop for a while, it should fix it.
 
Old 04-26-2016, 07:05 AM   #12
deadstar32
LQ Newbie
 
Registered: Feb 2016
Posts: 26

Original Poster
Rep: Reputation: Disabled
So I ended up reinstalling the OS and it works fine now. My BIOS did recognize it and my laptop was fully charged. Thanks to all thate have helped. Sorry for cutting it short, I'm usually very persistent when it comes to troubleshooting problems like these, especially when I have a group of people on Linuxquestions.org helping me out . But alas, I just couldn't take it any longer and I had much more important issues at the time so I decided to just reinstall the OS. Thanks again, I didn't expect to get as much help as I received.
 
Old 04-26-2016, 08:13 AM   #13
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware FreeBSD Win10 MX
Posts: 9,813

Rep: Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109Reputation: 2109
Quote:
Originally Posted by deadstar32 View Post
So I ended up reinstalling the OS and it works fine now.....
Sometimes that is the best way to go. I always leave that option open. it is fast and easier sometimes. (as long as you have your personal data, and customized conf files back up. it is a much faster and headache free way to go if things get really screwed up.)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
compatible hardware detection software? Cultist Linux - Hardware 1 06-09-2010 08:28 PM
Hardware Detection Software for a rescue CD/USB? tinker123 Linux - Software 1 10-09-2008 03:30 PM
Client machine hardware and software detection using a program in red hat 9 network. Mohit.Project Linux - Networking 1 01-28-2004 01:46 PM
any hardware failure detection software? sanglih Linux - Software 6 07-12-2002 07:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:44 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration