Bug 145327 - konqueror: Can't (u)mount partitions which are being referred to with LABEL or UUID in /etc/fstab
Summary: konqueror: Can't (u)mount partitions which are being referred to with LABEL o...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: 3.5
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords: triaged
: 145553 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-11 19:49 UTC by Olivier Vitrat
Modified: 2012-06-18 14:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Vitrat 2007-05-11 19:49:59 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Debian stable Packages

Reported in Debian BTS at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=420893

If system's /etc/fstab defines a partition with LABEL or UUID and with
mount option "user" or "users", then Konqueror is unable to mount or
umount such partitions. To reproduce:

1) Put something like the following to system's /etc/fstab:

LABEL=volumelabel  /mnt/mountpoint  ext3  defaults,users,noauto  0  0

In which the "volumelabel" is real label of some partition. Find the
label with "tune2fs -l /dev/hdXY | grep volume". Alternatively you can
use UUID.

2) In Konqueror go to URL media:/ and try to mount this partition.
A window pops up: "TITLE: Error - kio_media_mounthelper" / "Permission
denied" / "OK". Still it is possible to mount this partition from shell
with command "mount /mnt/mountpoint". "pmount LABEL=volumelabel" works
too.

Additional thoughts: Newer Linux kernels (2.6.20 or something) no longer
name IDE disks with hda, hdb, hdc etc. but with sda, sdb, sdc etc.
- just like SATA disks or removable media. This means that there is no
guarantee anymore that even the system partitions (root, /home etc.)
always have the same device names in /dev. Partitions must be referred
to with LABEL or UUID as some Linux distributions already do. Hence this
Konqueror bug is becoming more and more relevant.
Comment 1 Elián Hanisch 2007-12-14 04:31:09 UTC
I have exactly the same problem on kde 3.5.8 from kubuntu packages, I have this line in my fstab for my pendrive, where I got the UUID by using the vol_id command

UUID=2097-5E2F /media/SD vfat rw,users,noauto,noatime,async,exec 0 0

when I plug my pendrive, an icon shows on my desktop, clicking on it shows me a "Permission denied" dialog, with Dolphin I get the same result, so I don't think is a konqueror bug.

odd is, if I run "mount /media/SD" in Konsole my pendriver mounts perfectly.

If I remove the UUID and use /dev/sda1 everything works right.
Comment 2 Pino Toscano 2008-03-25 14:13:09 UTC
*** Bug 145553 has been marked as a duplicate of this bug. ***
Comment 3 kujub 2008-03-25 14:15:12 UTC
I have the same problem here on ArchLinux with KDE 3.5.9
( Originally discovered this on Gentoo and on Feisty at least since KDE 3.5.6 - bug 145553 )

Workaround:
Using /dev/disk/by-label/some_label 
instead of LABEL=some_label works fine here.
Comment 4 Elián Hanisch 2008-03-25 23:21:16 UTC
I tried in a KDE4 session (from kubuntu packages) and this bug is still there, dolphin shows the following message:

An error occurred while accessing 'SD_CARD', the system said: org.freedesktop.Hal.Device.Volumen.PermissionDenied: Device /dev/sda1 is listed in /etc/fstab. Refusing to mount.

using Kurt's workaround solve it.
Comment 5 kujub 2008-08-01 19:44:43 UTC
Tried on KDE 4.1 (on ArchLinux _and_ Ubuntu Hardy).

Now it seems to be totally broken even with above workaround. :(

Dolphin says:
mount: Could not find /dev/sdf1 in /etc/fstab or /etc/mtab.
(translated from german)

I still have /dev/disk/by-label/ST32143A in /etc/fstab
and a symlink /dev/disk/by-label/ST32143A -> ../../sdf1
and mount /mnt/ST32143A still works normal.
Comment 6 kujub 2008-09-28 16:29:59 UTC
Tried KDE 4.1.2 (ArchLinux) today with following results:

1. Workaround does its job again

2. With both LABEL=... and UUID=... dolphin fails to mount. The error message says: org.freedesktop.Hal.Device.Volume.PermissionDenied:Device /dev/sdb1 is listed in /etc/fstab.Refusing to mount. So I am unable to test this now without digging into HAL stuff.
Comment 7 Sebastian Dörner 2010-09-08 13:07:26 UTC
*** This bug has been confirmed by popular vote. ***
Comment 8 Myriam Schweingruber 2012-06-18 14:11:06 UTC
Message from the Bugsquad and Konqueror teams:
This bug is closed as outdated, as we do not have the manpower to maintain the KDE3 version anymore.
If you still can reproduce this issue with Konqueror 4.8.4 or later, please open a new report.
Thank you for your understanding.