Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802
Rep:
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...
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.
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.
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.....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.