Hi,

I am sending the output of user.log after applying the patch.

P.S. I have noticed that the same problem occurs if the device is plugged into USB1 port
(different pc with debian stable - no usbmount, no udev, kernel 2.4 but a simple script to automatically mount the flashdisk when plugged in. Again the disk cannot be mounted immediately but the script needs to wait for some time before mounting a partition on the disk). With other devices (flashdisks) that I have tried nothing like that was needed.


I have tried two devices of this type and both have had the same problem.

Peter


-- user.log ---

May 2 10:37:45 localhost usb.agent[9223]: usb-storage: already loaded
May 2 10:37:45 localhost usbmount[9252]: ---- BEGIN DEBUGGING SECTION ---
May 2 10:37:45 localhost usbmount[9252]: ls -l /dev/sdc: brw-rw---- 1 root floppy 8, 32 May 2 10:37 /dev/sdc
May 2 10:37:45 localhost usbmount[9252]: /sbin/udev_volume_id /dev/sdc: error open volume
May 2 10:37:45 localhost usbmount[9252]: fdisk -l /dev/sdc:
May 2 10:37:45 localhost usbmount[9252]: ls /sys/block/sdc/device: block delete detach_state device_blocked generic max_sectors model power queue_depth rescan rev scsi_level stat
e timeout type vendor
May 2 10:37:45 localhost usbmount[9252]: cat /sys/block/sdc/device/state: running
May 2 10:37:45 localhost usbmount[9252]: sleeping 6 seconds
May 2 10:37:46 localhost scsi.agent[9177]: sd_mod: blacklisted (for disk)
May 2 10:37:51 localhost usbmount[9252]: ls -l /dev/sdc: brw-rw---- 1 root floppy 8, 32 May 2 10:37 /dev/sdc
May 2 10:37:52 localhost usbmount[9252]: /sbin/udev_volume_id /dev/sdc: unknown volume type
May 2 10:37:52 localhost usbmount[9252]: fdisk -l /dev/sdc: Disk /dev/sdc: 2111 MB, 2111569408 bytes 129 heads, 36 sectors/track, 888 cylinders Units = cylinders of 4644 * 512 =
2377728 bytes Device Boot Start End Blocks Id System /dev/sdc1 * 1 889 2062061+ e W95 FAT16 (LBA) Partition 1 has different ph
ysical/logical endings: phys=(893, 128, 36) logical=(888, 7, 35)
May 2 10:37:52 localhost usbmount[9252]: ls /sys/block/sdc/device: block delete detach_state device_blocked generic max_sectors model power queue_depth rescan rev scsi_level stat
e timeout type vendor
May 2 10:37:52 localhost usbmount[9252]: cat /sys/block/sdc/device/state: running
May 2 10:37:52 localhost usbmount[9252]: ---- END DEBUGGING SECTION ---
May 2 10:37:52 localhost usbmount[9323]: ---- BEGIN DEBUGGING SECTION ---
May 2 10:37:52 localhost usbmount[9323]: ls -l /dev/sdc1: brw-rw---- 1 root disk 8, 33 May 2 10:37 /dev/sdc1
May 2 10:37:52 localhost usbmount[9323]: /sbin/udev_volume_id /dev/sdc1: F:filesystem T:vfat V:FAT16 L:Kingston N:Kingston U:0DD1-0074
May 2 10:37:52 localhost usbmount[9323]: fdisk -l /dev/sdc1: Disk /dev/sdc1: 2111 MB, 2111550976 bytes 65 heads, 62 sectors/track, 1023 cylinders Units = cylinders of 4030 * 512
= 2063360 bytes Device Boot Start End Blocks Id System /dev/sdc1p1 ? 422333 826679 814758329+ 74 Unknown Partition 1 has different phys
ical/logical beginnings (non-Linux?): phys=(288, 110, 36) logical=(422332, 10, 45) Partition 1 has different physical/logical endings: phys=(366, 104, 37) logical=(82667
8, 47, 29) Partition 1 does not end on cylinder boundary. /dev/sdc1p2 ? 330071 463812 269488144 65 Novell Netware 386 Partition 2 has different physical/logical b
eginnings (non-Linux?): phys=(107, 121, 32) logical=(330070, 33, 47) Partition 2 has different physical/logical endings: phys=(10, 121, 13) logical=(463811, 34, 42) Part
ition 2 does not end on cylinder boundary. /dev/sdc1p3 ? 133745 480733 699181456 53 OnTrack DM6 Aux3 Partition 3 has
May 2 10:37:52 localhost usbmount[9323]: ls /sys/block/sdc/sdc1/device: ls: /sys/block/sdc/sdc1/device: No such file or directory
May 2 10:37:52 localhost usbmount[9323]: cat /sys/block/sdc/sdc1/device/state: cat: /sys/block/sdc/sdc1/device/state: No such file or directory
May 2 10:37:52 localhost usbmount[9323]: sleeping 6 seconds
May 2 10:37:58 localhost usbmount[9323]: ls -l /dev/sdc1: brw-rw---- 1 root disk 8, 33 May 2 10:37 /dev/sdc1
May 2 10:37:58 localhost usbmount[9323]: /sbin/udev_volume_id /dev/sdc1: F:filesystem T:vfat V:FAT16 L:Kingston N:Kingston U:0DD1-0074
May 2 10:37:58 localhost usbmount[9323]: fdisk -l /dev/sdc1: Disk /dev/sdc1: 2111 MB, 2111550976 bytes 65 heads, 62 sectors/track, 1023 cylinders Units = cylinders of 4030 * 512
= 2063360 bytes Device Boot Start End Blocks Id System /dev/sdc1p1 ? 422333 826679 814758329+ 74 Unknown Partition 1 has different phys
ical/logical beginnings (non-Linux?): phys=(288, 110, 36) logical=(422332, 10, 45) Partition 1 has different physical/logical endings: phys=(366, 104, 37) logical=(82667
8, 47, 29) Partition 1 does not end on cylinder boundary. /dev/sdc1p2 ? 330071 463812 269488144 65 Novell Netware 386 Partition 2 has different physical/logical b
eginnings (non-Linux?): phys=(107, 121, 32) logical=(330070, 33, 47) Partition 2 has different physical/logical endings: phys=(10, 121, 13) logical=(463811, 34, 42) Part
ition 2 does not end on cylinder boundary. /dev/sdc1p3 ? 133745 480733 699181456 53 OnTrack DM6 Aux3 Partition 3 has
May 2 10:37:58 localhost usbmount[9323]: ls /sys/block/sdc/sdc1/device: ls: /sys/block/sdc/sdc1/device: No such file or directory
May 2 10:37:58 localhost usbmount[9323]: cat /sys/block/sdc/sdc1/device/state: cat: /sys/block/sdc/sdc1/device/state: No such file or directory
May 2 10:37:58 localhost usbmount[9323]: ---- END DEBUGGING SECTION ---
May 2 10:37:58 localhost usbmount[9323]: executing command: mount -tvfat -osync,noexec,nodev,noatime,users,uid=1000,gid=100 /dev/sdc1 /mnt/flash
May 2 10:37:58 localhost usbmount[9323]: executing command: run-parts /etc/usbmount/mount.d



