Bug 41685 - floppies cannot be unmounted without closing all Konqueror windows
Summary: floppies cannot be unmounted without closing all Konqueror windows
Status: RESOLVED DUPLICATE of bug 37780
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-26 10:48 UTC by Aniruddha Shankar
Modified: 2002-09-18 06:56 UTC (History)
0 users

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 Aniruddha Shankar 2002-04-26 10:35:29 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           konqueror
Version:           KDE 3.0.0 
Severity:          normal
Installed from:    Compiled From Sources
Compiler:          gcc version 2.95.3 20010315 (release) 
OS:                Linux
OS/Compiler notes: Gentoo GNU/Linux 1.1a

At certain times floppies cannot be unmounted without closing some or all Konqueror windows including web browser windows. This seems to be related to 
bug 37780 at http://bugs.kde.org/db/37/37780.html 
Unmounting the floppies from the command line as root or as root with the -f switch all fail with the error that the device is busy. 

Expected Behaviour:  Floppies should unmount cleanly.

How to Reproduce:  Argh. just when I want to reproduce the bug all floppies work fine. The users in the computer lab find this bug regularly though... 

Is there anything I can do when the bug crops up again that will give me more infomation?   will a fuser /dev/fd0 help ? 

thanks 

Aniruddha Shankar

Bangalore India

(Submitted via bugs.kde.org)
Comment 1 Stephan Kulow 2002-04-26 11:18:37 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 26 April 2002 12:35 kream77@yahoo.com wrote:
> Package: konqueror
> Version: KDE 3.0.0
> Severity: normal
> Installed from:    Compiled From Sources
> Compiler:          gcc version 2.95.3 20010315 (release)
> OS:                Linux
> OS/Compiler notes: Gentoo GNU/Linux 1.1a
>
> At certain times floppies cannot be unmounted without closing some or all
> Konqueror windows including web browser windows. This seems to be related
> to bug 37780 at http://bugs.kde.org/db/37/37780.html
> Unmounting the floppies from the command line as root or as root with t=
he
> -f switch all fail with the error that the device is busy.
>
> Expected Behaviour:  Floppies should unmount cleanly.
>
> How to Reproduce:  Argh. just when I want to reproduce the bug all
> floppies work fine. The users in the computer lab find this bug regularly
> though...
>
> Is there anything I can do when the bug crops up again that will give me
> more infomation?   will a fuser /dev/fd0 help ?

lsof might help too.

Greetings Stephan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8yTeNwFSBhlBjoJYRAo9JAJ4sxFF3fOgGMAU+W9yF274w4W2r8wCaA/14
7kspRxv470AlxW+qWFg09bA=3D
=3DAeJD
-----END PGP SIGNATURE-----
Comment 2 Aniruddha Shankar 2002-04-28 05:02:47 UTC
Dear Mr. Kulow

       the bug has resurfaced and at a computer where I am working - there is
currently no floppy inside the drive. a Konqueror window is open. On seeing
this I opened another Konqueror window to log into mail.yahoo.com so that I
could send a follow-on to the original bug report.

==>
sh-2.05a$ cat /etc/fstab | grep floppy
/dev/fd0        /floppy         vfat    noautousers    0 0

sh-2.05a$ mount | grep floppy
/dev/fd0 on /floppy type vfat (rwnoexecnosuidnodev).

sh-2.05a$ umount /dev/fd0
umount: /floppy: device is busy

sh-2.05a$ umount -f /dev/fd0
umount: only root can do that

bash-2.05a# umount -f /dev/fd0
umount2: Device or resource busy
umount: /dev/fd0: not mounted
umount: /floppy: Illegal seek

bash-2.05a# fuser /dev/fd0 <== this returns me straight to the prompt.

bash-2.05a# lsof /dev/fd0
COMMAND  PID    USER   FD   TYPE DEVICE       SIZE NODE NAME
kdeinit 2877 student   27r   REG    20  543515489   35 /floppy/tem disk. or
kdeinit 2877 student   36r   REG    20     658809   36 /floppy/and stri.ke
kdeinit 2877 student   37r   REG    20 1329799200   37 /floppy/\r\ndisk b.oot
kdeinit 2877 student   38r   REG    20   14876899   38
/floppy/\x7fz^Nt7\x8a\x8

bash-2.05a# ls -A /floppy  <== no files listed.

sh-2.05a$ kill 2877

bash-2.05a# lsof /dev/fd0 <== no files listed.
bash-2.05a#

sh-2.05a$ mount | grep floppy
/dev/fd0 on /floppy type vfat (rwnoexecnosuidnodev)

sh-2.05a$ umount /dev/fd0
sh-2.05a$

sh-2.05a$ mount | grep floppy <== nothing listed.

can you tell me of any workarounds I may be able to get for this problem ? 

thanks 

Aniruddha Shankar
Bangalore India



 --- Stephan Kulow <coolo@kde.org> wrote: > -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Friday 26 April 2002 12:35 kream77@yahoo.com wrote:
> > Package: konqueror
> > Version: KDE 3.0.0
> > Severity: normal
> > Installed from:    Compiled From Sources
> > Compiler:          gcc version 2.95.3 20010315 (release)
> > OS:                Linux
> > OS/Compiler notes: Gentoo GNU/Linux 1.1a
> >
> > At certain times floppies cannot be unmounted without closing some or all
> > Konqueror windows including web browser windows. This seems to be related
> > to bug 37780 at http://bugs.kde.org/db/37/37780.html
> > Unmounting the floppies from the command line as root or as root with the
> > -f switch all fail with the error that the device is busy.
> >
> > Expected Behaviour:  Floppies should unmount cleanly.
> >
> > How to Reproduce:  Argh. just when I want to reproduce the bug all
> > floppies work fine. The users in the computer lab find this bug regularly
> > though...
> >
> > Is there anything I can do when the bug crops up again that will give me
> > more infomation?   will a fuser /dev/fd0 help ?
> 
> lsof might help too.
> 
> Greetings Stephan
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
> 
> iD8DBQE8yTeNwFSBhlBjoJYRAo9JAJ4sxFF3fOgGMAU+W9yF274w4W2r8wCaA/14
> 7kspRxv470AlxW+qWFg09bA=
> =AeJD
> -----END PGP SIGNATURE-----
>  

________________________________________________________________________
For live cricket scores download  Yahoo! Score Tracker
 at: http://in.sports.yahoo.com/cricket/tracker.html
