LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-20-2018, 07:30 PM   #1
gabs247
Member
 
Registered: Jan 2018
Posts: 44

Rep: Reputation: Disabled
USB Drive Not Found


Ok, so the USB drive isn't found under Devices (when using blkid command) but it is showing up as a connected device USB (when using lsusb command).

Looking at the output of dmesg:


[945968.895128] usb 2-2: Product: External USB 3.0
[945968.895132] usb 2-2: Manufacturer: TOSHIBA
[945968.896050] usb-storage 2-2:1.0: USB Mass Storage device detected
[945968.896180] scsi18 : usb-storage 2-2:1.0
[945991.107826] usb 2-2: Disable of device-initiated U1 failed.
[945991.111326] usb 2-2: Disable of device-initiated U2 failed.
[945991.276781] usb 2-2: reset SuperSpeed USB device number 7 using xhci_hcd
[945991.295715] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b84d3640
[945991.295717] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b84d3688


I'm confused, I've been trying to find out what is wrong with it but it works in Windows, and it appears to connect fine but then I'm thinking the output above means it gets disabled for some reason? I'm running OpenMediaVault 3.0 (which runs on Debian Jessie 8.10). It's frustrating as I just cleaned up this 2TB drive to back up some of my server, and now it's not working directly with linux

It's potentially related, but I only seem to get USB 2.0 speeds with my external drives, although it appears my flash drive at the back is connected with USB 3.0. I'm not absolutely sure I connected the USB cables inside correctly and haven't checked yet, but just wondering if there is a driver support issue?

Last edited by gabs247; 02-21-2018 at 11:50 PM.
 
Old 02-20-2018, 08:06 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,272
Blog Entries: 28

Rep: Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124
What is the make/model of the computer and what distro/version are you using?
 
Old 02-20-2018, 09:06 PM   #3
gabs247
Member
 
Registered: Jan 2018
Posts: 44

Original Poster
Rep: Reputation: Disabled
It's a server I built, ASUS B150M-PLUS mobo.

Running OpenMediaVault 3.0 (built on Debian Jessie 8.10).
 
Old 02-20-2018, 10:38 PM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,983

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Quote:
It's potentially related, but I only seem to get USB 2.0 speeds with my external drives, although it appears my flash drive at the back is connected with USB 3.0. I'm not absolutely sure I connected the USB cables inside correctly and haven't checked yet, but just wondering if there is a driver support issue?
Please post the output of:
Code:
$ lspci | grep USB
It may be the USB3 controller on your motherboard. I had an Asus board where the USB3 controller was made by ASMedia and it would not work under linux but worked under windows. After a little googling revealed the ASMedia controller was simply not supported under linux and was not likely to be in the future, I gave up and bought an addin USB3 card that was supported. Similar to you, USB3 devices would either not work or only work at USB2 speeds. The output of the above command should reveal if this is a potential problem.
 
Old 02-21-2018, 12:20 AM   #5
gabs247
Member
 
Registered: Jan 2018
Posts: 44

Original Poster
Rep: Reputation: Disabled
I see, well the output is:

00:14.0 USB controller: Intel Corporation Device a12f (rev 31)
 
Old 02-21-2018, 09:58 AM   #6
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,983

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Intel should be fine but you should have more than one line of output if you have both USB3 and USB2 ports. Mine reads:
Code:
$ lspci | grep USB
00:14.0 USB controller: Intel Corporation 9 Series Chipset Family USB xHCI Controller
00:1a.0 USB controller: Intel Corporation 9 Series Chipset Family USB EHCI Controller #2
00:1d.0 USB controller: Intel Corporation 9 Series Chipset Family USB EHCI Controller #1
You can check your bios/UEFI and make sure USB3 is activated. On some boards you have to do that or the USB3 port will run at USB2 speeds.
 
Old 02-21-2018, 10:40 PM   #7
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
It might be that the OS isn't automounting the device. Then it could be listed in lsusb but not df -h. Plug it in and try
Code:
$ ls /dev/sd*
and see if there's a device node. Each drive on the system gets sda, sdb, sdc, etc. And each partition on each drive adds a number to the end of those.
 
