LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 04-13-2005, 10:43 PM   #1
paintitmatt
LQ Newbie
 
Registered: Apr 2005
Distribution: Ubuntu Hoary
Posts: 3

Rep: Reputation: 0
Question removable drives don't auto mount


I recently upgraded from Warty to Hoary, now my iPod, USB flash drive and media reader don't auto mount...

I get an error while booting which is:
Code:
modprobe fatal error inserting pciehp (/lib/modules/2.6.10-5-386/kernal/drivers/pci/hotplug/pciehp.ko) no such device
How can fix this? There's a how-to in the Ubuntu forums on how to ignore the error but I want to fix the problem so my iPod, USB flash drive and media reader auto mount.
 
Old 04-14-2005, 02:52 PM   #2
paintitmatt
LQ Newbie
 
Registered: Apr 2005
Distribution: Ubuntu Hoary
Posts: 3

Original Poster
Rep: Reputation: 0
so this error is related to pci express, which I don't have. It still doesn't help me auto mount removable drives whin I plug them in...
please help.
 
Old 04-15-2005, 02:14 PM   #3
paintitmatt
LQ Newbie
 
Registered: Apr 2005
Distribution: Ubuntu Hoary
Posts: 3

Original Poster
Rep: Reputation: 0
so I sudo tail -f /var/log/syslog

