Am Donnerstag 14 Dezember 2006 09:47 schrieb Modestas Vainius:

> 2. # dpkg -i --force-all
> kdebase-kio-plugins_3.5.5a.dfsg.1-4~mdx1_i386.deb (I think, force will
> be needed due to dependences).

Hello Modestas,

Thanks for all your efforts.

This installed nicely without --force-anything

> 3. $ killall kded; kdeinit kded; dcop kicker kicker restart -- OR --
> log off & log on to KDE

> 4. Now try to mount your hard drive. It will fail, however, you should
> see a more verbose error message. Please post it here.

So there we are:

---------------------------------------------------------------------
[EMAIL PROTECTED]:~> konqueror
kio (KIOConnection): ERROR: Could not write data
kded: ERROR: mount failed 
for /org/freedesktop/Hal/devices/volume_uuid_4285_F899: 
org.freedesktop.Hal.Device.Volume.PermissionDenied - <qt>
kded: ERROR: mounting /org/freedesktop/Hal/devices/volume_uuid_4285_F899 
returned <qt>Berechtigungen verweigert<p><i>Device /dev/sda1 is listed 
in /etc/fstab. Refusing to mount.</i></p></qt>
kded: ERROR: mount failed 
for /org/freedesktop/Hal/devices/volume_uuid_4285_F899: 
org.freedesktop.Hal.Device.Volume.PermissionDenied - <qt>
kded: ERROR: mounting /org/freedesktop/Hal/devices/volume_uuid_4285_F899 
returned <qt>Berechtigungen verweigert<p><i>Device /dev/sda1 is listed 
in /etc/fstab. Refusing to mount.</i></p></qt>
---------------------------------------------------------------------

Yes, the USB harddisk is listed in /etc/fstab as well but with mount 
option "user,noauto". 

---------------------------------------------------------------------
# externe 2,5"-USB-Festplatte
LABEL=austausch /mnt/austausch  vfat            
user,noauto,iocharset=iso8859-15        0       2
LABEL=daten     /mnt/daten      xfs             user,noauto,logbufs=8   0       
2
---------------------------------------------------------------------

This never has been a problem. So I think there must have been a hal 
policy / behavior change recently. One that I do not think makes sense. 
When /etc/fstab already allows me as a user to mount the partitions on 
that drive, hal should do so, too!

While it is no problem for me to remove those /etc/fstab entries for this 
harddisk, I think this is not more than a work-around. 

Fortunately hal only refuses to mount LABEL=austausch then and not 
any /dev/sda1.

But mounting does work when I replace the label based mount line by and do 
the step 3 (restarting dcop and kdeinit stuff):

---------------------------------------------------------------------
/dev/sda1       /mnt/austausch  vfat            
user,noauto,iocharset=iso8859-15        0       2
---------------------------------------------------------------------

It even uses my settings then which I would prefer anyway:

---------------------------------------------------------------------
shambala:~> mount | grep /dev/sda1
/dev/sda1 on /mnt/austausch type vfat 
(rw,noexec,nosuid,nodev,iocharset=iso8859-15,user=martin)
---------------------------------------------------------------------

Thus although that device is listed in /etc/fstab hal mounts the partition 
which to me is highly inconsistent with what it did with the LABEL= 
entry. It seems that HAL does not seem to support "LABEL=" /etc/fstab 
entries properly!

When I then replace /dev/sda1 by LABEL=austausch again and do step 3 
again, hal seems to get hopelessly confused and mounts the partition as:

---------------------------------------------------------------------
shambala:/etc/modprobe.d> mount | grep /dev/sda1
/dev/sda1 on /media/disk type vfat 
(rw,noexec,nosuid,nodev,noatime,uid=1000,utf8,shortname=lower)
---------------------------------------------------------------------

After /etc/init.d/dbus-1 restart and KDE logout and login it again gives 
the refuses to mount cause /etc/fstab entry message!

What I would like hal to do is:

If there is a LABEL= based entry with "user" mount option in /etc/fstab 
then use that one instead.  So it should handle a LABEL= based entry just 
like a /dev/devicefile based one.

The hal version where I could still mount the partition regardless of 
the /etc/fstab entry being there or not always mounted to /media/sda1. It 
seems that it completely ignored the /etc/fstab entry, but this new hal 
does not. If I have the choice between these both alternatives only, I 
would like hal to ignore my /etc/fstab stuff. 

Sure I could get rid of any static mount entries, but I like the 
flexibility, especially for doing backups onto a bigger 3.5 inch USB 
drive I usually do not like to mount with "sync" option as I know I won't 
unplug the drive before I unmounted it.

At least I think we now have an idea on how you can reproduce the issue I 
reported. And I think the casual user would be confused to no end by this 
new behaviour. If nothing else is possible at least a note in 
README.Debian would be very helpful! I can write you a paragraph or two 
about this once we agreed whats really happening and what should be in 
there.

> 5. Finally, when done, revert back to previous kdebase-kio-plugins
> either by downloading and # dpkg -i it or # apt-get -f install (if it
> does the correct thing). Then repeat step 3.

Actually I prefer your version as it gives at least an useful hint on 
whats going wrong. "Rights or access denied" was not really helpful in 
figuring out the problem ;-).

So thanks again for your efforts.

Regards,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7

Attachment: pgpq5yZW4VYnY.pgp
Description: PGP signature

Reply via email to