unable to mount hard disks which are not already mounted

Bug #177036 reported by Eugene Tretyak
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kdebase (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

If hard disk is not mounted it requires admin privileges to do this operation.
To reproduce this, just create a new partition or remove it's declaration from /etc/fstab (by commenting out with a #), go to media:/ and try to mount/unmount it.
You'll get hal-storage-fixed-mount refused uid XXX error.

Related branches

Revision history for this message
Eugene Tretyak (etretyak) wrote :

Quick patch. It calls dbus-message with kdesudo to mount the disks through HAL.
It is not complete. I need to do some additional stuff like errors handling and so on.

Revision history for this message
Eugene Tretyak (etretyak) wrote :

Run kdesu command if kdesudo was not found.

Revision history for this message
Jonathan Riddell (jr) wrote :

kdebase (4:3.5.8-2ubuntu6) hardy; urgency=low

  * Add kubuntu_9915_userdiskmount.diff from Eugene Tretyak
    Adds user hard disk mounting
    Closes LP: #177036
  * Add kubuntu_9916_konsole_mc_shell.diff from Daniel Hahler
    Closes LP: #93063

 -- Jonathan Riddell <email address hidden> Wed, 19 Dec 2007 14:03:58 +0000

Changed in kdebase:
status: New → Fix Released
Revision history for this message
geek_inn (ajmal82) wrote :

well two problems i faced/bugs
1)reports error about missing permission with some Userid stuff
2)does your app provide gui interface to do this operation

Revision history for this message
Eugene Tretyak (etretyak) wrote :

1) You could get "Permissions denied" error when mounting disk which exists in /etc/fstab without "user" attribute

2) No special gui. Just uses existing functionality of Konqueror/Dolphin.
From command line you could mount with:
$ kio_media_mounthelper -m /dev/sdaX

Revision history for this message
Dang Kang (kangdang) wrote :

On mounting the External Hard Disk I wish another issue could be fixed.
After the External Hard Disk is mounted, all the file names with Chinese characters cannot be shown.This issue does not happen in the Ubuntu/GNOME environment.

Revision history for this message
Eugene Tretyak (etretyak) wrote :

Dang Kang, I believe it is already fixed in latest kdebase update for Hardy. I've fixes issue with LOCALE settings for Cyrillic encoding, but it is the same for any language.

description: updated
Revision history for this message
Schmirrwurst (schmirrwurst) wrote :

I've the same issue under updated lucid...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.