Re: F7 KDE USB Disk/Memory Stick Umounting



On Wed, 2007-07-04 at 23:38 +0200, Adalbert Prokop wrote:
John Austin wrote on Friday 29 June 2007:

1. Why are the two "identical" devices treated differently?

I make a reasonable guess: that KDEs "fault". Those devices are not
identical, they have different properties. You can look at them using
hal-device-manager. KDE looks at these properties and invokes different
hal methods over DBUS. In case of the memory stick it would be "Eject"
and in case of the hard drive it would be "Unmount". It think so because
I also have an USB memory stick and an USB hard driver and their hal
method list is identical, but different methods are invoked on them.

I have managed to get hal-device-manager working and it does indeed
show differences between the USB Stick and USB Disk, in particular

Stick
info.addons dbus.Array([dbus.String(u'hald-addon-storage')].....
storage.media_check_enabled 1
storage.removable 1

Disk
info.addons Does not exist
storage.media_check_enabled 0
storage.removable 0


2. Is there an easy method of changing all USB sticks
to act the same as the USB Disk?

I have some ideas but I had no time to investigate them further. I hope I
will have in the near future.

1. Replace hal-storage-eject with hal-storage-unmount (in /usr/libexec)
UGLY. And not update-safe.

2. Write a fdi file which either removes the Eject method from hal
methods' list or let "Eject" point to "hal-storage-unmount"
That would be my preferred method.

3. Somehow tell KDE to provide both options in the device's dialog:
unmount and eject. That would be just perfect.

Its just annoying !

I most definitely agree with you. :-)

Surely you don't have to dig into hal/udev to fix this

About this I'm not so sure...

--
bye,
Adalbert


It is also noticeable that when using the USB Stick and
Safely remove is invoked then /dev/sdx1 etc are removed
leaving just /dev/sdx then this device does not work.
ie
fdisk /dev/sdx fails to find the device


My knowledge runs out at this stage !!

Many thanks for the reply

John




--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: F7 KDE USB Disk/Memory Stick Umounting
    ... and in case of the hard drive it would be "Unmount". ... I also have an USB memory stick and an USB hard driver and their hal ... Write a fdi file which either removes the Eject method from hal ... Somehow tell KDE to provide both options in the device's dialog: ...
    (Fedora)
  • Re: Howto eject USB mass storage disk?
    ... The solution I would like is an "eject" button, ... the user is about to remove the card. ... Since Windows XP is using my device as a standard USB ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Lets test the h@!! out of KDE4.2 before it releases...
    ... We can find bugs in KDE4.2 now or we can find them after its ... USB key while I work on something else. ... If we all spent a few hours playing around with KDE 4.2 before it ... This may work for KDE developers, who do a lot of playing around with KDE, but I hardly ever find new bugs in something I don't know intimately just by playing around with it. ...
    (Fedora)
  • [SLE] Deskjet printer app has a bug? Signal 11
    ... On the "printjob for all printers - KJobViewer" I have the following ... My printer worked fine until I upgraded to kde 3.3.2. ... I change it to usb and go into "usb printer configuration" ... You might want to send a bug report for this application. ...
    (SuSE)
  • Re: USB Drive cant be removed
    ... Try to eject the disk using the eject command from Windows Explorer or from Computer Once the disk is ejected it should free up the remove the USB lock that you are experiencing. ... You may be able to find it in the Task Manager, processes and see if you see anything running there related to your music player. ...
    (microsoft.public.windows.vista.hardware_devices)