Solved how to correctly plug out my usb disk from freebsd14.1 ?

Dear all :
i have insert usb disk to my freebsd14.1 . when i finish work, umount this disk from freebsd14.1 . then how to correctly plug out my usb disk ? thanks.
 
I do eject my flash drives after unmounting by running # camcontrol eject da0. I also run sync multiple times after any file copy operation to be sure all the data is copied successfully.
 
How about a USB power off command for leetness. ( After unmounting of course )

usbconfig -u 1 -a 2 power_off

This example from the usbconfig(8) handbook.
You will need to adjust the Unit Number and Address to suit.
usbconfig will show a listing of all usb devices.
You can also power_off using the u.gen designator.
usbconfig -d ugen1.4 power_off
1 being the Unit Number and 4 being the address.
 
Back
Top