Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112497 - hald was return wrong block.device variable (/dev/sda instead of /dev/sda1 ) when I pluged flash-device
Summary: hald was return wrong block.device variable (/dev/sda instead of /dev/sda1 )...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-14 04:42 UTC by ditansu
Modified: 2005-11-15 02:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ditansu 2005-11-14 04:42:05 UTC
When I pluged usb-storage device the ivman daemon don't pmount its. After 
analysis log-files and debug output, see:

0)modules
# lsmod | grep usb
usb_storage            71616  0
usbcore               119164  4 ub,usb_storage,ohci_hcd
1)dmesg 
# dmesg  | tail -n 20
Attached scsi removable disk sda at scsi12, channel 0, id 0, lun 0
usb-storage: device scan complete
usb 2-3: USB disconnect, address 13
usb 2-3: new full speed USB device using ohci_hcd and address 14
scsi13 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 14
usb-storage: waiting for device to settle before scanning
  Vendor:           Model: USB DRIVE         Rev: 1.13
  Type:   Direct-Access                      ANSI SCSI revision: 00
SCSI device sda: 1014784 512-byte hdwr sectors (520 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 1014784 512-byte hdwr sectors (520 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
 sda: sda1
Attached scsi removable disk sda at scsi13, channel 0, id 0, lun 0
usb-storage: device scan complete
=============================================================
2) ivman debug:
...
hal_interface.c:47 (hal_device_added) New Device: /org/freedesktop/Hal/devices/
storage_model_USB_DRIVE
IvmConfigCommon.c:135 (ivm_device_is_mountable) UDI /org/freedesktop/Hal/
devices/storage_model_USB_DRIVE is device /dev/sda
IvmConfigCommon.c:155 (ivm_device_is_mountable) Device /dev/sda can't be mounted 
because it is not a volume
manager.c:900 (ivm_media_changed) /org/freedesktop/Hal/devices/
storage_model_USB_DRIVE wasn't mounted, by us or by others...
=============================================================
3) hal:
# hal-device | grep sd
block.device = '/dev/sda' (string)
linux.sysfs_path_device = '/sys/block/sda' (string)
linux.sysfs_path = '/sys/block/sda' (string)
info.linux.driver = 'sd' (string)
volume.partition.msdos_part_table_type = 131 (0x83) (int)
volume.partition.msdos_part_table_type = 130 (0x82) (int)
volume.partition.msdos_part_table_type = 131 (0x83) (int)
=============================================================
3) /etc/fstab
# cat /etc/fstab | grep flash
/dev/sda1 /flash vfat noauto,iocharset=utf8,gid=407,uid=1000,user,exec,sync 0 0
=============================================================
4) manually
4.1) pmount 
#pmount /flash - OK !
#ls -l /flash/
итого 32
drwxr-xr-x  3 di di 8192 Ноя  1 17:43 clients
drwxr-xr-x  3 di di 8192 Окт 13 23:29 comcor
drwxr-xr-x  4 di di 8192 Окт 14 18:10 doc
drwxr-xr-x  3 di di 8192 Ноя  1 16:24 music
#pumount /flash
=============================================================
4.2)pmount-hal /org/freedesktop/Hal/devices/storage_model_USB_DRIVE -d
pmount-hal /org/freedesktop/Hal/devices/storage_model_USB_DRIVE -d
resolved /dev/sda to device /dev/sda
mount point to be used: /media/sda
no iocharset given, current locale encoding is UTF-8
locale encoding uses UTF-8, setting iocharset to 'utf8'
Cleaning lock directory /var/lock/pmount/_dev_sda
device_whitelist: checking /etc/pmount.allow...
device_whitlisted(): nothing matched, returning 0
find_sysfs_device: looking for sysfs directory for device 8:0
find_sysfs_device: checking whether /dev/sda is on /sys/block/sda (8:0)
find_sysfs_device: major device numbers match
find_sysfs_device: minor device numbers also match, /dev/sda is a raw device
device_removable: corresponding block device for /dev/sda is /sys/block/sda
get_blockdev_attr: value of /sys/block/sda/removable == 1
policy check passed
spawnv(): executing /bin/cryptsetup '/bin/cryptsetup' 'isLuks' '/dev/sda'
spawn(): /bin/cryptsetup terminated with status 234
device is not LUKS encrypted, or cryptsetup with LUKS support is not installed
locking mount point directory
mount point directory locked
spawnv(): executing /bin/mount '/bin/mount' '-t' 'udf' '-o' 'nosuid,nodev,user,
async,atime,exec,uid=0,gid=0,umask=007,iocharset=utf8' '/dev/sda' '/media/sda'
spawn(): /bin/mount terminated with status 32
spawnv(): executing /bin/mount '/bin/mount' '-t' 'udf' '-o' 'nosuid,nodev,user,
async,atime,exec,uid=0,gid=0,umask=007' '/dev/sda' '/media/sda'
spawn(): /bin/mount terminated with status 32
.... 
etc
5) Soft ver.:
hal-0.5.4
dbus-0.50-r1
ivman-0.6.5


Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
mounted /flash by ivman
Comment 1 John N. Laliberte (RETIRED) gentoo-dev 2005-11-14 06:24:46 UTC
where is your emerge info?

What kernel version are you running, and what version of udev?  This looks like
udev-073, please use udev-072. ( since we've seen this exact issue with 073 )

http://dev.gentoo.org/~allanonjl/gnome/2.12.automounting.bugs.txt
Comment 2 ditansu 2005-11-14 07:17:22 UTC
where is your emerge info?
sorry ;)
=============================================================
Portage 2.0.53_rc7 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r3, 2.6.13-
gentoo-r3-di i686)
=================================================================
System uname: 2.6.13-gentoo-r3-di i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.0_pre10
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mcpu=pentium4 -mmmx -msse -msse2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -mcpu=pentium4 -mmmx -msse -msse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="... autoconfig candy distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/
distributions/gentoo"
LANG="ru_RU.UTF-8"
LINGUAS="ru en"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 crypt cups curl 
dbus eds emboss encode esd exif expat fam foomaticdb fortran gdbm gif gnome 
gnutls gpm gstreamer gtk gtk2 hal idn imlib java jpeg kde kdeenablefinal 
kdexdeltas kerberos krb4 lcms libg++ libwww mad mikmod mmx mng motif mp3 mpeg 
ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl png python qt 
quicktime readline samba sdl spell sse sse2 ssl tcpd tiff truetype truetype-
fonts type1-fonts udev unicode usb vorbis xml2 xmms xv zlib linguas_ru 
linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY

=============================================================

What kernel version are you running, and what version of udev?  This looks like
udev-073, please use udev-072. ( since we've seen this exact issue with 073 )
You rigth ! - I use udev-073. Downgrade ? if yes  how correct? 
Comment 3 John N. Laliberte (RETIRED) gentoo-dev 2005-11-14 07:21:40 UTC
do emerge -av =udev-072.

Restart to make sure you are using the new udev version, and see if the old
(intended) behavior is back.

You can man 5 portage to learn about how to locally mask packages ( like
>=udev-072 ). ( if this works )
Comment 4 ditansu 2005-11-15 02:00:14 UTC
Big Fanks ! I was emergeing udev-072, rebootig and  all ok !


---------
Best !