The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Ubuntu
.
google unix.com



Ubuntu Ubuntu is a complete desktop Linux operating system, freely available with both community and professional support.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Does HPUX 10.2 or 11.i support any USB flash drive? jkend12 UNIX for Dummies Questions & Answers 0 04-01-2008 10:15 PM
mounting USB floppy drive /Flash drive in OSR 6.0 sureshdrajan SCO 5 02-29-2008 12:36 PM
USB flash drive is not mounting what to do...? manoranjan UNIX for Dummies Questions & Answers 5 12-21-2006 12:34 PM
USB flash Drive vr76413 SUN Solaris 4 11-14-2006 11:04 PM
I Want To Automount My Hard Drive!!! mynameiskyle UNIX for Dummies Questions & Answers 5 11-05-2002 02:56 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-07-2009
ropers's Avatar
ropers ropers is offline
Registered User
  
 

Join Date: Dec 2001
Location: Dublin
Posts: 48
USB flash drive/keyfob will not automount

I am working on an Ubuntu Linux 8.10 system that I do not want to reboot. For some reason, USB flash drives (mass storage devices) now no longer automount. I want to restore that functionality without rebooting. I can manually mount and unmount these things by doing:

Code:
cd /media
sudo mkdir thing
sudo mount /dev/sda thing
sudo umount thing
sudo rmdir thing
I don't seem to be able to see the USB drive thing recognized in lsusb:

Code:
$ lsusb
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 15ca:00c3 Textech International Ltd. Mini Optical Mouse
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
When I newly attach one of these things, I get this in my dmesg:

Code:
[1140463.652040] usb 5-2: new high speed USB device using ehci_hcd and address 32
[1140463.785327] usb 5-2: configuration #1 chosen from 1 choice
[1140463.786439] scsi29 : SCSI emulation for USB Mass Storage devices
[1140463.787213] usb-storage: device found at 32
[1140463.787219] usb-storage: waiting for device to settle before scanning
[1140468.784253] usb-storage: device scan complete
[1140468.784736] scsi 29:0:0:0: Direct-Access CBM  Flash Disk   4.00 PQ: 0 ANSI: 2
[1140468.786079] sd 29:0:0:0: [sda] 1019711 512-byte hardware sectors (522 MB)
[1140468.786575] sd 29:0:0:0: [sda] Write Protect is off
[1140468.786580] sd 29:0:0:0: [sda] Mode Sense: 00 00 00 00
[1140468.786584] sd 29:0:0:0: [sda] Assuming drive cache: write through
[1140468.787826] sd 29:0:0:0: [sda] 1019711 512-byte hardware sectors (522 MB)
[1140468.788324] sd 29:0:0:0: [sda] Write Protect is off
[1140468.788330] sd 29:0:0:0: [sda] Mode Sense: 00 00 00 00
[1140468.788333] sd 29:0:0:0: [sda] Assuming drive cache: write through
[1140468.788340]  sda: sda1
[1140468.789698] sd 29:0:0:0: [sda] Attached SCSI removable disk
[1140468.789959] sd 29:0:0:0: Attached scsi generic sg2 type 0
But the device never turns up in Nautilus.

Any ideas?
  #2 (permalink)  
Old 01-16-2009
techlinux techlinux is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 86
see here
Auto mounting USB devices- http://wiki.archlinux.org/index.php/...h_Auto-Loading
and HALinfo here- http://wiki.archlinux.org/index.php/HAL
What is output of
Code:
fdisk -l
if flash device is plugged in?

Last edited by techlinux; 01-16-2009 at 10:05 AM..
  #3 (permalink)  
Old 01-16-2009
ropers's Avatar
ropers ropers is offline
Registered User
  
 

Join Date: Dec 2001
Location: Dublin
Posts: 48
Thanks for your reply techlinux, and thanks for the links which I will read.

By now however I have rebooted the machine, and the problem is gone. Not how I would have liked to resolve the issue, but that's what it is. Still, your links should enable me to work more, and be better equipped if this happens again, so thank you.
  #4 (permalink)  
Old 01-31-2009
syadnom syadnom is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 8
good that your problem is not an issue anymore. if you do need to correct this in the future, just restart udev. that should fix you up.
  #5 (permalink)  
Old 05-27-2009
robgwin robgwin is offline
Registered User
  
 

Join Date: May 2009
Posts: 1
Solved by restarting HAL

I just had this same issue on Ubuntu 9.04. My USB thumb drive was automounting correctly all day, and I made sure to unmount (eject) before removing it every time, but for whatever reason, it suddenly stopped mounting when I plugged it in.

Thanks to the links provided by techlinux, I learned a bit about HAL, and running "ps aux | grep hal" turned up a line like this:

hald-addon-storage: no polling because /dev/sdc is locked via HAL

With the usb drive unplugged, I restarted HAL, and that fixed the problem, hooray. However, the command is slightly different than specified in the HAL wiki. /etc/rc.d/hal doesn't exist (in fact, /etc/rc.d doesn't exist). This is the command I used:

sudo /etc/init.d/hal restart

Now.. how do we figure out what causes the polling/locked problem in the first place?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:55 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0