[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Problems with removable media management in 3.5.8+
From:       Pavel Troller <patrol () sinus ! cz>
Date:       2008-02-14 8:29:59
Message-ID: 20080214082959.GA25147 () tangens ! sinus ! cz
[Download RAW message or body]

Hi!
  I have problems to get correct removable media handling.
  First of all: I'm not using, and I don't want to use HAL.
  I've managed my udev scripts that when a new removable media appears,
a line is added into /etc/fstab, as in the example below:
/dev/sdd1	/media/usbhd01	auto	noauto,user	0	0
  Of course, the appropriate directory /media/usbhd01 is created before.
  As soon as it happens, KDE reacts with popping a dialog showing the new
media and some choices what to do with it. If a media:/ url is open, a new
item with appropriate icon appears in it. All seems to be OK, but it is
not: when I try to open the media, either from the dialog or by clicking
on the media icon, only a blank window appears and gear keeps spinning ad
infinitum. The media is not properly mounted. Trying to mount the media
by the RMB action on the icon also doesn't work (does nothing, no error
messages/dialogs). However, using kio_media_mounthelper -m media:/sdd1 from
the konsole mounts the media perfectly (ls /media/usbhd01 shows the contents),
but it is still not accessible (looks like empty) from konqueror.
  However, sometimes the "native KDE mount" succeeds (I'm suspecting that it
happens in the first case after the user logs into KDE), a "mounted type" of
icon appears, and the contents is then accessible. When I then try to
unmount (by RMB on the icon), it doesn't perform any visible change, the
unit still seems mounted, but internally it is unmounted (ls /media/usbhd01
is empty, mount is not shown in /etc/mtab). Because the RMB menu still shows
"Unmount" or "Securely remove", it's not possible to mount it again (just by
command).
  When the media is physically removed, udev removes the line in /etc/fstab and
the entry in media:/ properly disappears.
  I also tried to have both the names in the fstab identical (/dev/sdd1 and
/media/sdd1), it then shows disk icon instead of USB dongle one, but the
problems with mount/umount are exactly the same.
  I would like to debug the problem, but I don't know how. Are these symptoms
familiar to anybody ? What should I check ?

   With regards, Pavel Troller
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic