unmounting a floppy (moronic newbie question)
Boy, learning Linux is fun. Today I used (copied from) a floppy for the second time! Took me all of ten minutes with CP/M, but with Linux. . . . mount tells me (inter alia): /dev/fd0 on /media/floppy type vfat (rw,noexec,nosuid,nodev,sync,user=peter) Having copied from it, I no longer want it. I'm not using it (as far as I know, and I've thought about this for some time). peter@linux:~> umount /dev/fd0 brings me the message umount: /media/floppy: device is busy Can I just ignore this and take the silly thing out before it fries? (I'd like to return it to its owner.) (Yes, I have attempted to look in the user guide, the unofficial FAQ, and one O'Reilly book about Linux to see how a diskette can be busy when it appears not to be in use -- no results.)
* Peter Evans
mount tells me (inter alia):
/dev/fd0 on /media/floppy type vfat (rw,noexec,nosuid,nodev,sync,user=peter)
Having copied from it, I no longer want it. I'm not using it (as far as I know, and I've thought about this for some time).
peter@linux:~> umount /dev/fd0
brings me the message
umount: /media/floppy: device is busy
You have the directory /media/floppy open in konqueror or, perhaps, an xterm window, something is using /media/floppy. Close that app or leave /media/floppy directory and it should no longer be busy. and the command is: umount /media/floppy -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org
Patrick Shanahan suggests (with undeserved politeness):
You have the directory /media/floppy open in konqueror or, perhaps, an xterm window, something is using /media/floppy. Close that app or leave /media/floppy directory and it should no longer be busy.
No, I'd thought of that before I posted. But just for good measure I closed down everything (even Mozilla, which I've now reopened for this message) other than the konsole, and tried again, this time using umount /media/floppy This gives me the same bull about the device being busy. As for an xterm window, my Linux book doesn't describe what it is in sufficient detail for me to understand. (Funny, I always thought my IQ was over 60 until I started to use Linux three weeks or so ago.)
xterm is like a windows command prompt window in your window manager, except that it is running a unix/linux shell. make sure you do cd / or something to make sure you are not in /media/floppy
As for an xterm window, my Linux book doesn't describe what it is in sufficient detail for me to understand.
(Funny, I always thought my IQ was over 60 until I started to use Linux three weeks or so ago.)
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 17 June 2003 22:37, Peter Evans wrote: <snip>
No, I'd thought of that before I posted. But just for good measure I closed down everything (even Mozilla, which I've now reopened for this message) other than the konsole, and tried again, this time using
umount /media/floppy
This gives me the same bull about the device being busy.
As for an xterm window, my Linux book doesn't describe what it is in sufficient detail for me to understand.
(Funny, I always thought my IQ was over 60 until I started to use Linux three weeks or so ago.)
This is the same problem with CD drives too I think. You're using 8.2 correct? If so, open kdesysguard, and kill all non-root instances of kio and/or konqueror, and you should then be able to umount your floppy. Then in control center, you might want to uncheck that konqueror has 1 instance of it 'ready' (it won't be any noticeably slower to open, YMMV). John - -- I needed fresh bugs for my SuSE gecko, and Linux penguin. So I went out and caught this huge ugly blue and red and green and yellow butterfly. They won't need fresh food for 3 months now. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE+8BGTH5oDXyLKXKQRAn8GAJ93LqZ8YqR7ZLPMFzLQ5vIDrvrY3QCeId/r OfV4Qr+R9AZKjDTJ8KF2Qyw= =lv+L -----END PGP SIGNATURE-----
Rohit tempts me:
I always just take out my floppies...
But why do something so simple when instead I can follow John, who correctly surmises that I'm using 8.2 and
pen kdesysguard, and kill all non-root instances of kio and/or konqueror, and you should then be able to umount your floppy.
Done. Man, that was fun. I don't know what kio was, but I had a great time zapping all of its instances.
Then in control center, you might want to uncheck that konqueror has 1 instance of it 'ready' (it won't be any noticeably slower to open, YMMV).
MM (my mileage) is all over the place as it is. My Control Centre is in Japanese, but the likeliest thing is [what I back-translate as] "Internet & network | Web browser". But I can't see anything promising under that.
I needed fresh bugs for my SuSE gecko, and Linux penguin. So I went out and caught this huge ugly blue and red and green and yellow butterfly.
Hmm, I could make some slightly different observation about the apparent relative bugginess of 8.2 and Win2k -- but that would merely exhibit my ignorance, so I'll desist.
On Wed, 18 Jun 2003 19:35:04 +0900
Peter Evans
Done. Man, that was fun. I don't know what kio was, but I had a great time zapping all of its instances.
You can kill them all in one go by using the command:
fuser -k
On Wed, 18 Jun 2003, Peter Evans wrote:
(Funny, I always thought my IQ was over 60 until I started to use Linux three weeks or so ago.)
Dont worry. Two bit [actually free] but reputed internet tests tell me that my IQ is 148 [showing off] but then I am so dumb that even this question did not occur to me. I always just take out my floppies... Rohit +9122 5692 2108 G9,Floor-1,Chandivali : SDE : TLSI : 9821394599@bplmobile.com The information below is compulsorily added for non-mahindrabt recepients. ********************************************************* Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ********************************************************* Visit us at http://www.mahindrabt.com
On Tue, 2003-06-17 at 23:37, Peter Evans wrote:
Patrick Shanahan suggests (with undeserved politeness):
You have the directory /media/floppy open in konqueror or, perhaps, an xterm window, something is using /media/floppy. Close that app or leave /media/floppy directory and it should no longer be busy.
No, I'd thought of that before I posted. But just for good measure I closed down everything (even Mozilla, which I've now reopened for this message) other than the konsole, and tried again, this time using
umount /media/floppy
This gives me the same bull about the device being busy.
lsof /media/floppy should show what is using the device. Ken
Ken Schneider wrote:
On Tue, 2003-06-17 at 23:37, Peter Evans wrote:
umount /media/floppy
This gives me the same bull about the device being busy.
lsof /media/floppy should show what is using the device.
I often get that message, cannot unmount floppy, device is busy. When in an X-terminal, I close the terminal, open a new one, then I can unmount the floppy. When in a text console, I log off and back in again, then I can unmount the floppy. So, the device being busy appears to be the terminal...? SH
* Sjoerd Hiemstra
Ken Schneider wrote:
On Tue, 2003-06-17 at 23:37, Peter Evans wrote:
umount /media/floppy
This gives me the same bull about the device being busy.
lsof /media/floppy should show what is using the device.
I often get that message, cannot unmount floppy, device is busy. When in an X-terminal, I close the terminal, open a new one, then I can unmount the floppy. When in a text console, I log off and back in again, then I can unmount the floppy. So, the device being busy appears to be the terminal...?
Only *if* sometime after mounting the floppy, you cd'ed into the floppy and did not leave. The terminal would be ?focused? in the floppy and would not allow you to umount. If you are riding a horse, do not kill the horse. You would no longer be riding. You would get off and onto another horse *first*. Not a good analogy but you get the idea <grin>. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org
On Tue, 2003-06-17 at 23:18, Peter Evans wrote:
Boy, learning Linux is fun. Today I used (copied from) a floppy for the second time! Took me all of ten minutes with CP/M, but with Linux. . . .
mount tells me (inter alia):
/dev/fd0 on /media/floppy type vfat (rw,noexec,nosuid,nodev,sync,user=peter)
Having copied from it, I no longer want it. I'm not using it (as far as I know, and I've thought about this for some time).
peter@linux:~> umount /dev/fd0
brings me the message
umount: /media/floppy: device is busy
Can I just ignore this and take the silly thing out before it fries? (I'd like to return it to its owner.)
Try this "lsof /dev/fd0". This should tell you what is keeping the disk from being unmounted. Give it a try -- Marshall "Nothing is impossible, we just do not have all the anwsers to make the impossible, possible."
On Wed, 18 Jun 2003 12:18:31 +0900
Peter Evans
Boy, learning Linux is fun. Today I used (copied from) a floppy for the second time! Took me all of ten minutes with CP/M, but with Linux.
Hey, at least: cp original destination make more sense than pip destination=original ;-) Charles -- lp1 on fire (One of the more obfuscated kernel messages)
participants (9)
-
Alexander Klayman
-
Charles Philip Chan
-
John
-
Ken Schneider
-
Marshall Heartley
-
Patrick Shanahan
-
Peter Evans
-
Rohit
-
Sjoerd Hiemstra