I use the generic kernel of FreeBSD 13.1-RELEASE-p2. I set up the USB storage device automounting according to section 19.4. of the FreeBSD handbook. Until recently, everything worked normally. However, I now face the following problem.
When I plug in a USB device, a folder /media/da0 is created (as it should). This folder is empty, even though the USB device contains data. When I try to unmount the folder (as root) with
Independently of letting the USB device plugged in or plug it out, the folder acts like an ordinary folder on the system drive and not like a mount point. That means, I can copy/ move content to the folder, which then takes space on the system drive (hard drive). The folder can be deleted with
My question is if there is a way to "re-assign" /media/da0 as a valid mount point, i.e., recover the usual behavior.
When I plug in a USB device, a folder /media/da0 is created (as it should). This folder is empty, even though the USB device contains data. When I try to unmount the folder (as root) with
# umount /media/da0
, the following error occurs:
Code:
umount: /media/da0: not a file system root directory
# rm -rf /media/da0
, which frees up the space on the hard drive. When the USB drive is again plugged in, the folder /media/da0 is created again with the described behavior.My question is if there is a way to "re-assign" /media/da0 as a valid mount point, i.e., recover the usual behavior.