LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-06-2013, 06:41 AM   #1
unkn(0)wn
Member
 
Registered: Aug 2011
Distribution: Slackware 14, Debian 7.0.0 Wheezy, Windows 7, Windows 8
Posts: 117

Rep: Reputation: Disabled
HardDrive not detected on plugin


Hello all,

I am using Debian Wheezy 7.0.1 64 bit. Whenever i plugin my External HDD. Nothing shows up or no notification. Even `fdisk -l` wont show my drive. But when i reboot after pluging in my HDD. HDD works perfectly.

Is there any way to get my HDD working at the time i plug it in? WIthout restarting?
 
Old 08-06-2013, 06:42 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Try checking dmesg when you plug it in; might give a clue
 
Old 08-06-2013, 06:48 AM   #3
unkn(0)wn
Member
 
Registered: Aug 2011
Distribution: Slackware 14, Debian 7.0.0 Wheezy, Windows 7, Windows 8
Posts: 117

Original Poster
Rep: Reputation: Disabled
I digged some kerl.log. Here's what it says when i plugged in

Quote:
Aug 6 15:24:21 unkn0wn-XPS kernel: [ 77.720971] usbcore: registered new interface driver usbhid
Aug 6 15:24:21 unkn0wn-XPS kernel: [ 77.720977] usbhid: USB HID core driver
Aug 6 16:54:48 unkn0wn-XPS kernel: [ 5502.061589] usb 4-2: device not accepting address 2, error -12
Aug 6 16:54:48 unkn0wn-XPS kernel: [ 5502.061712] hub 4-0:1.0: couldn't allocate port 2 usb_device
Aug 6 16:54:53 unkn0wn-XPS kernel: [ 5507.366744] hub 4-0:1.0: couldn't allocate port 2 usb_device
Aug 6 16:54:54 unkn0wn-XPS kernel: [ 5507.558569] hub 4-0:1.0: couldn't allocate port 2 usb_device
Aug 6 16:54:54 unkn0wn-XPS kernel: [ 5507.750471] hub 4-0:1.0: couldn't allocate port 2 usb_device
Aug 6 16:54:54 unkn0wn-XPS kernel: [ 5507.942419] hub 4-0:1.0: couldn't allocate port 2 usb_device
Aug 6 16:54:54 unkn0wn-XPS kernel: [ 5508.134269] hub 4-0:1.0: couldn't allocate port 2 usb_device
Aug 6 16:54:54 unkn0wn-XPS kernel: [ 5508.326158] hub 4-0:1.0: couldn't allocate port 2 usb_device
Aug 6 16:54:55 unkn0wn-XPS kernel: [ 5508.518027] hub 4-0:1.0: couldn't allocate port 2 usb_device
Aug 6 16:54:55 unkn0wn-XPS kernel: [ 5508.709959] hub 4-0:1.0: couldn't allocate port 2 usb_device
Aug 6 16:54:55 unkn0wn-XPS kernel: [ 5508.901852] hub 4-0:1.0: couldn't allocate port 2 usb_device
Aug 6 16:54:55 unkn0wn-XPS kernel: [ 5509.093703] hub 4-0:1.0: couldn't allocate port 2 usb_device
Aug 6 16:54:55 unkn0wn-XPS kernel: [ 5509.285661] hub 4-0:1.0: couldn't allocate port 2 usb_device
Aug 6 16:54:55 unkn0wn-XPS kernel: [ 5509.477539] hub 4-0:1.0: couldn't allocate port 2 usb_device
Aug 6 16:54:56 unkn0wn-XPS kernel: [ 5509.673435] hub 4-0:1.0: couldn't allocate port 2 usb_device
EDIT:

Note that i am using USB3.0 External in USB3.0 USB PORT. I added this because i found some bugs related to it. Is this a bug too?
Any helps from it?

Last edited by unkn(0)wn; 08-06-2013 at 06:51 AM.
 
Old 08-06-2013, 09:00 AM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
I've seen errors like that on an embedded Linux device before, ended up adding a powered USB hub between the computer and the hard drive and it fixed the problem. I'm still not sure what the underlying cause was.
 
Old 08-20-2013, 08:50 AM   #5
unkn(0)wn
Member
 
Registered: Aug 2011
Distribution: Slackware 14, Debian 7.0.0 Wheezy, Windows 7, Windows 8
Posts: 117

Original Poster
Rep: Reputation: Disabled
External hard drives not visible when reboot from windows to debian

Hello all,

I have configured fstab via UUID. And it works great. Now below is the scenario when problems occurs.

BOOT -> Debian -> OK (Hard Drive works Perfectly)
BOOT -> Windows - > (Reboot) -> Debian -> WRONG (No Harddrives detected. Not even in fdisk -l)
BOOT -> Windows -> (Shutdown) -> Boot -> Debian -> OK

Any ideas?
Thanks.
 
Old 08-20-2013, 08:31 PM   #6
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,345
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
Just for grins and giggles, could you post the output of fdisk -l?

Also, after doing each boot to Debian in the sequence listed above, you might take a look at /var/log/messages in Debian to see if any differences stand out.

It doesn't seem relevant if you are not even seeing the drives in fdisk -l, but, if those drives are formatted NTFS, Debian doesn't include NTFS drivers by default, because Debian is aggressively free. However, they are available.

https://wiki.debian.org/NTFS

Last edited by frankbell; 08-20-2013 at 08:34 PM.
 
  


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
Harddrive not detected by linux divyashree Linux - Hardware 2 04-01-2009 10:15 AM
SATA II harddrive not detected Slackware 12 Mr_Weirdo Slackware 20 10-28-2007 11:13 AM
USB Harddrive detected, not in /dev Phaux Linux - Hardware 2 01-04-2006 04:49 PM
Installing linux on 2nd harddrive(dual boot) windows on seperate harddrive lysol Linux - Software 25 08-03-2004 09:33 AM
Linux Installation FAILURE harddrive not detected lysol Linux - Hardware 35 07-30-2004 03:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:07 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
Open Source Consulting | Domain Registration