I have mounted a win98 machine from a ML8.1 samba 2.2.2 The win98 machine, as all windows machines do, crashed on me. Now i can't unmount the mounted folder, If i do it from cli, i get umount usr/Cad12: device busy. If i try and cd to that folder, the console freezes and only kill application will shut it down. I tried as su and on another Virtual console as root, but it will not umount. I've shut down the win98 machine and powered it up again. But it still will not umount. Also how do i kill a virtual console which is not responding. Many thanks Ken
>I have mounted a win98 machine from a ML8.1 samba 2.2.2 >The win98 machine, as all windows machines do, crashed on me. >Now i can't unmount the mounted folder, If i do it from cli, i get >umount usr/Cad12: device busy.Try #lsof /usr/Cad12 to find which process to kill. When you try to unmount a filesystem and are denied with a Filesystem Busy message, use lsof to determine what process is holding onto the mountpoint. For example: # /usr/sbin/lsof /mnt/cdrom In this case, /mnt/cdrom is the mountpoint in question, and lsof will tell you if any processes have opened any files on that particular filesystem. hth, Patrick
Did you try "fuser -km /<mount>" to kill all processes accessing it then umount device? Patrick Ken Walker wrote:>I have mounted a win98 machine from a ML8.1 samba 2.2.2 > >The win98 machine, as all windows machines do, crashed on me. > >Now i can't unmount the mounted folder, If i do it from cli, i get > >umount usr/Cad12: device busy. > >If i try and cd to that folder, the console freezes and only kill >application will shut it down. > >I tried as su and on another Virtual console as root, but it will not >umount. I've shut down the win98 machine and powered it up again. But it >still will not umount. > >Also how do i kill a virtual console which is not responding. > > >Many thanks > >Ken > >
Hi, Would it be appropriate to do a killall {smbd,nmbd} ? Seems like its down to drastic measurs. Bri- __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1> Date: Fri, 21 Feb 2003 12:38:54 -0000 > From: Ken Walker <ken.walker@textiles.umist.ac.uk> > To: "'samba@samba.org'" <samba@samba.org> > Subject: [Samba] how do i umount a device busy ? > Message-ID: <60F5F1E2B94AD4119F0B00B0D0215FFF0103C211@bsc.tt.umist.ac.uk> > Content-Type: text/plain; > charset="iso-8859-1" > MIME-Version: 1.0 > Precedence: list > Message: 5 > > I have mounted a win98 machine from a ML8.1 samba 2.2.2 > > The win98 machine, as all windows machines do, crashed on me. > > Now i can't unmount the mounted folder, If i do it from cli, i get > > umount usr/Cad12: device busy. > > If i try and cd to that folder, the console freezes and only kill > application will shut it down. >We have applied a patch to solve this issue, so that you will still be able to unmount the share. This has gone into samba-2.2 cvs, but you can use these RPMs: http://ranger.dnsalias.com/mandrake/mandrake8.1/samba-2.2.7a/ IIRC this patch was used on for Mandrake 9.0, and is definitely in for 9.1. BTW, I search the digests daily for mandrake, I almost missed your post since you used ML8.1 ... Regards, Buchan - -- |--------------Another happy Mandrake Club member--------------| Buchan Milne Mechanical Engineer, Network Manager Cellphone * Work +27 82 472 2231 * +27 21 8828820x121 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE+WfFsrJK6UGDSBKcRAhdsAKC55jccSly5tztN1pvAaU5T1VUrdACfVTZu cR2L52mWb8h/V883IiZZc0A=wKdA -----END PGP SIGNATURE-----
Maybe Matching Threads
- Problem running Win32 app under Wine
- Is k equivalent to k:k ?
- [PATCH V3 1/2] umount: add force umount and lazy umount
- [PATCH] daemon: umount-all: Give a "second chance" for temporary umount failures (RHBZ#1246032).
- [PATCH V4 1/3] umount: add force umount and lazy umount