WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: usb hard drive unmount  (Read 2252 times)

Offline steptoesyard

  • Newbie
  • *
  • Posts: 8
usb hard drive unmount
« on: June 08, 2015, 08: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

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: usb hard drive unmount
« Reply #1 on: June 08, 2015, 08: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.

Offline steptoesyard

  • Newbie
  • *
  • Posts: 8
Re: usb hard drive unmount
« Reply #2 on: June 09, 2015, 02: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!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: usb hard drive unmount
« Reply #3 on: June 09, 2015, 03: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?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: usb hard drive unmount
« Reply #4 on: June 09, 2015, 12:05:31 PM »
Laptop-mode-tools would only affect the internal hd.
The only barriers that can stop you are the ones you create yourself.