USB drive prevents shutdown, with solution
Posted: 17 Dec 2013 11:24
Hi
The other day I added a USB drive (WD Elements) to be used as an external backup disk. But when doing so my NAS would not shutdown properly, the shutdown process stopped when shutting down the USB bus that the external harddrive was connected to and I had to do a 4-sec power button shutdown. This is the output during the shutdown process:
I found this thread at forums.freebsd.org that exactly described my problem, and there also was a suggestion for how to solve the problem.
Just add hw.usb.no_shutdown_wait=1 to sysctl.conf and the shutdown will work again.
One problem with this solution might be if a write occurs just before shutting down then it could potentially be lost. I don't think this is a problem for me at least since after the backup is done the NAS is up for at least two hours so any write should have plenty of time to finish.
The other day I added a USB drive (WD Elements) to be used as an external backup disk. But when doing so my NAS would not shutdown properly, the shutdown process stopped when shutting down the USB bus that the external harddrive was connected to and I had to do a 4-sec power button shutdown. This is the output during the shutdown process:
Code: Select all
...
usbus3: Controller shutdown
uhub3: at usbus3, port 1, addr 1 (disconnected)
usbus3: Controller shutdown complete
usbus4: Controller shutdownJust add hw.usb.no_shutdown_wait=1 to sysctl.conf and the shutdown will work again.
One problem with this solution might be if a write occurs just before shutting down then it could potentially be lost. I don't think this is a problem for me at least since after the backup is done the NAS is up for at least two hours so any write should have plenty of time to finish.