Tiny Core Linux

Tiny Core Base => CorePlus => Topic started by: steptoesyard on June 08, 2015, 11:17:39 AM

Title: usb hard drive unmount
Post by: steptoesyard on June 08, 2015, 11:17:39 AM
Hi, hope this is in the right place. I've installed tiny core on a couple of boxes now and its great on some of the older stuff that i have.
I recently installed it on a wyse thin client, and have installed samba so that i can share some music and video files across my home network to my openelec boxes. I am currently sharing a couple of usb drives with music on, but am looking to upgrade the storage.

If i was to share a 1tb hard disk that is in a usb enclosure would this be safely unmounted on poweroff, or is there some way of modifying the shutdown command to make this happen?
I am hoping to use xbindkeys to set the power button to safely shut down the unit.

Also, is there any way of enabling spindown of the drive when not in use?

Any help/suggestions appreciated!

Thanks
Title: Re: usb hard drive unmount
Post by: gerald_clark on June 08, 2015, 11:30:13 AM
Use acpid to configure the power button.
Shutdown unmounts all drives.
Spindown depends on the USB drive, but mounted drives sync periodically, and may not spin down.
Title: Re: usb hard drive unmount
Post by: steptoesyard on June 09, 2015, 05:32:34 AM
thanks for reply. I had previously tried acpid but couldnt get it to work successfully, but will persevere with it. I have found a couple of posts that should help me on my way!
Title: Re: usb hard drive unmount
Post by: Juanito on June 09, 2015, 06:20:11 AM
I seem to recall that the laptop-mode-tools extension config file allowed you to set a hd to be spun down?
Title: Re: usb hard drive unmount
Post by: curaga on June 09, 2015, 03:05:31 PM
Laptop-mode-tools would only affect the internal hd.