Announcement

Collapse
No announcement yet.

Error - kio_media_mounthelper when removing USB

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Error - kio_media_mounthelper when removing USB

    Is anyone else having problems when selecting the "Safely remove" option for a mounted USB drive? When I do this I get 2 messages on the screen. The normal one saying that the data is being sync'd and the following error message:

    "Error - kio_media_mounthelper when removing USB"

    The device is unmounted but the error message is a little annoying.

    Thanks

    #2
    Re: Error - kio_media_mounthelper when removing USB

    I did some checking into this and if I use the command "kio_media_mounthelper -u media:/sdd1", I'm able to unmount without any eject errors. If I use "kio_media_mounthelper -s media:/sdd1", I receive the error. When you select 'safely remove' from the GUI menu, it calls "media_safelyremove.desktop" which executes "kio_umountwrapper". This wrapper then calls "kio_media_mounthelper -s media:/sdd1". If I can figure out how to call this without the 's' option, I think I'd be alright.

    I could edit "media_safelyremove.desktop" to just execute "kio_media_mounthelper -u media:/sdd1", but then I don't have the progress dialog.

    Could someone check if they are able to remove a USB stick without getting any errors?

    Thanks

    Comment


      #3
      Re: Error - kio_media_mounthelper when removing USB

      Could someone check if they are able to remove a USB stick without getting any errors?
      Usb flash disk mounts Ok but with the "Safely Remove":
      Error-kio_media_mounthelper

      The device was successfully unmounted, but could not be ejected.

      As you noticed:
      executes "kio_umountwrapper". This wrapper then calls "kio_media_mounthelper -s media:/sdd1". If I can figure out how to call this without the 's' option, I think I'd be alright.
      kio_umountwrapper --help tells:
      Usage: kio_umountwrapper [Qt-options] [KDE-options]

      Generic options:
      --help Show help about options
      --help-qt Show Qt specific options
      --help-kde Show KDE specific options
      --help-all Show all options
      --author Show author information
      -v, --version Show version information
      --license Show license information
      -- End of options

      Arguments:
      URL URL to Safely Remove
      => Only argument is the URL


      ! Changing default - Proceed at your own risk !

      Package: kio-umountwrapper (0.2-0ubuntu6)
      progress dialog for safely removing devices in KDE.
      Wrapper around kio_media_mountwrapper. Provides a progress dialog for Safely Removing of devices in KDE.
      Homepage: http://frode.kde.no/misc/kio_umountwrapper/
      Downloading from the Ubuntu packages:

      kio-umountwrapper_0.2-0ubuntu6.diff.gz
      kio-umountwrapper_0.2-0ubuntu6.dsc
      kio-umountwrapper_0.2.orig.tar.gz

      Unpacking
      Code:
      dpkg-source -x kio-umountwrapper_0.2-0ubuntu6.dsc
      Editing /kio-umountwrapper-0.2/src/kio_umountwrapper.cpp

      There are parameters for kio_media_mounthelper
      Code:
        KProcess *p = new KProcess(this);
        *p << "kio_media_mounthelper";
        *p << "-s";
        *p << url;
        kdDebug() << "KProcess: " << url << endl;
        connect(p, SIGNAL(processExited(KProcess *)),
        this, SLOT(processFinished(KProcess *)));
        p->start();
      Note
      man kio_media_mounthelper
      SYNOPSIS
      kio_media_mounthelper [Qt-options] [KDE-options] [options] URL

      DESCRIPTION
      kio_media_mounthelper is a helper program to handle the mounting of
      media in KDE. It is part of the KIO subsystem.

      Options:
      -u Unmount given URL

      -m Mount given URL (default)

      -e Eject given URL via kdeeject

      -s Unmount and Eject given URL (necessary for some USB devices)
      => Changing *p << "-s"; to *p << "-u";


      In the /kio-umountwrapper-0.2/ folder:
      Code:
      dpkg-buildpackage -rfakeroot -b -uc
      Result: kio-umountwrapper_0.2-0ubuntu6_i386.deb

      Installing, Seems to work, no errors (unmounting not ejecting)


      Link:

      FAQ: Installing from source
      http://kubuntuforums.net/forums/inde...opic=3085626.0
      Before you edit, BACKUP !

      Why there are dead links ?
      1. Thread: Please explain how to access old kubuntu forum posts
      2. Thread: Lost Information

      Comment


        #4
        Re: Error - kio_media_mounthelper when removing USB

        Thanks Rog131. I will give this a try. I wonder why I'm having this problem now. I didn't have this issue with Gutsy Gibbon.

        Comment


          #5
          Re: Error - kio_media_mounthelper when removing USB

          Hi, I've got exactly the same problem (on hardy). It has probably something to do with permission rights. I can manually eject my usb stick with sudo (from console), but I cannot do the same without it. To unmount the device however I don't need sudo. My guess is one of the recent upgrades was messed up. Simple change of "unmount and eject" to "unmount only" doesn't solve the problem. I've seen something like this before on debian. It took me a while to solve it. I had to add my user to plugdev group to make "remove safely" option work again (not this time though). Anyway, closer look on /etc/groups file might help.

          Comment


            #6
            Re: Error - kio_media_mounthelper when removing USB

            Would you mind posting a message about this here:

            https://bugs.launchpad.net/ubuntu/+s...al/+bug/217550

            Originally posted by mfabry
            Hi, I've got exactly the same problem (on hardy). It has probably something to do with permission rights. I can manually eject my usb stick with sudo (from console), but I cannot do the same without it. To unmount the device however I don't need sudo. My guess is one of the recent upgrades was messed up. Simple change of "unmount and eject" to "unmount only" doesn't solve the problem. I've seen something like this before on debian. It took me a while to solve it. I had to add my user to plugdev group to make "remove safely" option work again (not this time though). Anyway, closer look on /etc/groups file might help.

            Comment


              #7
              Re: Error - kio_media_mounthelper when removing USB

              Originally posted by Gumper
              Would you mind posting a message about this here:

              https://bugs.launchpad.net/ubuntu/+s...al/+bug/217550
              I added a comment.

              PS A possible solution for the desperate ones - adding user to every group on system one by one (and hope the correct group is actually there).

              PS2 I checked permissions on /dev (root/root) and /dev/sdh1 (my stick - root/disk). Add your users to the disk group and everything should be fine. It worked for me.

              Comment


                #8
                Re: Error - kio_media_mounthelper when removing USB

                Same problem here.
                On laptop, desktop, using multiple flash disks or removable HDD.
                7.10 had no issues, so it must be with Hardy 8.04

                Comment

                Working...
                X