Re: [PLUG] Indecipherable rsync error message SOLVED
Try hdparam to control sleep time. Here is Ubuntu link: https://askubuntu.com/questions/39760/how-can-i-control-hdd-spin-down-t ime If that does not work, and you cannot change your DAS settings, you might need to look at powertop to check if your USB is not going to sleep. Synology NAS have settings to set disk sleep timer. It is a great way to prolong disk life and reduce heat and noise. By default it is off. Tomas On Sat, 2018-09-29 at 16:16 -0700, John Jason Jordan wrote: > On Sat, 29 Sep 2018 14:28:43 -0700 > Tomas K dijo: > > > It appears that you either did not have the directory mounted or it > > was > > in power saving mode (disks spun down, etc.) > > The Movies USB device is always mounted, but yes, it seems to go into > sleep mode all the time. Any disk activity brings it out of sleep > mode, > although it can take a full minute before it is available. The > Synology > is NAS, and it doesn't appear to suffer from being in sleep mode. > > Why couldn't I just make a little bash script: > > cd .. > cd /media/jjj/Movies > > > That seems simpler, simple enough that even I understand it. :) > > Having said that I suffer from this drive having to refresh itself > all > the time. I mean, dozens of times a day I sit here twiddling my > thumbs > while I wait and listen to the discs rumble and watch the lights > blink. I use this disk all day long, yet it seems to go into sleep > mode > after five minutes of inactivity. > ___ > PLUG mailing list > PLUG@pdxlinux.org > http://lists.pdxlinux.org/mailman/listinfo/plug ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Indecipherable rsync error message SOLVED
On Sat, 29 Sep 2018 14:28:43 -0700 Tomas K dijo: >It appears that you either did not have the directory mounted or it was >in power saving mode (disks spun down, etc.) The Movies USB device is always mounted, but yes, it seems to go into sleep mode all the time. Any disk activity brings it out of sleep mode, although it can take a full minute before it is available. The Synology is NAS, and it doesn't appear to suffer from being in sleep mode. Why couldn't I just make a little bash script: cd .. cd /media/jjj/Movies That seems simpler, simple enough that even I understand it. :) Having said that I suffer from this drive having to refresh itself all the time. I mean, dozens of times a day I sit here twiddling my thumbs while I wait and listen to the discs rumble and watch the lights blink. I use this disk all day long, yet it seems to go into sleep mode after five minutes of inactivity. ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Indecipherable rsync error message SOLVED
It appears that you either did not have the directory mounted or it was in power saving mode (disks spun down, etc.) I would recommend that you to either manually make sure that the source and destinations are both available or setup some wait loop in your script to allow and trigger mounting. Ages ago, I wrote/used this simple bash function which waits for disk to spin up and become available on the file system. function waitForDir () { # waits for directory to not be empty local maxWait=30 local c=0 if (( $# != 1 )); then >&2 echo "ERROR: Please give directory as cmd argument." exit 0 fi while (( $(ls $1 | wc -l) == 0 )); do if (( $c > $maxWait )); then >&2 echo "ERROR: Directory $1 missing content after $maxWait seconds" exit 0 else c=$(( $c + 1 )) fi sleep 1 done } Then I used it this way: waitForDir /media/jjj/Movies Note: that it needs some content to be in the directory. Best regards, Tomas On Sat, 2018-09-29 at 11:01 -0700, John Jason Jordan wrote: > On Fri, 28 Sep 2018 22:39:53 -0700 > John Jason Jordan dijo: > > Problem solved: > > cd .. > cd /media/jjj/Movies > > Now the rsync command works as expected, as do other commands. > ___ > PLUG mailing list > PLUG@pdxlinux.org > http://lists.pdxlinux.org/mailman/listinfo/plug ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Indecipherable rsync error message SOLVED
On Fri, 28 Sep 2018 22:39:53 -0700 John Jason Jordan dijo: Problem solved: cd .. cd /media/jjj/Movies Now the rsync command works as expected, as do other commands. ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug