I'm having a problem with my computer running Ubuntu server 12.04, I have an external USB HDD plugged in for samba file sharing but after a few hours not using samba the USB HDD goes to sleep. When I try to use my samba share again I en up with an Input-Output error. How could I prevent the HDD from going into sleep (always spinning)?

PS: I mount my HDD to a folder in /media/ at every boot using fstab

Any help would be appreciated.


hdparm -B255 /dev/sdX will help as this disables the spindown.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.