Unmounting usb disk impossible
Valeri Galtsev
galtsev at kicp.uchicago.edu
Wed Jul 22 20:16:35 UTC 2020
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 at 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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
--
++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++
More information about the freebsd-questions
mailing list