LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-19-2007, 05:28 PM   #1
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Rep: Reputation: 30
Question Cannot mount USB Hard Drive - SOLVED


I'm a little rusty on my Linux so I'm sure this is something simple and stupid that I'm missing, but I can't get my USB hard drive to mount in slackware. I just compiled the 2.6.21.5 kernel (although it didn't work on the 2.4.33.3 from the installation either) and I have the usbcore, usb-storage, and ehci-hcd modules loaded, but when I plug in my usb hard drive, it gets power, but I can't mount it. I'm using an SATA hard drive, so my sda device is that, so I don't know what device it would be either, but nothing shows up in dmesg or lsusb when I connect it.

Thanks in advance for any help.

Last edited by CartersAdvocate; 06-23-2007 at 01:57 AM.
 
Old 06-19-2007, 07:52 PM   #2
davimint
Member
 
Registered: Jan 2006
Distribution: Slackware Current
Posts: 272

Rep: Reputation: 33
Just a thought, have you tried booting with the drive pluged in. The kernel may reconize it if it's plug in during boot. May be worth a try. If it does then you can write a udev rule to take care of it so the SYSFS will know what it is when the kernel see's it.
 
Old 06-19-2007, 11:29 PM   #3
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Original Poster
Rep: Reputation: 30
No, it still doesn't work when I have it plugged in when I boot. I looked through the entire dmesg after I booted up, and noticed this:

ehci_hcd 0000:00:02.1: Found HC with no IRQ. Check BIOS/PCI 0000:00:02.1 setup!
ehci_hcd 0000:00:02.1: init 0000:00:02.1 fail, -19

Also, I keep seeing this in dmesg which I think may correlate to when I plug the hard drive in:

atkbd.c: Unknown key released (translated set 2, code 0x81 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e001 <keycode>' to make it known.


Let me know if either of those mean anything to you.
 
Old 06-20-2007, 08:51 AM   #4
quietguy47
Member
 
Registered: Mar 2003
Location: Everett
Distribution: Slackware
Posts: 805

Rep: Reputation: 35
Could you tell us a little about the usb drive itself? Manufacturer, how old (1.1 or 2.0)? Thank you.
 
Old 06-20-2007, 09:00 AM   #5
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
Post Results of:

ls -l /dev/usb

ls -lR /dev/disk

udevinfo -a -p /sys/block/sda

and do you have scsi support enabled?
 
Old 06-20-2007, 05:53 PM   #6
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Original Poster
Rep: Reputation: 30
It's an Iomega 80GB USB 2.0 hard drive. I'm at work and don't have the drive plugged in, so I can't give the results of those commands yet. Yes SCSI is enabled, though, I know that.
 
Old 06-20-2007, 08:07 PM   #7
quietguy47
Member
 
Registered: Mar 2003
Location: Everett
Distribution: Slackware
Posts: 805

Rep: Reputation: 35
Have you added it to /etc/fstab and /mnt?
 
Old 06-20-2007, 09:01 PM   #8
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by quietguy47
Have you added it to /etc/fstab and /mnt?
What would I add to fstab? It's not /dev/sda1 because that's my internal SATA hard drive

Last edited by CartersAdvocate; 06-20-2007 at 09:04 PM.
 
Old 06-20-2007, 09:40 PM   #9
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
the way I do it is:

1. plug in the device
2. dmesg | tail
3. vi /etc/fstab
/dev/sdb1 /media/usb0 auto noauto,owner,users,rw 0 0

4. mkdir /media/usb0
5. mount /media/usb0

hth

<examples> 1&2
Code:
$ dmesg | tail
ehci_hcd 0000:00:1d.7: qh dfed7480 (#00) state 4
sda: Write Protect is off
sda: Mode Sense: 02 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
sda: Write Protect is off
sda: Mode Sense: 02 00 00 00
sda: assuming drive cache: write through
 sda: sda1
sd 0:0:0:0: Attached scsi removable disk sda
3
Code:
$ cat /etc/fstab 
/dev/hda10       swap             swap        defaults         0   0
/dev/hda4        /                reiserfs    defaults         1   1
/dev/hda1        /boot            ext2        defaults         1   2
/dev/hda6        /opt             reiserfs    defaults         1   2
/dev/hda7        /usr             reiserfs    defaults         1   2
/dev/hda8        /home            reiserfs    defaults         1   2
/dev/hda9        /mnt/alt         reiserfs    defaults         1   2

/dev/hda2        /mnt/win         ntfs        ro               1   0
/dev/hda5        /mnt/shared      vfat        owner,users,rw    1   0

/dev/cdrom       /media/cdrom0     auto        noauto,owner,users,ro  0 0
/dev/sda1        /media/usb0       auto        noauto,owner,users,rw  0 0
/dev/sda2       /media/usb1        auto        noauto,owner,users,rw  0 0
/dev/sdb1        /media/usb2       auto        noauto,owner,users,rw  0 0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
now for your situation, the device should be sdb1, unless you have two SATA drives already connected, in either case the dmesg | tail should show you where its getting put in /dev

btw - there is a more elegant way to handle this stuff with udev rules (or so I've heard)

Last edited by bioe007; 06-20-2007 at 09:44 PM.
 
Old 06-20-2007, 10:55 PM   #10
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Original Poster
Rep: Reputation: 30
Nothing shows up in dmesg when I plug it in...which is the problem. I'll have to check my mobo connection and my BIOS when I get home tomorrow. There's something not talking right between my USB port and my kernel I think.
 
Old 06-21-2007, 07:59 AM   #11
agentc0re
Member
 
Registered: Apr 2007
Location: SLC, UTAH
Distribution: Slackware
Posts: 200

Rep: Reputation: 34
is the USB harddrive found on another machine? do you have a USB Mouse? if you do plug your mouse into the other use ports to see if they are working. that'll save you the trouble of taking your box apart unless they really aren't plugged in there well.
 
Old 06-21-2007, 09:11 AM   #12
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by agentc0re
is the USB harddrive found on another machine? do you have a USB Mouse? if you do plug your mouse into the other use ports to see if they are working. that'll save you the trouble of taking your box apart unless they really aren't plugged in there well.
My USB hard drive has worked fine on all my Windoze boxes...I'll try the USB mouse.
 
Old 06-21-2007, 09:31 AM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Some USB or SCSI modules may not be loaded or compiled into the kernel.
Post the output of the command lsmod.
 
Old 06-21-2007, 02:23 PM   #14
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Original Poster
Rep: Reputation: 30
here's the results of ls -l /dev/usb and ls -lR /dev/disk

Code:
root@gijeff:~# ls -l /dev/usb
/bin/ls: /dev/usb: No such file or directory
root@gijeff:~# ls -lR /dev/disk
/dev/disk:
total 0
drwxr-xr-x 2 root root 160 2007-06-21 05:14 by-id/
drwxr-xr-x 2 root root 180 2007-06-21 05:14 by-path/
drwxr-xr-x 2 root root  80 2007-06-21 05:14 by-uuid/

/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root  9 2007-06-21 05:14 ata-TOSHIBA_DVD-ROM_SD-M1502_5100200569 -> ../../hdb
lrwxrwxrwx 1 root root  9 2007-06-21 05:14 scsi-1ATA_MAXTOR_STM3320620AS -> ../../sda
lrwxrwxrwx 1 root root 10 2007-06-21 05:14 scsi-1ATA_MAXTOR_STM3320620AS-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2007-06-21 05:14 scsi-1ATA_MAXTOR_STM3320620AS-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2007-06-21 05:14 scsi-1ATA_MAXTOR_STM3320620AS-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 2007-06-21 05:14 scsi-1ATA_MAXTOR_STM3320620AS-part4 -> ../../sda4

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root  9 2007-06-21 05:14 pci-0000:00:06.0-ide-0:0 -> ../../hda
lrwxrwxrwx 1 root root  9 2007-06-21 05:14 pci-0000:00:06.0-ide-0:1 -> ../../hdb
lrwxrwxrwx 1 root root  9 2007-06-21 05:14 pci-0000:00:08.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 2007-06-21 05:14 pci-0000:00:08.0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2007-06-21 05:14 pci-0000:00:08.0-scsi-0:0:0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2007-06-21 05:14 pci-0000:00:08.0-scsi-0:0:0:0-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 2007-06-21 05:14 pci-0000:00:08.0-scsi-0:0:0:0-part4 -> ../../sda4

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 10 2007-06-21 05:14 bac97b2e-3f02-48ec-8fd6-52b83742ea25 -> ../../sda3
lrwxrwxrwx 1 root root 10 2007-06-21 05:14 daa73962-0a13-4ae8-8e5b-3f64df99529c -> ../../sda1
here's the results of lsmod:

Code:
root@gijeff:~# lsmod
Module                  Size  Used by
usb_storage            58560  0
ipv6                  200544  12
ipt_LOG                 5632  1
xt_tcpudp               3200  5
iptable_filter          2436  1
ip_tables               9560  1 iptable_filter
x_tables               10756  3 ipt_LOG,xt_tcpudp,ip_tables
ide_scsi               13068  0
agpgart                26672  0
evdev                   7552  0
8250_pnp                9216  0
sk98lin               136864  0
8250                   17572  1 8250_pnp
serial_core            14976  1 8250
ohci1394               28596  0
ehci_hcd               25368  0
forcedeth              37920  0
usbcore               103324  3 usb_storage,ehci_hcd
shpchp                 26784  0
ieee1394               77792  1 ohci1394
pci_hotplug             8840  1 shpchp
parport_pc             23012  0
parport                28360  1 parport_pc
udevinfo -a -p /sys/block/sda just gives me information on my SATA hard drive...using /sys/block/sdb returns nothing.

Also, I tried plugging in a USB mouse and it also doesn't show anything on dmseg. I forgot my new motherboard has the USB ports built into it, so there's no connection to check, so that isn't the problem. I think the problem may be BIOS related. I looked through dmesg again and here's the few lines before the one I posted before:

Code:
PCI: No IRQ known for interrupt pin A of device 0000:05:0b.0.
ohci1394: Failed to allocate shared interrupt 0
ohci1394: probe of 0000:05:0b.0 failed with error -12
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
PCI: No IRQ known for interrupt pin B of device 0000:00:02.1.
ehci_hcd 0000:00:02.1: Found HC with no IRQ.  Check BIOS/PCI 0000:00:02.1 setup!
ehci_hcd 0000:00:02.1: init 0000:00:02.1 fail, -19
 
Old 06-21-2007, 08:06 PM   #15
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
you probably left out some needed modules. try a knoppix or ubuntu cd to see if it works there then you'll know what you left out.
 
  


Reply

Tags
harddrive, slackware, usb



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
How to mount a USB hard drive? mesh2005 Linux - Hardware 3 11-15-2006 01:51 AM
mount usb hard drive ckamheng Debian 8 03-16-2006 10:25 AM
How to mount usb hard drive NalinA Linux - Newbie 1 10-26-2005 10:07 PM
USB hard drive, how do I mount it? Oxyacetylene Debian 11 10-24-2004 06:00 PM
mount usb module then mount usb hard drive guanyu Linux - Hardware 1 10-08-2003 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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