Bug 103198 - I umount floppy in media:/ but KDE doesn't change
Summary: I umount floppy in media:/ but KDE doesn't change
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: media (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Jérôme Lodewyck
URL:
Keywords:
: 110365 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-04 15:06 UTC by Iñaki Baz Castillo
Modified: 2006-06-09 23:08 UTC (History)
1 user (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 Iñaki Baz Castillo 2005-04-04 15:06:41 UTC
Version:           desconocido (using KDE 3.4.0, Debian Package 4:3.4.0-0pre2 (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-8)
OS:                Linux (i686) release 2.6.10

I have read a lot of bugs about devices umount, but not like the next one:

I have Debian Sid with KDE 3.4, udev, pmount, hal and dbus-1, so when I conect a USB or insert a CD an icon appear in media:/.

Anyway, there is a problem with the floppy, to reproduce it:

- I have a line in fstab about floppy: "/dev/fd0  /mnt/floppy ..." (exactly the same with the cd and USB pendrive).
- Insert a floppy ang open media:/
- The icon of the floppy is "umounted" (OK)
- Double click in the icon and the floppy is mounted, and I can see the files.
- Open a console and exec "mount", so it appears:
  /dev/fd0 on /mnt/disquetera type vfat (rw,noexec,nosuid,nodev)  (OK)
- Try to umount the floppy in media:/ (right click and "umount").
- The icon doesn't change, it is still the "floppy mounted" icon.  ?¿?¿?¿
- But the floppy has been succesfully umounted:
- Go to console and exec "mount", you can see that floppy is not mounted now.
- Try to umount again the floppy in media:/
- A mmesage "umount: /mnt/floppy is not mounted (according to mtab)" appears. (OK)
- Extract the floppy and open media:/
- The floppy icon still is "umounted". ¿?¿?
- Double click in it: you see the files of the extrated floppy. ?¿?¿
- Press F5 to actualice and the files dissapear.
- Go back, the floppy icon still is "mounted". ?¿?¿?
- Now insert a different floppy.
- Double click in the floppy icon.
- Because KDE things that floppy was already mounted, it doesn't try to mount the new floppy, and the files of the new floppy don't appear.  ?¿?¿?
- The floppy is not mounted (do "mount" in console to verify it).
- So now it's impossible to mount the NEW floppy in media:/.
- Do it in a console: mount /mnt/floopy
- Go to floppy in media:/ and doble click.
- Nothing appear, you must press F5 to actualice window and now the new files appear.
- Try now to umount the floppy in media:/
- The same problem occurs again  :(

This doesn't occur with the CD or the USB pendrive.

Note: A few times the mount/umount floppy works fine in my system, but normally it fails like I have described (95% times).
Comment 1 Kevin Ottens 2005-04-04 19:51:28 UTC
Reassigning to Jerôme since he knows HAL internals better than me.
Comment 2 Iñaki Baz Castillo 2005-04-07 14:00:36 UTC
Now I have set floppy as Supermount device. So my new line in fstab is:
  /dev/fd0   /mnt/floppy   supermount dev=/dev/fd0,fs=auto,sync  0  0

Now I have a different problem with the floppy in KDE (but the DVD and CR-RW work fine with supermount and media:/)

- I start KDE and open media:/
- The Floppy icon is umounted (very strange using supermount ¿?¿¿?¿)
- If I do in a console "mount", I can see that supermount floppy device is mounted:
    /dev/fd0 on /mnt/floppy type supermount (rw,sync,dev=/dev/fd0,fs=auto)
- Insert a floppy.
- Doble click in Floppy icon and an error appears:
    "The media protocol died unexpectedly"
- The icon is still "umounted" and I can't see floppy files.
- In this way, it's impossible to open floppy in KDE.

The "manual" solution is to do this:
- As root "pumount /dev/fd0" (umount device).
- After that, as root "pmount /dev/fd0" (mount device again).
- Now, the floppy icon in media:/ is "mounted" and I can go into it and see the floppy files. It works fine now (I can change the floppy and pressing F5 I see the new files, etc... OK).
- Note: I have created a script in system init to do as root before KDM stars:
    pumount /dev/fd0
  and
    pmount /dev/fd0
  but It doesn't work.
- This bad solution NEEDS to have KDE opened, I think.

I installed FAM but nothing changed, and I unistalled it.

If you need more information about this problem, please tell me.
Thanks for all.
Comment 3 Iñaki Baz Castillo 2005-04-07 16:39:00 UTC
Another simple and strange solution:

- When starting KDE the floppy icon in media is "umounted" (that it is not correct, because floppy uses supermount and it should appear as "mounted" always). In fact, if I go to /mnt/floppy I can see the floppy files, so it's not problem of supermount, it works fine.

- If I connect my USB pendrive or insert a CD an icon appears in media:/, and... the floppy icon CHANGES TO "MOUNTED" automatically (just after connecting the pendrive or the CD). After that, I can see the floppy files in media:/

So I don't know why this bug occurs (problem of media:/, hal, dbus? no idea).

 
Comment 4 Jérôme Lodewyck 2005-04-07 17:28:53 UTC
Thank you for your advanced investigations. I think I spot the problem, and 
I'll try to fix it ASAP.

Just a precision : are you using KDE 3.4 or KDE from CVS ? and HAL 0.4 or HAL 
0.5 ?
Comment 5 Iñaki Baz Castillo 2005-04-07 17:59:58 UTC
I use hal of Debian Sid, this is 0.4.7-3 version.
And my KDE version is 3.4 from those sources:
  deb http://pkg-kde.alioth.debian.org/kde-3.4.0/ ./

Thanks a lot for your job!
Comment 6 Iñaki Baz Castillo 2005-06-08 16:10:57 UTC
This problem still occurs with:

- Debian Sid
- KDE 3.4.1 (from Alioth)
- hal       0.4.8-1
- dbus-1    0.23.4-1qt1
- pmount    0.8-2
- udev      0.056-3
Comment 7 Iñaki Baz Castillo 2005-08-30 22:56:40 UTC
Still occurs with: 
 
 - Debian Sid 
 - KDE 3.4.2 (from Alioth) 
 - hal       0.4.8-3 
 - dbus-1    0.23.4-3 
 - pmount    0.8-2 
 - udev      0.060-1
Comment 8 Kevin Ottens 2005-10-25 18:21:38 UTC
*** Bug 110365 has been marked as a duplicate of this bug. ***
Comment 9 Sergio Cambra 2005-10-25 19:45:59 UTC
I've upgraded to kubuntu breezy and I don't have this bug any more.
- KDE 3.4.3
- hal       0.5.3 
- dbus      0.36.2
- pmount    0.9.5 
- udev      0.060
 
Comment 10 Iñaki Baz Castillo 2005-11-05 21:18:27 UTC
Debian Sid
KDE 3.4.3

dbus-1       0.23.4-7
dbus-glib-1  0.23.4-7
dbus-qt-1c2  0.23.4-7
hal          0.4.8-8
pmount       0.8-2
udev         0.071-1


Now I work perfectly with the floppy using Supermount, but not the same without it:

My fstab:
/dev/fd0 /mnt/floppy     auto    users,noauto     0    2

In media:/ if I insert a floppy and do double click in the floppy icon it is mounted and the icon changed to "mount" state. But if I press in "umount" the icon still shows "mounted" state.

I extract the floppy and if I do double click in the icon it shows still the files of the floppy. Pressing F5 to reload doesn't change the view.

I do in a console "mount" and see that the floppy is not mounted, but KDE thinks that it's mounted and it's impossible to insert another floppy and see the content of it because media:/ always shows the content of the previous floppy.


Comment 11 Iñaki Baz Castillo 2005-11-05 21:20:26 UTC
Recently I have installed Kubuntu Breezy in a PC and there is not this problem, but the version of hal, dbus, udev and pmount is higher in Kubuntu, so it's possible the bug is fixed in future upgrades in Debian, maybe but of course I'm not sure.
Comment 12 Rafael Ávila de Espíndola 2006-01-15 18:05:49 UTC
I had the same problem. Upgrading to kde 3.5 (debian sid packages) solved the problem.

Unfortunately, I must use hal 0.4.8. If I upgrade to 0.5.5.1, clicking in an unmounted floppy mounts it, but the new konqueror window is always busy and never displays the floppy contents.

(should the last paragraph be a new bug report?)
Comment 13 Modestas Vainius 2006-03-25 16:17:19 UTC
The problem in comment #12 is being discussed in #120619. 

Actually, this bug should be closed as the original problem has been fixed in early 3.5 development cycle.
Comment 14 Kevin Ottens 2006-06-09 21:23:21 UTC
Obsoleted by KDE 3.5.x
Comment 15 Iñaki Baz Castillo 2006-06-09 22:45:54 UTC
> ------- Additional Comments From ervin kde org  2006-06-09 21:23 -------
> Obsoleted by KDE 3.5.x


Obsoleted? maybe, but in many Debian with KDE and Kubuntu's I have installed 
in new machines the floppy just didn't work with media:/.
I press in the floppy after entering a floppy and error appears. In new 
Kubuntu installations.
Comment 16 Modestas Vainius 2006-06-09 23:05:41 UTC
in response to comment #15:

The bug you're refering to is a quite different problem. See bug #120619 for more information. 

On the other hand, the bug in question here is present only in kde 3.4.x and is obsolete as of kde 3.5, because kde 3.5 got media hal backend rewritten early in development cycle.
Comment 17 Iñaki Baz Castillo 2006-06-09 23:08:55 UTC
Ok, thanks for the explanation.