Package: udev Version: 0.056-3
I'm experiencing a curious problem. I'm using Debian sarge (upgraded from a woody installation), with kernel 2.6.13, udev 0.56 (from my distro). I was trying that my pendrive was recognized and mounted automatically when inserted. I installed then hal, udev, pmount and gnome-volume-manager. The last one at least seems to work since my USB camera is recognized and an application pops up to handle it correctly. It is a hole different situation when the pendrive is inserted. Take a look at syslog just after it is inserted: Mar 1 07:30:02 caruara kernel: usb 1-2: new full speed USB device using uhci_hcd and address 2 Mar 1 07:30:02 caruara kernel: scsi0 : SCSI emulation for USB Mass Storage devices Mar 1 07:30:02 caruara kernel: usb-storage: device found at 2 Mar 1 07:30:02 caruara kernel: usb-storage: waiting for device to settle before scanning Mar 1 07:30:02 caruara usb.agent[4256]: usb-storage: already loaded Mar 1 07:30:07 caruara kernel: Vendor: Kingston Model: DataTraveler 2.0 Rev: 4.10 Mar 1 07:30:07 caruara kernel: Type: Direct-Access ANSI SCSI revision: 02 Mar 1 07:30:07 caruara kernel: usb-storage: device scan complete I expected that /dev/sda (and its partitions) were created by udev, but the curious is that they were not. In fact, nothing happens. After many hours I found a work around to get udev partially working. I manually create /dev/sda1 (mknod /dev/sda1 8 0) and mounting it. This seems to "wake-up" udev, which starts working. It then creates devices and partitions (/dev/sda and /dev/sda2). Unplugging the pendrive, udev removes the device (sda) and the two partitions (sda1 and sda2), as expected. The rule used by udev is the one provided by hal. Just to be complete, the syslog entries when the pendrive is plugged after the described work around become like this: Mar 1 11:39:28 caruara kernel: usb 1-1: new full speed USB device using uhci_hcd and address 5 Mar 1 11:39:28 caruara kernel: scsi3 : SCSI emulation for USB Mass Storage devices Mar 1 11:39:28 caruara kernel: usb-storage: device found at 5 Mar 1 11:39:28 caruara kernel: usb-storage: waiting for device to settle before scanning Mar 1 11:39:28 caruara usb.agent[4500]: usb-storage: already loaded Mar 1 11:39:33 caruara kernel: Vendor: Kingston Model: DataTraveler 2.0 Rev: 4.10 Mar 1 11:39:33 caruara kernel: Type: Direct-Access ANSI SCSI revision: 02 Mar 1 11:39:33 caruara kernel: SCSI device sda: 503808 512-byte hdwr sectors (258 MB) Mar 1 11:39:33 caruara kernel: sda: Write Protect is off Mar 1 11:39:33 caruara kernel: sda: Mode Sense: 0b 00 00 08 Mar 1 11:39:33 caruara kernel: sda: assuming drive cache: write through Mar 1 11:39:33 caruara kernel: SCSI device sda: 503808 512-byte hdwr sectors (258 MB) Mar 1 11:39:33 caruara kernel: sda: Write Protect is off Mar 1 11:39:33 caruara kernel: sda: Mode Sense: 0b 00 00 08 Mar 1 11:39:33 caruara kernel: sda: assuming drive cache: write through Mar 1 11:39:33 caruara kernel: sda: sda1 sda2 Mar 1 11:39:33 caruara kernel: Attached scsi removable disk sda at scsi3, channel 0, id 0, lun 0 Mar 1 11:39:33 caruara kernel: usb-storage: device scan complete Mar 1 11:39:33 caruara udev[4548]: configured rule in '/etc/udev/rules.d/z_hal-plugdev.rules[2]' applied, 'sda' becomes '%k' Mar 1 11:39:33 caruara udev[4548]: creating device node '/dev/sda' Mar 1 11:39:33 caruara udev[4563]: configured rule in '/etc/udev/rules.d/z_hal-plugdev.rules[2]' applied, 'sda1' becomes '%k' Mar 1 11:39:33 caruara udev[4563]: creating device node '/dev/sda1' Mar 1 11:39:33 caruara udev[4564]: configured rule in '/etc/udev/rules.d/z_hal-plugdev.rules[2]' applied, 'sda2' becomes '%k' Mar 1 11:39:33 caruara udev[4564]: creating device node '/dev/sda2' Unfortunately, this does not solve the problem, since each time I boot, udev isn't working again and the above trick must be employed once. Another problem (I'm not sure if it concerns udev) is that gnome-volume-manager mounts the partitions wrongly. Instead of mounting /dev/sda1 and /dev/sda2, it mounts /dev/sda as vfat! Below is the gvm report: manager.c/818: New Device: /org/freedesktop/Hal/devices/block_8_0 manager.c/818: New Device: /org/freedesktop/Hal/devices/block_416E-89DC manager.c/854: Changed: /dev/sda manager.c/797: Added: /dev/sda manager.c/818: New Device: /org/freedesktop/Hal/devices/block_436F-F048 manager.c/854: Changed: /dev/sda1 manager.c/797: Added: /dev/sda1 mount: /dev/sda1 already mounted or /media/usbdisk-1 busy manager.c/818: New Device: /org/freedesktop/Hal/devices/block_76760abe-50e0-4f9b-9abd-ca2e4962e4ce manager.c/854: Changed: /dev/sda2 manager.c/797: Added: /dev/sda2 mount: /dev/sda2 already mounted or /media/usbdisk-1 busy manager.c/949: Mounted: /org/freedesktop/Hal/devices/block_416E-89DC I have spend many hours in google, reading man pages, udev docs, etc and I can't figure out what is going on. I can provide any futher information needed. Any help is welcome. uname -a: Linux caruara 2.6.13 #1 Mon Nov 14 18:12:26 BRST 2005 i686 GNU/Linux package versions: ii hal 0.4.7-3sarge1 Hardware Abstraction Layer ii pmount 0.8-2 mount removable devices as normal user ii udev 0.056-3 /dev/ management daemon ii gnome-volume-man 1.2.0-2 GNOME daemon to auto-mount and manage media devi ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries and Timezone dat ii initscripts 2.86.ds1-1 Standard scripts needed for booting and shutting ii makedev 2.3.1-77 creates device files in /dev ii sed 4.1.2-8 The GNU sed stream editor ls -l /lib/libc.so.6: lrwxr-xr-x 1 root root 13 2005-07-24 05:20 /lib/libc.so.6 -> libc-2.3.2.so cat /etc/fstab: /dev/hda1 / ext2 errors=remount-ro 0 1 /dev/hda6 none swap sw 0 0 proc /proc proc defaults 0 0 none /sys sysfs defaults 0 0 /dev/fd0 /floppy vfat user,noauto 0 0 /dev/cdrom /cdrom iso9660 ro,user,noauto 0 0 /dev/hdd /mnt/cdrw iso9660 ro,user,noauto 0 0 /dev/hda2 /usr ext3 defaults 0 2 /dev/hda3 /var ext3 defaults 0 2 /dev/hda5 /tmp ext3 defaults 0 2 /dev/hda7 /home ext3 defaults 0 2 Thanks, -- Ricardo Biloti Department of Applied Mathematics IMECC/UNICAMP