and this is what printed after I plugged in my USB jump drive:
Code:
Apr 15 13:48:36 localhost kernel: usb 1-2.4: new full speed USB device using uhci_hcd and address 5
Apr 15 13:48:36 localhost kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Apr 15 13:48:36 localhost kernel: usb-storage: device found at 5
Apr 15 13:48:36 localhost kernel: usb-storage: waiting for device to settle before scanning
Apr 15 13:48:37 localhost usb.agent[370]:      usb-storage: already loaded
Apr 15 13:48:41 localhost kernel:   Vendor: LEXAR     Model: JUMPDRIVE SPORT   Rev: 2000
Apr 15 13:48:41 localhost kernel:   Type:   Direct-Access                      ANSI SCSI revision: 00
Apr 15 13:48:41 localhost kernel: SCSI device sdb: 248928 512-byte hdwr sectors (127 MB)
Apr 15 13:48:41 localhost kernel: sdb: Write Protect is off
Apr 15 13:48:41 localhost kernel: sdb: Mode Sense: 43 00 00 00
Apr 15 13:48:41 localhost kernel: sdb: assuming drive cache: write through
Apr 15 13:48:41 localhost kernel: SCSI device sdb: 248928 512-byte hdwr sectors (127 MB)
Apr 15 13:48:41 localhost kernel: sdb: Write Protect is off
Apr 15 13:48:41 localhost kernel: sdb: Mode Sense: 43 00 00 00
Apr 15 13:48:41 localhost kernel: sdb: assuming drive cache: write through
Apr 15 13:48:41 localhost kernel:  /dev/scsi/host2/bus0/target0/lun0: p1
Apr 15 13:48:41 localhost kernel: Attached scsi removable disk sdb at scsi2, channel 0, id 0, lun 0
Apr 15 13:48:41 localhost udev[479]: PROGRAM execution of '/etc/udev/removable.sh sdb' failed
Apr 15 13:48:41 localhost udev[472]: creating device node '/dev/sdb'
Apr 15 13:48:41 localhost kernel: usb-storage: device scan complete
Apr 15 13:48:41 localhost scsi.agent[471]: disk at /devices/pci0000:00/0000:00:1f.2/usb1/1-2/1-2.4/1-2.4:1.0/host2/target2:0:0/2:0:0:0
Apr 15 13:48:42 localhost udev[497]: PROGRAM execution of '/etc/udev/removable.sh sdb1' failed
Apr 15 13:48:42 localhost udev[496]: creating device node '/dev/sdb1'
I then removed the jumpdrive, plugged in the media reader with a card already inserted and got
Code:
Apr 15 13:54:24 localhost kernel: usb 1-2.3: new full speed USB device using uhci_hcd and address 6
Apr 15 13:54:24 localhost kernel: scsi3 : SCSI emulation for USB Mass Storage devices
Apr 15 13:54:24 localhost kernel: usb-storage: device found at 6
Apr 15 13:54:24 localhost kernel: usb-storage: waiting for device to settle before scanning
Apr 15 13:54:24 localhost usb.agent[2892]:      usb-storage: already loaded
Apr 15 13:54:29 localhost kernel:   Vendor: Generic   Model: USB Storage-SMC   Rev: 0217
Apr 15 13:54:29 localhost kernel:   Type:   Direct-Access                      ANSI SCSI revision: 00
Apr 15 13:54:29 localhost kernel: SCSI device sda: 16001 512-byte hdwr sectors (8 MB)
Apr 15 13:54:29 localhost kernel: sda: Write Protect is off
Apr 15 13:54:29 localhost kernel: sda: Mode Sense: 00 00 00 00
Apr 15 13:54:29 localhost kernel: sda: assuming drive cache: write through
Apr 15 13:54:29 localhost kernel: SCSI device sda: 16001 512-byte hdwr sectors (8 MB)
Apr 15 13:54:29 localhost kernel: sda: Write Protect is off
Apr 15 13:54:29 localhost kernel: sda: Mode Sense: 00 00 00 00
Apr 15 13:54:29 localhost kernel: sda: assuming drive cache: write through
Apr 15 13:54:29 localhost kernel:  /dev/scsi/host3/bus0/target0/lun0: p1
Apr 15 13:54:29 localhost kernel: Attached scsi removable disk sda at scsi3, channel 0, id 0, lun 0
Apr 15 13:54:29 localhost kernel: usb-storage: device scan complete
Apr 15 13:54:30 localhost udev[2995]: PROGRAM execution of '/etc/udev/removable.sh sda' failed
Apr 15 13:54:30 localhost udev[2993]: creating device node '/dev/sda'
Apr 15 13:54:30 localhost scsi.agent[2992]: disk at /devices/pci0000:00/0000:00:1f.2/usb1/1-2/1-2.3/1-2.3:1.0/host3/target3:0:0/3:0:0:0
Apr 15 13:54:30 localhost udev[3016]: PROGRAM execution of '/etc/udev/removable.sh sda1' failed
Apr 15 13:54:30 localhost udev[3015]: creating device node '/dev/sda1'
after plugging in my iPod, it prints
Code:
Apr 15 13:58:39 localhost kernel: usb 1-2.1: new full speed USB device using uhci_hcd and address 7
Apr 15 13:58:39 localhost kernel: scsi4 : SCSI emulation for USB Mass Storage devices
Apr 15 13:58:39 localhost kernel: usb-storage: device found at 7
Apr 15 13:58:39 localhost kernel: usb-storage: waiting for device to settle before scanning
Apr 15 13:58:40 localhost usb.agent[4650]:      usb-storage: already loaded
Apr 15 13:58:44 localhost kernel:   Vendor: Apple     Model: iPod              Rev: 1.62
Apr 15 13:58:44 localhost kernel:   Type:   Direct-Access                      ANSI SCSI revision: 00
Apr 15 13:58:44 localhost kernel: SCSI device sdb: 39063023 512-byte hdwr sectors (20000 MB)
Apr 15 13:58:44 localhost kernel: sdb: Write Protect is off
Apr 15 13:58:44 localhost kernel: sdb: Mode Sense: 64 00 00 08
Apr 15 13:58:44 localhost kernel: sdb: assuming drive cache: write through
Apr 15 13:58:44 localhost kernel: SCSI device sdb: 39063023 512-byte hdwr sectors (20000 MB)
Apr 15 13:58:44 localhost kernel: sdb: Write Protect is off
Apr 15 13:58:44 localhost kernel: sdb: Mode Sense: 64 00 00 08
Apr 15 13:58:44 localhost kernel: sdb: assuming drive cache: write through
Apr 15 13:58:45 localhost kernel:  /dev/scsi/host4/bus0/target0/lun0: p1 p2
Apr 15 13:58:45 localhost kernel: Attached scsi removable disk sdb at scsi4, channel 0, id 0, lun 0
Apr 15 13:58:45 localhost kernel: usb-storage: device scan complete
Apr 15 13:58:45 localhost scsi.agent[4770]: disk at /devices/pci0000:00/0000:00:1f.2/usb1/1-2/1-2.1/1-2.1:1.0/host4/target4:0:0/4:0:0:0
Apr 15 13:58:45 localhost udev[4782]: PROGRAM execution of '/etc/udev/removable.sh sdb' failed
Apr 15 13:58:45 localhost udev[4773]: configured rule in '/etc/udev/rules.d/udev.rules' at line 68 applied, added symlink 'ipod'
Apr 15 13:58:45 localhost udev[4773]: configured rule in '/etc/udev/rules.d/udev.rules' at line 68 applied, 'sdb' becomes '%k'
Apr 15 13:58:45 localhost udev[4773]: creating device node '/dev/sdb'
Apr 15 13:58:45 localhost udev[4796]: PROGRAM execution of '/etc/udev/removable.sh sdb1' failed
Apr 15 13:58:45 localhost udev[4793]: configured rule in '/etc/udev/rules.d/udev.rules' at line 68 applied, added symlink 'ipod'
Apr 15 13:58:45 localhost udev[4793]: configured rule in '/etc/udev/rules.d/udev.rules' at line 68 applied, 'sdb1' becomes '%k'
Apr 15 13:58:45 localhost udev[4793]: creating device node '/dev/sdb1'
Apr 15 13:58:45 localhost udev[4795]: PROGRAM execution of '/etc/udev/removable.sh sdb2' failed
Apr 15 13:58:45 localhost udev[4794]: configured rule in '/etc/udev/rules.d/udev.rules' at line 68 applied, added symlink 'ipod'
Apr 15 13:58:45 localhost udev[4794]: configured rule in '/etc/udev/rules.d/udev.rules' at line 68 applied, 'sdb2' becomes '%k'
Apr 15 13:58:45 localhost udev[4794]: creating device node '/dev/sdb2'
here is my /etc/udev/rules.d/udev.rules
Code:
# There are a number of modifiers that are allowed to be used in some
# of the different fields. They provide the following subsitutions:
# %n - the "kernel number" of the device.
#      For example, 'sda3' has a "kernel number" of '3'
# %k - the kernel name for the device.
# %M - the kernel major number for the device
# %m - the kernel minor number for the device
# %b - the bus id for the device
# %c - the string returned by the PROGRAM. (Note, this doesn't work within
#      the PROGRAM field for the obvious reason.)
# %s{filename} - the content of a sysfs attribute.  
# %% - the '%' char itself.
#

