LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-19-2003, 02:03 PM   #1
yocompia
Member
 
Registered: Apr 2003
Location: Chicago, IL
Distribution: openbsd 3.6, slackware 10.0
Posts: 244

Rep: Reputation: 30
Question mounting a usb hard drive


my buddy has an external usb hard drive and we just installed linux on his laptop. i'm having trouble finding out how to mount this drive so he can access it, and i don't know which modules are required to do this.

if somebody could tell me which modules i need to insert and the syntax for the mounting, i would be grateful. in the meantime, i'll try to figure out which modules are neccessary by rebooting and letting the plug-n-play load the modules and try doing detective work from there.

thx for reading,
y-p
 
Old 10-19-2003, 02:08 PM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
The modules might get loaded automatically once you plugin the device. See if the USB drive appears in the output of
fdisk -l

The USB drive will appear as a scsi device. In my case, it's
/dev/scsi/host0/bus0/target0/lun0/disc

If it does appear, the partitions on it should be /dev/sdaX, or /dev/sdbX where X is the partition number. You can then mount the partitions using these device names.
 
Old 10-19-2003, 02:11 PM   #3
emilryge
LQ Newbie
 
Registered: Aug 2003
Location: Copenhagen, Denmark
Distribution: Slackware 10
Posts: 28

Rep: Reputation: 15
Try to look in /var/log/messages. Thats what I do when i need to figure out, where my usb storage key is located.

- Emil
 
Old 10-19-2003, 02:20 PM   #4
yocompia
Member
 
Registered: Apr 2003
Location: Chicago, IL
Distribution: openbsd 3.6, slackware 10.0
Posts: 244

Original Poster
Rep: Reputation: 30
ok, i tried the "#fdisk -l" and only the on-board hard drive came up. then i checked the messages log and i found the following 2 entries:

Oct 19 13:24:25 shitbox kernel: hub.c: new USB device 00:01.2-2, assigned address 2
Oct 19 13:24:29 shitbox /etc/hotplug/usb.agent: ... no modules for USB product 67b/2307/100

does this mean that this usb drive is not linux compatible? got any more suggestions?
 
Old 10-19-2003, 02:23 PM   #5
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
try
modprobe usb-storage
(as root). This is the module used for usb harddrives. And see if it now appears in the output of fdisk -l
 
Old 10-19-2003, 02:31 PM   #6
yocompia
Member
 
Registered: Apr 2003
Location: Chicago, IL
Distribution: openbsd 3.6, slackware 10.0
Posts: 244

Original Poster
Rep: Reputation: 30
tried it, and still no dice. i got the following in /var/log/messages (which is encouraging):

Oct 19 14:20:46 shitbox kernel: Initializing USB Mass Storage driver...
Oct 19 14:20:46 shitbox kernel: usb.c: registered new driver usb-storage
Oct 19 14:20:46 shitbox kernel: USB Mass Storage support registered.

it's also notable that my lsmod has the usbcore used, but neither the uhci or the usb-storage appear to be used:

usb-storage 65568 0 (unused)
...
uhci 24528 0 (unused)
usbcore 58400 2 [usb-storage uhci]

i'll try just rebooting it now, to see if that fixes anything. thx for the quick replies.
 
  


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
Mounting usb hard drive and memory key osumanus SUSE / openSUSE 2 04-19-2005 08:16 PM
Problem mounting USB hard drive kernelbuster Linux - Enterprise 0 02-14-2005 04:36 PM
Mounting USB Hard Drive in SuSE 9.1 Caboose447 SUSE / openSUSE 4 12-13-2004 10:39 AM
mounting usb hard drive frostedthorns Fedora 4 07-01-2004 10:51 PM
mounting a usb hard drive--PPC arch. tomservo Linux - Hardware 3 07-16-2002 09:12 AM

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

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