Linux - NewbieThis 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
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.
to use my usb flash drives and my digital camera. It works fine. BUT, I can only do it once. So I will mount the device and the umount it. After this I cannot ever mount any other device without rebooting. If I try I will get
Code:
not a valid block device
. My kernel is 2.4.31 running on slackware. I have had this problem on previous slackwares running older kernels too, even on different machines.
I just want to fix this annoyance to save rebooting and time.
Can you mount the same USB peripheral after umount? If so, then possibly the USB driver is seeing the new peripheral in a different location, requiring a mount /dev/sda2 /where/ever, etc.
I only have a flash drive, which mounts multiple times with no problems on Slack 10.0 as /dev/sda1. So I'm only guessing. But, I've seen the same problem with multiple USB printers if they are turned off and then back on in a different order, ie., they are placed on a different block device.
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606
Rep:
there are bash scripts around for any stubborn devices which do not want
to get unmounted, maybe that would help, I do not have a link at hand
(maybe google umount + bash + script + stubborn ) or whatever
It could be a question of killing the process that used the usb device.
I have read as well about "usb devices that get mixed up"
Finally, I do not think you need to reboot
At worth maybe you could do
service nameofservicefor_USB restart
or maybe just remove from memory OHCI and UHCI kernel model
and then modprobe them back in
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
I have a digital camera that turns off by itself. The device node, sdb1 goes away, and when I turn it on sdb doesn't come back. I thought it was something to do with the usb hotplug driver.
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606
Rep:
AwesomeMachine you are right
so
service hotplug restart
might be worth testing for servnov
(even after the camera was manually added and umounted)
Does servnov has hotplug running?
servnov could probably add a line in fstab, the camera will still be mounted
only when present
I do not know in slack, but in mandy there is a libgphoto.conf
some kind of conf file in which the user sometimes need to add
the hexa ID of the camera to make it mount automatically.
A few scripts are called. I do not have the pc here to tell which one
(one is camera.sh AFAIK so even if digikam for example
does not know about the camera, it is still mounted
as usb mass storage and konqueror is launched).
Found out it worked only if I had service HAL running as well
(because one of the script uses it to id the camera)
I just figured it out!!!! If I mount /dev/sda1 and then umount I can't remount since I get the not valid block device error. However, I can mount using /dev/sdb1 and it works! Thanks bros.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.