LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-25-2005, 10:01 PM   #1
servnov
Member
 
Registered: Sep 2004
Distribution: Slackware 10.2
Posts: 276

Rep: Reputation: 30
Can't remount USB device unless I reboot


I use
Code:
mount /dev/sda1 /where/ever
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.
 
Old 10-25-2005, 10:59 PM   #2
herbc
Member
 
Registered: May 2004
Location: United States
Distribution: Slackware 10.0
Posts: 72

Rep: Reputation: 15
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.
 
Old 10-26-2005, 01:58 AM   #3
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
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
 
Old 10-26-2005, 02:09 AM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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.
 
Old 10-26-2005, 02:32 AM   #5
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
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 might be well on a wild goose chase here
 
Old 10-29-2005, 01:11 PM   #6
servnov
Member
 
Registered: Sep 2004
Distribution: Slackware 10.2
Posts: 276

Original Poster
Rep: Reputation: 30
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.
 
  


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
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 07:32 AM
How do I remount a network SMB share (on reboot) requiring a username & password BuckRogers01 Linux - Networking 1 07-09-2005 11:53 AM
HP Deskjet (USB) & CUPS & Slackware 9.1: Unable to open USB device "usb:/dev/usb/lp0&qu arnostienen Slackware 2 01-29-2004 03:22 PM
USB drive mount disappears randomly, cannot remount (Red Hat 9) Bigglesworth Linux - General 11 01-02-2004 11:50 AM
USB drive mount disappears randomly, cannot remount (redhat 9) Bigglesworth Linux - Hardware 0 12-21-2003 12:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:53 AM.

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