Date: Wed, 22 Jul 2020 20:59:17 +0200 From: Polytropon <freebsd@edvax.de> To: mbj@mbjnet.dk Cc: Morten Bo Johansen via freebsd-questions <freebsd-questions@freebsd.org>, Morten Bo Johansen <listmail@mbjnet.dk> Subject: Re: Unmounting usb disk impossible Message-ID: <20200722205917.7e81b5bc.freebsd@edvax.de> In-Reply-To: <slrnrhgvhv.mus.listmail@smtp.simply.com> References: <slrnrhglh3.l6v.listmail@smtp.simply.com> <CAOgwaMt1kCe4RfBMM=EcWjpTMeFkjk028=bJJYF-Qsdty2k4nw@mail.gmail.com> <slrnrhgvhv.mus.listmail@smtp.simply.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 22 Jul 2020 19:58:22 +0200, Morten Bo Johansen via freebsd-questions wrote: > On 2020-07-22 Mehmet Erol Sanliturk wrote: > > > You did not write your mount statement . > > I don't know what it is. It is automounted > > > It seems that your umount statement is completely wrong . > > > https://www.freebsd.org/cgi/man.cgi?query=umount&sektion=8 > > umount > > > > You are saying that > > > > "Unmount ALL of the mounted files in "fstab" . > > No, that is not what I am saying. This is from man autofs: > > To unmount all mounted autofs filesystems: > > umount -At autofs > > That was my command. And as you can see, it actually tries to > unmount the usb disk under /media - which is correct. It just > fails with this "device busy" error. I need to find out which > process is accessing the mount point. This command interpretation is similarly listed in "man 1 umount", i. e., "umount -a -t <type>". However, have you checked that the filesystems beneath /media, mounted by automountd, are listed in /etc/fstab? This is a required condition according to the manual page. In worst case, try to add the -f (force) option to umount. You should then verify, at least for testing, that the filesystems in question are consistent (use fsck accordingly). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200722205917.7e81b5bc.freebsd>