Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jul 2020 15:16:33 -0500
From:      Valeri Galtsev <galtsev@kicp.uchicago.edu>
To:        freebsd-questions@freebsd.org
Subject:   Re: Unmounting usb disk impossible
Message-ID:  <7e96086e-c765-469c-f200-f1ca94b0296a@kicp.uchicago.edu>
In-Reply-To: <CAOgwaMt1kCe4RfBMM=EcWjpTMeFkjk028=bJJYF-Qsdty2k4nw@mail.gmail.com>
References:  <slrnrhglh3.l6v.listmail@smtp.simply.com> <CAOgwaMt1kCe4RfBMM=EcWjpTMeFkjk028=bJJYF-Qsdty2k4nw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On 7/22/20 12:44 PM, Mehmet Erol Sanliturk wrote:
> On Wed, Jul 22, 2020 at 6:12 PM Morten Bo Johansen via freebsd-questions <
> freebsd-questions@freebsd.org> wrote:
> 
>> Hi
>>
>> I simply cannot unmount my usb disk. It is mounted by automount/autofs
>> on /media/da0s1. I try to unmount it like this
>>
>>    sudo umount -At autofs
>>
>> but it replies with the error message
>>
>>    umount: unmount of /media failed: Device busy
>>
>> I run lsof grepping for "/media" or "da0s1" both with and
>> without sudo. Nothing shows.
>>

Did you try

lsof -k /media/[whatever name it is mounted with]

and then try to force unmount

umount -f /media/[whatever name it is mounted with]

?

Valeri

>> I got no terminals accessing the mount point, no zombie
>> processes or anything.
>>
>> If the error message is really correct and some process is
>> actually accessing /media, how do I find it if lsof shows nothing?
>>
>> Any other advice?
>>
>> Thanks,
>> Morten
>>
>>
>>
>> _______________________________________________
>>
>>
> 
> You did not write your mount statement .
> 
> 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" .
> 
> Please check manual of "umount" to write specific file(s) to unmount .
> 
> Mehmet Erol Sanliturk
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 

-- 
++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7e96086e-c765-469c-f200-f1ca94b0296a>