M
M
mast7712017-08-29 09:31:20
linux
mast771, 2017-08-29 09:31:20

Why won't USB flash drive be unmounted in Linux?

Centos 6. I mount the flash drive:
mount /dev/sdb4 /mnt/usb
Everything is fine, I see the files, the mount command shows the mount point.
When unmounting, it swears that the device is busy, unmount it:
umount -l /mnt/usb
After that, the mount command shows that sdb4 is not mounted anywhere, but there are still files in the /mnt/usb directory, and they can be changed, and the changes are written to the USB flash drive. If you pull it out, everything will be saved.
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pcdesign, 2017-08-29
@pcdesign

lsof | grep '/mnt/usb'
Should show what's holding her there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question