LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-15-2004, 02:00 PM   #1
malek_baklouti
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Rep: Reputation: 0
How to mount my USB mobile disk


I m a newbie in Linux... I've recently installed it in my computer...
but Ican't use my usb mobile disk, it seems that it must be mounted before I can use it...
I would be gratefull if you can help me to mount it... should there be a driver that I must install before?

thank you very much
 
Old 04-15-2004, 04:19 PM   #2
bryanl
Member
 
Registered: Dec 2003
Posts: 85

Rep: Reputation: 33
you shouldn't need a driver if your linux is fairly up to date.

you will need to be root for these kinds of things.

first make a mount point (e.g. mkdir /mnt/usbdrive)

second, look at the message log (e.g. tail /var/log/message)

third, mount your drive (e.g. mount /dev/sda1 /mnt/usbdrive)

then you should be able to see your usb drive (e.g. ls /mnt/usbdrive)

If you can't figure out which device your usb is, try a few. It's likely to be sda1, sdb1, sdc1 etc depending upon which usb port you are plugged into. It you try to mount and get an error message like "not a valid block device" try another. The sda sdb etc is because the usb stuff uses scsi stuff for access. the 1 is to mount the first partition on the usb drive.

The assumption is that the usb drive is formatted as FAT which is automatically detected by mount.
 
Old 04-15-2004, 04:43 PM   #3
malek_baklouti
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
thank you for your response, I'll try it now.. but I didn't get what the tail do exactly?
 
Old 04-15-2004, 04:52 PM   #4
bryanl
Member
 
Registered: Dec 2003
Posts: 85

Rep: Reputation: 33
tail /var/log/message will show the end of the message file. When you insert your USB drive, there will often be a log entry that shows what device (/dev/hda or whatever) has been detected. If you can find this log message then you know what device to mount.

Sometimes this message will show up on the console if you are logged in as root when you stick the drive in the USB socket.
 
Old 04-15-2004, 05:18 PM   #5
malek_baklouti
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
the usbdriver hadn't been detected (( so there was no folder in the /dev
what is the problem in your opinion?
what shall I do?
 
Old 04-15-2004, 09:22 PM   #6
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 10.04/12.04, Scientific Linux 6.3, Android-x86, Maemo
Posts: 1,658

Rep: Reputation: 138Reputation: 138
Seems like one of two possible things:

1) you failed to install the USB services like Hotplug... They should be installed...
2) Hotpug is there, but SCSI emulation is not,... install the SCSI related packages...

Linux uses SCSI emulation to talk to USB drives.

These reasons are generally why USB mass storage devices fail to install...
 
Old 04-16-2004, 10:00 AM   #7
malek_baklouti
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
How to install the hotplug? I thing that it's not installed...
 
Old 04-16-2004, 02:10 PM   #8
Phorem
Member
 
Registered: Nov 2003
Location: Toronto, Canada
Distribution: Gentoo AMD64
Posts: 374

Rep: Reputation: 30
If it's a standard installation from Mandrake, Red Hat or something like that, just try .....

modprobe hotplug

Then plug the usb drive in again and try doing the mounting stuff as mentioned above. But if it was a standard distro, Hotplug should be running already.
 
Old 04-19-2004, 12:34 PM   #9
malek_baklouti
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
I tried as said in the last suggestion to install the hotplug, and when I write the command : " modprobe hotplug "

there is an error : " modprobe : can't locate module hotplug".

....
what shall I do?
 
Old 04-19-2004, 04:09 PM   #10
tmillard
Member
 
Registered: Sep 2003
Distribution: Gentoo
Posts: 74

Rep: Reputation: 15
What distro. do you have?
 
Old 04-19-2004, 04:10 PM   #11
Phorem
Member
 
Registered: Nov 2003
Location: Toronto, Canada
Distribution: Gentoo AMD64
Posts: 374

Rep: Reputation: 30
What distro are you using? That might help a bit.

If you're a nOOb, then i would try something like Mandrake. That automatically connects my wifes camera and my obscure camcorder so i can read the memory cards like a usb drive.

Everything eles listed above in this post should have worked by now. Seeing how your usb isn't working and i have no clue what distro you are using, there is no point in me blabing about a bunch of "possible fixes/problems" until there is a little more info on the table.
 
Old 04-20-2004, 11:50 AM   #12
malek_baklouti
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
sorry but I didn't understand what's a "distro"?
what a "nOOb"?

I'm using redhat Linux 9.0...
 
Old 04-20-2004, 01:01 PM   #13
Phorem
Member
 
Registered: Nov 2003
Location: Toronto, Canada
Distribution: Gentoo AMD64
Posts: 374

Rep: Reputation: 30
A distro is what kind of linux you are using - distribution. A noob is someone who has just started linux (or anything for that matter).

Try doing this in a console (and as root using su or sudo)......

lsmod - (look for a module called "sg")
If not, then "modprobe sg".

Next, type "dmesg" while your usb drive is plugin and turned on (if that is possible). There should be a message on the very last line about your usb storage device. If it's there, than you need to mount it.

Make a directory in /mnt/ called "hd" or whatever you want.

Now, this is the hard part. You need to find what device is being used for the hard drive. It might be /dev/sda or /dev/sg1 or a couple of others i think. It sucks, i know, but i don't know how to check (i did the tail /var/log thing but nothing was there) where the device is whithout a lot of hit and miss. If you find it, try this.....

mount /dev/sda(for example) /mnt/hd

That's all i got. Sorry. :-)
 
Old 04-23-2004, 09:43 AM   #14
linuxfordumee
LQ Newbie
 
Registered: Feb 2004
Location: NYC
Distribution: Fedora Core 1
Posts: 3

Rep: Reputation: 0
I just wanted to say (since I am a nOOb myself) that this worked perfectly for my Archos Jukebox and I am using Fedora Core 1. Thanks so much!
 
  


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
Mount USB disk with permissions EcceVery Debian 4 06-05-2005 12:18 PM
How do I get my USB 2.0 Hard Disk to MOUNT? Hawky Linux - Newbie 5 10-26-2004 12:11 AM
How do you mount a USB flash Disk?? chutsu Linux - Hardware 1 09-02-2004 06:00 PM
How to mount my usb hard disk? raoqn Fedora 1 04-01-2004 05:21 AM
How to mount my USB mobile hard disk? tx-cary Linux - Hardware 13 02-02-2004 12:19 PM


All times are GMT -5. The time now is 10:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration