misc TODOs for HAL

Lou Greenwood lou_g at softhome.net
Mon Dec 27 19:17:03 PST 2004


On Sunday 26 Dec 2004 16:46, Sjoerd Simons wrote:
> On Sun, Dec 26, 2004 at 04:14:43PM +0000, Lou Greenwood wrote:
> > On Sunday 26 Dec 2004 13:54, Sjoerd Simons wrote:
> > > On Sun, Dec 26, 2004 at 01:36:57PM +0000, Lou Greenwood wrote:
> > > > Another thing i'd like would be real removing of removeable devices,
> > > > such as iPods, so i could get the "OK to disconnect" up and it
> > > > unloads modules and removes mount points, currently ejecting leavs
> > > > the mount point, fstab entry and modules which mean when replugging
> > > > it creates a second ipod device, cluttering things up.
> > >
> > > Unloading modules is unnecessary. And mountpoints in fstab should be
> > > removed when a device is removed currently. Probably your fstab-sync
> > > stuff isn't setup correctly.
> > >
> > >   Sjoerd
> >
> > What should i be looking for being setup incorrectly? i know the managed
> > and pamconsole keywords don't work on my distro (ArchLinux) because the
> > patches aren't in my upstream release. What else should i be looking for?
>
> fstab-sync wants it's fstab entries marked by a special comment. pamconsole
> is crap and you don't need it..
>
> ``managed'' is what RH uses/used to mark autogenerated entries. The latest
> mount upstream version allow for comment=<value> in fstab, which can be
> used instead of managed.
>
> You just need to configure the
> "storage.policy.default.managed_keyword.primary" key  in the fdi's
> correctly to use that and fstab-sync will work.
>
>   Sjoerd

I've set the "comment=managed" now in the fdi, it's all set, now when i remove 
the ipod by ejecting it says ok to remove and all that fluff, i remove the 
ipod, the line for sda2 remains in fstab, and so the dir in /media remains. 
when i replug the ipod hotplug mounts it using /dev/sdb2 but hal doesn't pick 
up, with the line for sda2 remaining in fstab and so kde's device KIO still 
lists an unmounted scsi disk at sda2 and there's no automagic stuff relating 
to the new plugging in. possibly i'm in need of creating some magic udev 
rules here? problem is when i do exactly the same thing with my girlfriends 
usb mp3 player/pen drive thingy i just unplug, devices disapears and i replug 
and all's splendid...

Any idea on where the problem lies here and what needs fixing/any work 
arounds?


dmesg output:
ieee1394: Node changed: 0-01:1023 -> 0-00:1023
ieee1394: Node suspended: ID:BUS[0-00:1023]  GUID[000a270002604922]
ieee1394: Node resumed: ID:BUS[0-00:1023]  GUID[000a270002604922]
ieee1394: Node changed: 0-00:1023 -> 0-01:1023
scsi2 : SCSI emulation for IEEE-1394 SBP-2 Devices
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-00:1023: Max speed [S400] - Max payload [2048]
  Vendor: Apple     Model: iPod              Rev: 1.51
  Type:   Direct-Access                      ANSI SCSI revision: 02
sdb: Spinning up disk....ready
SCSI device sdb: 78126048 512-byte hdwr sectors (40001 MB)
sdb: test WP failed, assume Write Enabled
sdb: asking for cache data failed
sdb: assuming drive cache: write through
 /dev/scsi/host2/bus0/target0/lun0: p1 p2
Attached scsi removable disk sdb at scsi2, channel 0, id 0, lun 0
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list