Comment 3 Aniruddha Shankar 2002-06-03 12:49:11 UTC
bash-2.05a$ mount
/dev/hda6 on / type ext3 (rwnoatime)
proc on /proc type proc (rw)
none on /dev type devfs (rw)
tmpfs on /mnt/.init.d type tmpfs (rwmode=0644size=1024k)
/dev/hda3 on /var type ext3 (rwnoatimedata=journal)
/dev/hda5 on /home type ext3 (rwnoatimedata=journal)
/dev/fd0 on /floppy type vfat (rwnoexecnosuidnodev)
bash-2.05a$ ls -lh /floppy
total 225K
-rwxr-xr-x    1 student  wheel         30K Jun  8  2002 ASP.doc
-rwxr-xr-x    1 student  wheel         19K Jun  2 11:51 Lawnsoc.doc
-rwxr-xr-x    1 student  wheel         38K May 25 19:02 Memorial
Scoresheet.doc
-rwxr-xr-x    1 student  wheel         36K May 25 19:01 Oral Score Sheet.doc
drwxr-xr-x    3 student  wheel        1.0K May  9 19:49 PD Asians
-rwxr-xr-x    1 student  wheel         26K Jun  8  2002 facadv.doc
-rwxr-xr-x    1 student  wheel         11K May 30 16:53 mesg.mail
-rwxr-xr-x    1 student  wheel         46K May 25 19:01 objectives.doc
-rwxr-xr-x    1 student  wheel         16K May 30 11:48 rohit.doc
bash-2.05a$ ls -lh /floppy/PD\ Asians/
total 1.0K
drwxr-xr-x    6 student  wheel        1.0K May  9 13:40 Dont Print
bash-2.05a$ ls -lh /floppy/PD\ Asians/Dont\ Print/
total 9.4G <===== HUH????
dr-xr-xr-x    0 student  wheel         512 Nov 19  2032  sir owe.n s
dr-xr-xr-x    0 student  wheel         512 Mar 14  1996 ant toda.y a
-r-xr-xr-x    1 student  wheel        742M Mar  5  1996 dition t.o b
-r-xr-xr-x    1 student  wheel        1.6G Mar 25 14:19 doption.by
-r-xr-xr-x    1 student  wheel        1.6G Aug 31  2028 ia is of. sp
-r-xr-xr-x    1 student  wheel        1.8G Nov  9  2035 lly. it.is
-r-xr-xr-x    1 student  wheel        1.8G Mar 14  2030 n in ter.ms
-rwxr-xr-x    1 student  wheel        1.6G Nov  1  2037 the stat.e o
bash-2.05a$ cd /
====> at this point I also closed a konqueror window that was displaying
/floppy
bash-2.05a$ umount /floppy
umount: /floppy: device is busy
twentyfive root # lsof | grep /floppy
kdeinit   32428 student   15r   REG        20 1768252012      19858
/floppy/PD Asians/Dont Print/doption.by
kdeinit   32428 student   18r   REG        20 1768776801      19859
/floppy/PD Asians/Dont Print/ia is of. sp
kdeinit   32428 student   19r   REG        20  778396530      19860
/floppy/PD Asians/Dont Print/dition t.o b
kdeinit   32428 student   20r   REG        20 1986358373      19862
/floppy/PD Asians/Dont Print/n in ter.ms
kdeinit   32428 student   21r   REG        20 1763734121      19864
/floppy/PD Asians/Dont Print/the stat.e o
kdeinit   32428 student   22r   REG        20 1948280431      19865
/floppy/PD Asians/Dont Print/lly. it.is
====> I now had to close ALL  konqueror windows including a mail window 
before I could successfully issue the following command:
bash-2.05a$ umount /floppy
bash-2.05a$ mdir a:\pdasia~1
 Volume in drive A has no label
 Volume Serial Number is 0FD5-124A
Directory for A:/pdasia~1
.            <DIR>     05-09-2002  19:49
..           <DIR>     05-09-2002  19:49
DONTPR~1     <DIR>     05-09-2002  13:40  Dont Print
        3 files                   0 bytes
                          1 225 216 bytes free
bash-2.05a$ mdir a:\pdasia~1\dontpr~1
mdir: File "a:pdasia~1dontpr~1" not found
bash-2.05a$ uname -a
Linux twentyfive.complab 2.4.19-gentoo-r5 #2 Sat Jun 1 23:07:12 IST 2002
i686 GenuineIntel

more information can possibly be had at
http://bugs.gentoo.org/show_bug.cgi?id=3350 

________________________________________________________________________
Everything you always wanted to know about cars and bikesnow
 at: http://in.autos.yahoo.com/cricket/tracker.html
Comment 4 Roger Larsson 2002-07-09 21:30:21 UTC
This happens on both my windows/C and on floppy

Here is how to reproduce it with recent cvs:
* insert a empty
* open device:/
* click on the floppy - it will mount
* REFRESH the opened directory - necessary (or move down in a subdir)
* back out
* try to unmount - will not work

"Could not unmount device.
The reported error was:
umount: /media/floppy: unit is busy" (translated from Swedish)

Since I have not seen this before I think this happens because I use
"--enable-dnotify" when compiling KDELIBS (I do not use fam)

My guess on what is wrong:
KDE does not stop all notification watches before trying to unmount.
(it should do it both when using dnotify and with fam)

/RogerL
Comment 5 John Firebaugh 2002-09-18 06:56:27 UTC

*** This bug has been marked as a duplicate of 37780 ***