Old 02-21-2018, 10:48 PM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
It wont show up in $(df) unless it's mounted.

$ mount
 
Old 02-21-2018, 11:08 PM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
It should show up in /proc/partitions or blkid if it is mountable.

$ cat /proc/partitions

$ sudo blkid

I normally cat /proc/partitions before I insert the device and after, then I note the difference. If it's the last thing you changed the tail end of dmesg should have some information to about it's /dev/... name. If it doesn't show up in any of those things, then you have issues. Not enough power to the device, or driver/kernel issues. I have a couple usb 3 spinning rust drives that get quirky if it's connected via a usb 2 extension, or if the powered hub is connected via a usb 2 extension. At least when it's connected to a low power arm device like a pocket chip. But on the short leash it works just fine.
 
Old 02-21-2018, 11:53 PM   #10
gabs247
Member
 
Registered: Jan 2018
Posts: 44

Original Poster
Rep: Reputation: Disabled
I made a mistake, I meant blkid not df command above. Hence, it's not showing up under /dev/sd*

That's what's strange, it's detected by lsusb but not blkid? I cannot mount it, as it's not under /dev.

I haven't checked /proc/partions but assuming it won't be there either???
 
Old 02-22-2018, 04:45 AM   #11
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Is it a new device?

I have a failed usb3 sandisk 32gb stick that shows up in most things, but if I try to mount it, it'll take a bit, and fails. Normally with something about cannot find device or some such. It does show up under /proc/partitions. I was using it as a live system and playing a game when my computer just unexpectedly shut off. Then it was in that state.

No biggie, I opened the packaging for a new one, stuck it in my other computer to install linux under linux $(debootstrap) and was booted up again in less than fifteen minutes, and gaming again in less than an hour. It probably could have been less than half an hour, but it failed to a non-read-only state so I had spent some time checking out my backups and trying to use the failed device. I figured it was faster to start fresh than to try and bring my arch stick up to date.
 
Old 02-22-2018, 04:55 AM   #12
gabs247
Member
 
Registered: Jan 2018
Posts: 44

Original Poster
Rep: Reputation: Disabled
It doesn't show in /dev, blkid or /proc/partitions

It does show with lsusb

It's so frustrating, the drive works fine with Windows
 
Old 02-22-2018, 05:50 AM   #13
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Well that's odd. Have you tried with the most recent stable kernel?

The xhci stuff is for usb 3 iirc and seem to be puking a bit with your previous output. ehci for usb 2. Perhaps an extension cable to convert it to usb 2? Or a powered hub, I have a couple toshiba 500GB usb3 drives and they are power hungry. Even on a powered hub, I had to pull the usb to ethernet adapter and the rtl sdr dongle leaving just the drive and keyboard on that hub for mine to work.
 
Old 02-22-2018, 09:13 AM   #14
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,983

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
I still think you should check your bios/UEFi. On my Asus board you go to Advanced Mode and tick the Advanced tab. Then select USB Configuration and check what you have for "Intel xHCI Mode". It should be set to either "Smart Auto" or "Enabled". If it is set to "Disabled", your USB3 ports will run in USB2 mode which appears to be what you have going on. Also, in USB2 mode, USB3 external hard drives will malfunction since they can't draw enough power from a USB2 port.

As suggested above, it might also be a kernel issue since your board is relatively new and you're running Debian 8.1. You can try running a linux livecd with a more recent kernel and see how your external hard drive works in that environment. If it works OK, it's most likely a kernel issue and you need to run a more up to date kernel that fully supports your board.
 
  


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
External Hard drive not found with USB HUB flamelord Linux - Hardware 1 06-21-2011 08:41 AM
Can't write to my usb drive, the frustrations of linux have found me again xmrkite Linux - Software 8 04-28-2011 12:49 PM
[SOLVED] Usb flash drive mount point not found hewjr1000 Linux - Hardware 2 11-24-2010 07:32 AM
usb drive : no medium found ewt3y Linux - Newbie 7 03-29-2006 01:48 PM
'No medium found' error on _reattaching_ USB drive a_grief Linux - Hardware 0 05-06-2003 11:30 AM

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

All times are GMT -5. The time now is 06:53 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