Page 1 of 1

USB drive prevents shutdown, with solution

Posted: 17 Dec 2013 11:24
by carloskar
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:

Code: Select all

...
usbus3: Controller shutdown
uhub3: at usbus3, port 1, addr 1 (disconnected)
usbus3: Controller shutdown complete
usbus4: Controller shutdown
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.

Re: USB drive prevents shutdown, with solution

Posted: 17 Dec 2013 12:35
by chrisf4lc0n
Great find...
I had the same problem with my USB backup HDD, but now it should be sorted.
I did not look for the solution as I thought the drive itself was faulty :(

EDIT: No it is not :( Now I have a different error, there need to be something wrong with the disk, but it seems to be OK when formatted to NTFS and ran under Windows...

Re: USB drive prevents shutdown, with solution

Posted: 17 Dec 2013 14:50
by raulfg3
hw.usb.no_shutdown_wait=1 to sysctl.conf do not work for you?