# /dev/cdrom symlink
BUS="ide", KERNEL="hd[a-z]", PROGRAM="/etc/udev/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2}"

# permissions for IDE CD devices
BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom*", NAME="%k", MODE="0660", GROUP="cdrom"

# permissions for IDE floppy devices
BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="floppy*", NAME="%k", MODE="0660", GROUP="floppy"

# permissions for SCSI sg devices
BUS="scsi", KERNEL="s[grt][0-9]*", SYSFS_type="5", NAME="%k", MODE="0660", GROUP="cdrom"

# put removable IDE/SCSI devices into group 'plugdev' instead of 'disk'
BUS="scsi", KERNEL="sd[a-z]*", PROGRAM="/etc/udev/removable.sh %k", RESULT="1", NAME="%k", MODE="0660", GROUP="plugdev"
BUS="ide", KERNEL="hd[a-z]*", PROGRAM="/etc/udev/removable.sh %k", RESULT="1", NAME="%k", MODE="0660", GROUP="plugdev"

# USB devices
BUS="usb", KERNEL="hiddev*",	NAME="usb/%k"
BUS="usb", KERNEL="auer*",	NAME="usb/%k"
BUS="usb", KERNEL="legousbtower*", NAME="usb/%k"
BUS="usb", KERNEL="dabusb*",	NAME="usb/%k"
BUS="usb", KERNEL="lp[0-9]*",	NAME="usb/%k"

# ALSA devices
KERNEL="controlC[0-9]*", NAME="snd/%k"
KERNEL="hw[CD0-9]*",	NAME="snd/%k"
KERNEL="pcm[CD0-9cp]*",	NAME="snd/%k"
KERNEL="midi[CD0-9]*",	NAME="snd/%k"
KERNEL="timer",		NAME="snd/%k"
KERNEL="seq",		NAME="snd/%k"

# input devices
KERNEL="mice",		NAME="input/%k"
KERNEL="mouse*",	NAME="input/%k"
KERNEL="event*",	NAME="input/%k"
KERNEL="js*",		NAME="input/%k"
KERNEL="ts*",		NAME="input/%k"

KERNEL="card*",		NAME="dri/card%n"
KERNEL="cdemu[0-9]*",	NAME="cdemu/%n"

KERNEL="tap*",		NAME="net/%k"
KERNEL="tun",		NAME="net/%k"

# CAPI devices
KERNEL="capi",		NAME="capi20", SYMLINK="isdn/capi20"
KERNEL="capi*",		NAME="capi/%n"

# dm devices (ignore them)
KERNEL="dm-[0-9]*",	NAME=""
KERNEL="device-mapper",	NAME="mapper/control"

#my custom ipod rule
BUS="scsi", SYSFS{model}="iPod", NAME="%k", SYMLINK="ipod"
I tried to make a custom udev rule for the iPod before I upgraded to Hoary. I never got it to work correctly but I left it in there and would fiddle with it from time to time.
If I could get things to mount in the same place evey time that would be awesome, but I'll settle for things automounting...
 
  


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
How to mount a removable media using C skie_knite007 Programming 1 10-02-2005 01:49 AM
How to mount removable drive? intmail Slackware 3 07-21-2005 03:30 PM
using autofs to auto mount my usb drives DesertWolf0132 Slackware 8 07-30-2004 11:27 AM
Removable IDE Drives (Fat32) TheSwine Linux - Hardware 1 03-15-2004 02:07 AM
autofs enabled in kernel but auto.mount and auto.master are NOT in /etc! Alybyzrp Linux - General 0 11-11-2003 01:26 PM


All times are GMT -5. The time now is 07:54 PM.

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