Martin Dickopp wrote:

Hi,

I hope you can help me again with this bug: Please apply the patch below
to the original /usr/share/usbmount/usbmount file and report what is
logged in /var/log/user.log when you plug the device in.

Thanks!
Martin


--- usbmount.orig 2005-05-01 22:28:49.000000000 +0200 +++ usbmount 2005-05-01 22:47:15.000000000 +0200 @@ -62,6 +62,21 @@ trap '( lockfile-remove /var/run/usbmount/.mount )' 0 log debug "acquired lock /var/run/usbmount/.mount.lock"

+ log info "---- BEGIN DEBUGGING SECTION ---"
+ log info "ls -l $DEVNAME: `ls -l $DEVNAME 2&1 || :`"
+ log info "/sbin/udev_volume_id $DEVNAME: `/sbin/udev_volume_id $DEVNAME 2>&1 || :`"
+ log info "fdisk -l $DEVNAME: `fdisk -l $DEVNAME 2>&1 || :`"
+ log info "ls /sys$DEVPATH/device: `ls /sys$DEVPATH/device 2>&1 || :`"
+ log info "cat /sys$DEVPATH/device/state: `cat /sys$DEVPATH/device/state 2>&1 || :`"
+ log info "sleeping 6 seconds"
+ sleep 6
+ log info "ls -l $DEVNAME: `ls -l $DEVNAME 2>&1 || :`"
+ log info "/sbin/udev_volume_id $DEVNAME: `/sbin/udev_volume_id $DEVNAME 2>&1 || :`"
+ log info "fdisk -l $DEVNAME: `fdisk -l $DEVNAME 2>&1 || :`"
+ log info "ls /sys$DEVPATH/device: `ls /sys$DEVPATH/device 2>&1 || :`"
+ log info "cat /sys$DEVPATH/device/state: `cat /sys$DEVPATH/device/state 2>&1 || :`"
+ log info "---- END DEBUGGING SECTION ---"
+
# Test if the device contains a filesystem. If it doesn't, no
# further action is required, but calling udev_volume_id has the
# side effect that the partition table is read and partition




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to