i’m not an expert so i probably write stupid things…
my post is two-fold
- part 1 explains my “project of having a volumio running 24/7 safely”
- part 2 is my questions to adress successfully part 1
my config = rpi b and volumio 2 version 1.001 ,i will try with my rpi 3 too
part 1 : volumio running 24/7 safely
i know there is a topic about the question of running volumio 24/7
it was mainly related about the size of logs ; https://volumio.org/forum/raspberry-and-volumio-left-t3097.html
in order to answer to the question “what should i do to have volumio running safely everyday”
i would list several topics i want to address
1/ some UPS solution that prevent volumio from being powered off and therefore damage SD card
for this, i found out some interesting informations
the idea is pretty simple. you need
a- a battery that can charge and be plugged to 220V in the mean time, and switch instantly if there is a power outage. the reference of the battery is indicated into this web page listed above
b- a cron job that verify regurlarly if you’re online, because if there isnt any power for the raspberry, probably no more power for your intnernet access
2/ some maintenance tricks or setup that prevent my USB disk to run 24/7 when not used
i would have 2 needs
a- spin down the disk when not in use after X minutes : using hdparm (used it on rpi 1b with volumio 1,5, ok) , or may be hd-idle or sdparm (not sure)
b- monitor the health of the disk with smartmontools, specially because i do not want my usb music collection to crash
3/ some way to minimize the SD card access, in “write mode”
that’s the point of removing as much “log writing as possible”
4/ may be a way to boot on sd card and then to run volumio from a usb disk or usb key, to even minimize the SD card usage
i have understood it is possible, but i dont know how to apply it with volumio ?
may be do a root-fs image of volumio and then use berryboot, but i’m not sure i’m not mixing information ??
part 2 : my questions
my priority is to spin down my hard disk
i tried to follow the procedure described here
and typed the command :
sudo apt-get install hdparm -y"
i had an error
[code]"Reading package lists… Done
Building dependency tree
Reading state information… Done
Package hdparm is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ‘hdparm’ has no installation candidate"[/code]
when i tried to fix this errog according to this source
but it did not work
Question 1: is there any reason why we could not install this package on volumio 2 ?
Question 2 : googling “volumio hdparm”, i found some information on github and i was wondering if hdparm was installed in volumio 2
but i could not find any hdparm.conf file in /etc
question 3 : any way to configure volumio to run from a usb device (stick or partition in my usb disk) ? can we follow the procedure described below and if yes how ? or anything better ?
question 4 : any other topics i would have forgot to make a 24/7 configuration more robust and stable ? any feedback from existing configurations that runs 24/7 ?
thanks for any feedback, posts or reply