Etch: Gnome, Hal & Iomega Clik 40

Hello,

I've recently acquired an Iomega Clik! 40 (aka PocketZip) PCMCIA drive
and a few disks with a slick looking silver case.

http://paulbristow.net/main/2002/02/24/clik/

If you know the device, have looked it up, or guessed the 40 means 40
Mb, you're probably thinking "what a useless device, you can pick up CF
cards with more memory from the local discount rack." I acknowledge this
and offer no rational explanation for wanting to get this to work
better. It's just something to try and an opportunity to understand hal
and other systems a little better.

When I insert the PCMCIA card it is recognized. It automatically shows
up in the Computer window next to the other devices, filesystems and
locations in the Gnome desktop. The disks are loaded by a floppy device
driver as /dev/hdc. I can mount /dev/hdc4 by hand just fine. The
automagic ends when I double-click the "External Floppy Drive" icon and
this is where I would like some help.

The attached pmount-error.txt file contains the error displayed on the
desktop when I try double-clicking the drive icon. It looks like it
isn't trying /dev/hdc4. I don't know if this is because of some "auto"
option behaving badly, or if hal isn't merging the contents of
10-ide-drives.fdi no matter where I put it (lshal seems to support this
theory.)

Does lshal include any merged information when showing it's output?

(The attached lshal.txt file shows it's output.)

At first I expected that /usr/share/hal/fdi would be iterated for .fdi
files to load. Then I wondered if I needed to copy files from there to
/etc/hal/fdi. With either lshal doesn't seem to show 4 being appended to
block.device nor is the storage.requires_eject setting set to true.

Any pointers to good documentation on hal (especially anything Debian
specific, if required) or suggestions are appreciated.

--
Jacob

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Etch: Gnome, Hal & Iomega Clik 40

Jacob L. Anawalt wrote:
> Does lshal include any merged information when showing it's output?
>
The answer appears to be yes.

I joined #hal on freenode and mbiebl pointed out that storage.bus in
/usr/share/hal/fdi/preprobe/10osvendor/10-ide-drives.fdi wasn't matching
my pcmcia device. So I put a modified copy of it into
/etc/hal/fdi/preprobe as clik-pcmcia.fdi (attached.) After restarting
hald (invoke-rc.d restart dbus) lshal included the information from
clik-pcmcia.fdi.

Now double-clicking the icon in Gnome was trying to mount the right
volume, but it was failing most of the time. It appeared to be a problem
with the pmount filesystem autodetection routines. From the command line
I would have less than a 10% chance of pmount working without the
filesystem type argument. With it, pmount worked every time. The mount
command worked every time without the argument, so pmount seemed to do a
little more than just wrap mount with a policy.

The easiest solution was to add an entry to /etc/fstab and create
/media/hdc4.

/dev/hdc4 /media/hdc4 vfat user,noauto 0 0

Since this system is a laptop and hardware isn't changing much, it seems
to be a workable solution. Another option that seemed to work was to use
pmount from the command line with the filesystem type. Once the drive is
mounted, you can get to it via the GUI. (After all this mucking about
it's best to log out and back in to get a fresh view in Gnome from HAL.

I'll try to discover where 10osvendor/10-ide-drives.fdi comes from and
submit a bug report/patch for the pcmcia clik drive if it's not already
fixed in a later version.

--
Jacob

Syndicate content