Re: [kde] unmount usb mounted device



Am Montag, 26. Juni 2006 08:06 schrieb Martin (KDE):
Hallo,

I have discovered a realy strange thing this weekend. If I plug in
a usb stick, a usb-stick symbol pops up at my desktop. With the
latest dbus/hal stuff there is no entry in the fstab (that is ok
afaik). I can mount this usb device with no problem.

If I want to unmount this device I get no error message. There is
something going on (the cpu load is high for about three seconds)
but nothing happens. The usb devise keep being mounted. I have to
login as root to unmount the device.

With the older hal versions there was a tool to update the fstab
(fstab-sync), but this tool is remove in current versions. Am I
missing something fundamental?

KDE 3.5.3 (from cvs from last friday)
hal 0.5.7
dbus 0.62
udev 0.94
Kernel 2.6.16.20

I reply to my own post. I have done some further investigations. The
Results:

I have found the program standing behind the mount/unmount/safely
remove menue entries and tested this program.

kio_media_mounthelper /dev/sda2 works as expected and mounts my
device.

kio_media_mounthelper -u /dev/sda2 works as expected too. It unmounts
my device

kio_media_mounthelper -s /dev/sda2 does not make anything to a mounted
device (at least nothing I can see)

kio_media_mounthelper -e /dev/sda2 has the same efect as the -s one.

btw: eject /dev/sda as root unmounts my usb-stick and removes the icon
from the desktop (and the media list). The same command with my IPod
only unmount the device.

So I am a little step further, but not at the end.


Martin

Martin
___________________________________________________
This message is from the kde mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.



Relevant Pages

  • Re: [kde] unmount usb mounted device
    ... dbus/hal stuff there is no entry in the fstab. ... mount this usb device with no problem. ... If I want to unmount this device I get no error message. ... Archives: http://lists.kde.org/. ...
    (KDE)
  • Re: Flames over -- Re: Which is simpler?
    ... This is no more acceptable than ejecting a floppy without first unmounting it; the only difference is that the floppy drive doesn't erroneously inform the kernel that you have done this simply because you suspend. ... Users do not expect to be able to yank out their usb memory stick while it is mounted. ... They are told to always unmount first. ... One other alternative that just occurs to me now is to have a special stackable filesystem that can suspend all IO and unmount the filesystem underneath it then have the filesystem be easily reattachable later on (the stackable layer would look up paths again on remount. ...
    (Linux-Kernel)
  • Re: Cannot remove flash memory
    ... LED on the USB unit turns on, ... You should be able to unmount it with the pumount command. ... proc on /proc type proc ... varlock on /var/lock type tmpfs ...
    (Ubuntu)
  • Re: Flames over -- Re: Which is simpler?
    ... Now, I don't know for certain that neither key had a serial number, but the two I have here in my hand certainly don't, and I could _easily_ see somebody swapping USB keys not knowing that they're "not supposed to do that" and getting massive data corruption when the filesystem reads and writes pages from a completely different block device. ... plug and unplug SCSI drives whenever they feel like it. ... reconnect USB devices while suspended on hardware that doesn't support proper USB suspend) with a high probability of causing data corruption or crashes is wrong. ... As for fixing the kernel to unmount it for you, that is not always possible; take the root on usb case. ...
    (Linux-Kernel)
  • Re: Kernel Panic on removing usb storage
    ... USB devices are meant to be ... > the USB drive without unmount, but there is absolutely no reason to ... the ideal would be to plug it in it magically shows up on ... works in Linux and I can live with that, the issue is the kernel panic. ...
    (comp.os.linux.misc)