hal, usbstick and IBM R40
Thomas Gufler
csab3266 at uibk.ac.at
Mon Sep 13 05:19:52 PDT 2004
On Sunday 12 September 2004 23:29, David Zeuthen wrote:
> On Sun, 2004-09-12 at 22:49 +0200, Thomas Gufler wrote:
> > Yes, I can still reproduce. Attached lshal and hald.conf
>
> Thanks for the files - just what the information I needed.
>
> Interesting. So, I've been told that IBM Memory Sticks are of high
> quality - this seems to confirm it:
>
> udi = '/org/freedesktop/Hal/devices/block_8_0'
> info.udi = '/org/freedesktop/Hal/devices/block_8_0' (string)
> storage.hotpluggable = true (bool)
> storage.removable = false (bool)
> info.product = 'Memory Key' (string)
> info.vendor = 'IBM' (string)
>
> so obviously the device properly report that this device doesn't support
> removable media - which is quite true! (it's important to distinguish
> between hotpluggable and removable). Can you confirm that the
> file /sys/block/sda/removable contains '0'? FWIW, lots of USB devices
> doesn't report correct information about 'removable' nor do they support
> unique serial number.
>
I don't have a file 'removable' in /sys/block/sda ?
ls -l /sys/block/sda/ reports:
insgesamt 0
-r--r--r-- 1 root root 4096 13. Sep 14:02 dev
lrwxrwxrwx 1 root root 0 13. Sep 14:02 device
-> ../../devices/pci0000:00/0000:00:02.2/usb1/1-3/1-3:1.0/host23/23:0:0:0
drwxr-xr-x 3 root root 0 13. Sep 14:02 queue
-r--r--r-- 1 root root 4096 13. Sep 14:02 range
drwxr-xr-x 2 root root 0 13. Sep 14:02 sda1
-r--r--r-- 1 root root 4096 13. Sep 14:02 size
-r--r--r-- 1 root root 4096 13. Sep 14:02 stat
> So, I recently changed hal not to poll devices with storage.removable
> set to FALSE (which is useful if you want to run hal on a system with
> thousands of disks :-) but it appears we should at least attempt to do
> an initial poll to kickstart the kernel. So I just did this; please try
> the latest from CVS and see if that works.
Ok, using the newest cvs the problem seems to be solved. I tried
insert/unmount/remove 20 times in a row and it failed (interestingly) one
time.
Btw, I have a little problem with installing hal-cvs manually (no ebuild): I
use the following command to configure hal-cvs:
./autogen.sh --sysconfdir=/etc --prefix=/usr --with-pid-file=/var/run/hald.pid
--with-hal-user=haldaemon --with-hal-group=haldaemon --enable-fstab-sync
--disable-doxygen-docs --disable-docbook-docs
I want the configuration files in /etc, but when I 'make install' I get
hald.conf in /etc/hal/ (as I want), but device.d/50-fstab-sync.hal,
capability.d/ and property.d/ go into /hal (as I don't want).
Is this my fault or is there an other error?
Thanks,
Thomas
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list