Unable to umount
Greetings On two separate systems running 8.2 Stable updated yesterday, I am unable to umount any USB thumb drives after mounting. I have tried both Fat32 and UFS formatted drives. I have tried with and without HAL enabled. I am running with all ports up to date and the latest XFCE4. This problem started with the upgrade of XFCE4 and Xorg. Here is how it looks [robert@dell64] ~ mount_msdosfs /dev/da6s1 Flash [robert@dell64] ~ ls -l Flash total 128 drwxr-xr-x 1 robert robert 32768 Jan 21 18:18 Android drwxr-xr-x 1 robert robert 32768 Jan 6 1980 LOST.DIR drwxr-xr-x 1 robert robert 32768 Jan 21 17:36 rosie_scroll drwxr-xr-x 1 robert robert 32768 Jan 21 16:53 rssreader [robert@dell64] ~ umount Flash umount: unmount of /home/robert/Flash failed: Device busy [robert@dell64] ~ umount /dev/da6s1 umount: unmount of /home/robert/Flash failed: Device busy If I log out of XFCE4 to the CLI, I can then umount normally. Is anyone else seeing this? TIA Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Unable to umount
On Sat, Mar 12, 2011 at 11:07 AM, Robert travelin...@cox.net wrote: Greetings On two separate systems running 8.2 Stable updated yesterday, I am unable to umount any USB thumb drives after mounting. I have tried both Fat32 and UFS formatted drives. I have tried with and without HAL enabled. I am running with all ports up to date and the latest XFCE4. This problem started with the upgrade of XFCE4 and Xorg. Here is how it looks [robert@dell64] ~ mount_msdosfs /dev/da6s1 Flash [robert@dell64] ~ ls -l Flash total 128 drwxr-xr-x 1 robert robert 32768 Jan 21 18:18 Android drwxr-xr-x 1 robert robert 32768 Jan 6 1980 LOST.DIR drwxr-xr-x 1 robert robert 32768 Jan 21 17:36 rosie_scroll drwxr-xr-x 1 robert robert 32768 Jan 21 16:53 rssreader [robert@dell64] ~ umount Flash umount: unmount of /home/robert/Flash failed: Device busy [robert@dell64] ~ umount /dev/da6s1 umount: unmount of /home/robert/Flash failed: Device busy If I log out of XFCE4 to the CLI, I can then umount normally. Is anyone else seeing this? TIA Are you on the drive or do you have files open from the flash drive? Try this: lsof /home/robert/Flash or lsof /dev/da6s1 It will tell you what files are using the device, you should close all files before unmounting as well as making sure your not in /home/robert/Flash/ or some subdir of ~/Flash. -- Did you know... If you play a Windows 2000 CD backwards, you hear satanic messages, but what's worse is when you play it forward ...it installs Windows 2000 -- Alfred Perlstein on chat at freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Unable to umount
On Sat, 12 Mar 2011 11:26:00 -0500 Chris Brennan xa...@xaerolimit.net wrote: On Sat, Mar 12, 2011 at 11:07 AM, Robert travelin...@cox.net wrote: Greetings On two separate systems running 8.2 Stable updated yesterday, I am unable to umount any USB thumb drives after mounting. I have tried both Fat32 and UFS formatted drives. I have tried with and without HAL enabled. I am running with all ports up to date and the latest XFCE4. This problem started with the upgrade of XFCE4 and Xorg. Here is how it looks [robert@dell64] ~ mount_msdosfs /dev/da6s1 Flash [robert@dell64] ~ ls -l Flash total 128 drwxr-xr-x 1 robert robert 32768 Jan 21 18:18 Android drwxr-xr-x 1 robert robert 32768 Jan 6 1980 LOST.DIR drwxr-xr-x 1 robert robert 32768 Jan 21 17:36 rosie_scroll drwxr-xr-x 1 robert robert 32768 Jan 21 16:53 rssreader [robert@dell64] ~ umount Flash umount: unmount of /home/robert/Flash failed: Device busy [robert@dell64] ~ umount /dev/da6s1 umount: unmount of /home/robert/Flash failed: Device busy If I log out of XFCE4 to the CLI, I can then umount normally. Is anyone else seeing this? TIA Are you on the drive or do you have files open from the flash drive? Try this: lsof /home/robert/Flash or lsof /dev/da6s1 It will tell you what files are using the device, you should close all files before unmounting as well as making sure your not in /home/robert/Flash/ or some subdir of ~/Flash. Chris Thank you for the reply. As shown above, I mounted the drive and then tried to umount the drive. I did not access it other than the ls command. [robert@dell64] ~ lsof Flash [robert@dell64] ~ lsof /dev/da6s1 [robert@dell64] ~ [robert@dell64] ~ umount Flash umount: unmount of /home/robert/Flash failed: Device busy [robert@dell64] ~ umount /dev/da6s1 umount: unmount of /home/robert/Flash failed: Device busy [robert@dell64] ~ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Unable to umount
On Sat, Mar 12, 2011 at 11:33 AM, Robert travelin...@cox.net wrote: Thank you for the reply. As shown above, I mounted the drive and then tried to umount the drive. I did not access it other than the ls command. [robert@dell64] ~ lsof Flash [robert@dell64] ~ lsof /dev/da6s1 [robert@dell64] ~ [robert@dell64] ~ umount Flash umount: unmount of /home/robert/Flash failed: Device busy [robert@dell64] ~ umount /dev/da6s1 umount: unmount of /home/robert/Flash failed: Device busy [robert@dell64] ~ For shgiggles, try and umount it as root, does that actually work? -- Did you know... If you play a Windows 2000 CD backwards, you hear satanic messages, but what's worse is when you play it forward ...it installs Windows 2000 -- Alfred Perlstein on chat at freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Unable to umount
On Sat, 12 Mar 2011 11:35:25 -0500 Chris Brennan xa...@xaerolimit.net wrote: On Sat, Mar 12, 2011 at 11:33 AM, Robert travelin...@cox.net wrote: Thank you for the reply. As shown above, I mounted the drive and then tried to umount the drive. I did not access it other than the ls command. [robert@dell64] ~ lsof Flash [robert@dell64] ~ lsof /dev/da6s1 [robert@dell64] ~ [robert@dell64] ~ umount Flash umount: unmount of /home/robert/Flash failed: Device busy [robert@dell64] ~ umount /dev/da6s1 umount: unmount of /home/robert/Flash failed: Device busy [robert@dell64] ~ For shgiggles, try and umount it as root, does that actually work? [robert@dell64] ~ umount Flash umount: unmount of /home/robert/Flash failed: Device busy [robert@dell64] ~ umount /dev/da6s1 umount: unmount of /home/robert/Flash failed: Device busy [robert@dell64] ~ Should have mentioned...been there, done that ...tried and failed. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Unable to umount
On Sat, 12 Mar 2011 08:48:40 -0800 Robert travelin...@cox.net wrote: On Sat, 12 Mar 2011 11:35:25 -0500 Chris Brennan xa...@xaerolimit.net wrote: On Sat, Mar 12, 2011 at 11:33 AM, Robert travelin...@cox.net wrote: Thank you for the reply. As shown above, I mounted the drive and then tried to umount the drive. I did not access it other than the ls command. [robert@dell64] ~ lsof Flash [robert@dell64] ~ lsof /dev/da6s1 [robert@dell64] ~ [robert@dell64] ~ umount Flash umount: unmount of /home/robert/Flash failed: Device busy [robert@dell64] ~ umount /dev/da6s1 umount: unmount of /home/robert/Flash failed: Device busy [robert@dell64] ~ For shgiggles, try and umount it as root, does that actually work? [robert@dell64] ~ umount Flash umount: unmount of /home/robert/Flash failed: Device busy [robert@dell64] ~ umount /dev/da6s1 umount: unmount of /home/robert/Flash failed: Device busy [robert@dell64] ~ Should have mentioned...been there, done that ...tried and failed. Sorry. Sent the wrong copy paste entry last time [root@dell64] ~# umount /dev/da6s1 umount: unmount of /home/robert/Flash failed: Device busy [root@dell64] ~# umount /home/robert/Flash umount: unmount of /home/robert/Flash failed: Device busy [root@dell64] ~# ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Unable to umount
On 12 Mar 2011 17:29:59 - John Levine jo...@iecc.com wrote: [robert@dell64] ~ umount Flash umount: unmount of /home/robert/Flash failed: Device busy Try umount -f The problem is likely that HAL or one of its friends helpfully has the device open just in case you might want to ask questions about it. Regards, John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies, Please consider the environment before reading this e-mail. http://jl.ly That works! I did not have to do that before the recent updates to XFCE4 and Xorg but as long as I can umount, I'm happy. Thank you John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Unable to umount
On Sat, Mar 12, 2011 at 12:34 PM, Robert travelin...@cox.net wrote: On 12 Mar 2011 17:29:59 - John Levine jo...@iecc.com wrote: [robert@dell64] ~ umount Flash umount: unmount of /home/robert/Flash failed: Device busy Try umount -f The problem is likely that HAL or one of its friends helpfully has the device open just in case you might want to ask questions about it. Regards, John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies, Please consider the environment before reading this e-mail. http://jl.ly That works! I did not have to do that before the recent updates to XFCE4 and Xorg but as long as I can umount, I'm happy. Thank you John 'umount -f' is dangerous, while it worked in your case, truly, make sure you don't have any open files in the future, just to ensure no loss of files or filesytem corruption. -- Did you know... If you play a Windows 2000 CD backwards, you hear satanic messages, but what's worse is when you play it forward ...it installs Windows 2000 -- Alfred Perlstein on chat at freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Unable to umount
[robert@dell64] ~ umount Flash umount: unmount of /home/robert/Flash failed: Device busy Try umount -f The problem is likely that HAL or one of its friends helpfully has the device open just in case you might want to ask questions about it. Regards, John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies, Please consider the environment before reading this e-mail. http://jl.ly ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Unable to umount
On 03/12/11 09:51, Chris Brennan wrote: 'umount -f' is dangerous, while it worked in your case, truly, make sure you don't have any open files in the future, just to ensure no loss of files or filesytem corruption Run sync before umount -f to flush write caches. Later, Jason ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Unable to umount
[robert@dell64] ~ umount Flash umount: unmount of /home/robert/Flash failed: Device busy [robert@dell64] ~ umount /dev/da6s1 umount: unmount of /home/robert/Flash failed: Device busy have you tried lazy unmount? umount -l /dev/da6s1 if you have root access you should su/sudo to that before trying this command. regards, tim On Sat, Mar 12, 2011 at 11:35 AM, Chris Brennan xa...@xaerolimit.net wrote: On Sat, Mar 12, 2011 at 11:33 AM, Robert travelin...@cox.net wrote: Thank you for the reply. As shown above, I mounted the drive and then tried to umount the drive. I did not access it other than the ls command. [robert@dell64] ~ lsof Flash [robert@dell64] ~ lsof /dev/da6s1 [robert@dell64] ~ [robert@dell64] ~ umount Flash umount: unmount of /home/robert/Flash failed: Device busy [robert@dell64] ~ umount /dev/da6s1 umount: unmount of /home/robert/Flash failed: Device busy [robert@dell64] ~ For shgiggles, try and umount it as root, does that actually work? -- Did you know... If you play a Windows 2000 CD backwards, you hear satanic messages, but what's worse is when you play it forward ...it installs Windows 2000 -- Alfred Perlstein on chat at freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Unable to umount
John Levine jo...@iecc.com wrote: [robert@dell64] ~ umount Flash umount: unmount of /home/robert/Flash failed: Device busy ... The problem is likely that HAL or one of its friends helpfully has the device open just in case you might want to ask questions about it. I that case, shouldn't lsof(8) have reported something? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Unable to umount
On Sat, 12 Mar 2011, Robert wrote: On 12 Mar 2011 17:29:59 - John Levine jo...@iecc.com wrote: [robert@dell64] ~ umount Flash umount: unmount of /home/robert/Flash failed: Device busy Try umount -f The problem is likely that HAL or one of its friends helpfully has the device open just in case you might want to ask questions about it. That works! I did not have to do that before the recent updates to XFCE4 and Xorg but as long as I can umount, I'm happy. Saw the same thing here, also with xfce. lsof reports nothing open on either the mountpoint or the device. fstat blames gam_server: % fstat /home/wblock/Desktop/removable-storage/ USER CMD PID FD MOUNT INUM MODE SZ|DV R/W NAME wblock gam_server 1409 776 /usr/home/wblock/Desktop/removable-storage 244864 drwx--4096 r /home/wblock/Desktop/removable-storage/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Unable to umount
... The problem is likely that HAL or one of its friends helpfully has the device open just in case you might want to ask questions about it. I that case, shouldn't lsof(8) have reported something? Yes. It always did for me. Regards, John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies, Please consider the environment before reading this e-mail. http://jl.ly ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Unable to umount
Warren Block wbl...@wonkity.com wrote: lsof reports nothing open on either the mountpoint or the device. fstat blames gam_server: % fstat /home/wblock/Desktop/removable-storage/ USER CMD PID FD MOUNT INUM MODE SZ|DV R/W NAME wblock gam_server 1409 776 /usr/home/wblock/Desktop/removable-storage 244864 drwx--4096 r /home/wblock/Desktop/removable-storage/ Does this show a bug in lsof(8), or an intentional difference between it and fstat? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Unable to umount Cdrom drive.
Hi, I have FreeBSD 4.10 installed. When I mount the cdrom with #mount -t cd9660 /dev/acd0c /cdrom everything works fine.I can get to my ports and everything But when I want to swap cds and I type #umount /cdrom I get this error message:: Unable to umount /cdrom, Device is busy. If I do the umont from KDE I get the same error message. What I'm doing wrong?? Thank you for all the help. Laszlo --lantal ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Unable to umount Cdrom drive.
On Wed, Oct 13, 2004 at 11:22:12AM -0700, Laszlo Antal wrote: When I mount the cdrom with #mount -t cd9660 /dev/acd0c /cdrom Verb. Sap. Make that: # mount -t cd9660 -o ro /dev/acd0c /cdrom For best results, set up all of the options etc. in /etc/fstab, and then just use: # mount /cdrom everything works fine.I can get to my ports and everything But when I want to swap cds and I type #umount /cdrom I get this error message:: Unable to umount /cdrom, Device is busy. If I do the umont from KDE I get the same error message. What I'm doing wrong?? You've either got a process with it's current working directory somewhere under /cdrom, or you've got a process with an open file descriptor (or a memory map) on one of the files on the CD. Try using: # fstat -f /cdrom to see if you can identify the culprits. Then either close them down, or CD to elsewhere in the filesystem if it's an interactive session. Once the CD Rom is idle, you should be able to dismount it easily. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgpsvtzvV21BD.pgp Description: PGP signature
Re: Unable to umount Cdrom drive.
On Oct 13, 2004, at 1:29 PM, Matthew Seaman wrote: On Wed, Oct 13, 2004 at 11:22:12AM -0700, Laszlo Antal wrote: When I mount the cdrom with #mount -t cd9660 /dev/acd0c /cdrom Verb. Sap. Make that: # mount -t cd9660 -o ro /dev/acd0c /cdrom For best results, set up all of the options etc. in /etc/fstab, and then just use: # mount /cdrom everything works fine.I can get to my ports and everything But when I want to swap cds and I type #umount /cdrom I get this error message:: Unable to umount /cdrom, Device is busy. If I do the umont from KDE I get the same error message. What I'm doing wrong?? You've either got a process with it's current working directory somewhere under /cdrom, or you've got a process with an open file descriptor (or a memory map) on one of the files on the CD. Try using: # fstat -f /cdrom to see if you can identify the culprits. Then either close them down, or CD to elsewhere in the filesystem if it's an interactive session. Once the CD Rom is idle, you should be able to dismount it easily. To elaborate on what Matthew was saying, if you cd /cdrom once it's mounted, and you try to unmount, you're going to get an error. I always make certain to cd back home and the unmount the CD. You can't unmount a device that you're currently 'on.' HTH - Eric F Crist Secure Computing Networks PGP.sig Description: This is a digitally signed message part
Re: Unable to umount Cdrom drive.
At 13:22 10/13/2004, Laszlo Antal wrote: Hi, I have FreeBSD 4.10 installed. When I mount the cdrom with #mount -t cd9660 /dev/acd0c /cdrom everything works fine.I can get to my ports and everything But when I want to swap cds and I type #umount /cdrom I get this error message:: Unable to umount /cdrom, Device is busy. If I do the umont from KDE I get the same error message. What I'm doing wrong?? Thank you for all the help. Laszlo This can happen if your present working directory is /cdrom Just switch directories: cd / Start Here to Find It Fast! - http://www.US-Webmasters.com/best-start-page/ $8.77 Domain Names - http://domains.us-webmasters.com/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Unable to umount Cdrom drive.
On Wed, 13 Oct 2004 11:22:12 -0700, Laszlo Antal [EMAIL PROTECTED] wrote: Hi, I have FreeBSD 4.10 installed. When I mount the cdrom with #mount -t cd9660 /dev/acd0c /cdrom everything works fine.I can get to my ports and everything But when I want to swap cds and I type #umount /cdrom I get this error message:: Unable to umount /cdrom, Device is busy. If I do the umont from KDE I get the same error message. What I'm doing wrong?? Thank you for all the help. Laszlo Try # umount /dev/acd0c HTH -- Terry ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Unable to umount Cdrom drive.
Mike Jeays wrote: On Wed, 2004-10-13 at 14:22, Laszlo Antal wrote: Hi, I have FreeBSD 4.10 installed. When I mount the cdrom with #mount -t cd9660 /dev/acd0c /cdrom everything works fine.I can get to my ports and everything But when I want to swap cds and I type #umount /cdrom I get this error message:: Unable to umount /cdrom, Device is busy. If I do the umont from KDE I get the same error message. What I'm doing wrong?? Thank you for all the help. Laszlo --lantal ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I use a script eject, as follows. It CDs back to my home directory, and then ejects the CD. Lazy but effective. #!/bin/sh cd $HOME umount /cdrom cdcontrol -f /dev/acd0c eject ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Most of the time this message pops up because either you are in the /cdrom (mounted) directory or a file form that directory is still in use. The 'eject' script is a pretty good idea. -Randy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]