Hi,
One unexpected thing: I thought that the wget would save the hdparm on the disk. However, after reboot, I could not directly use the hdparm command. I had to redownload it.
How does this happens ? Is there a way to make the existence of the hdparm command "resilient to reboot" ?
JMF
Results 11 to 20 of 20
-
2018-09-01, 00:19 #11
- Join Date
- Aug 2018
- Posts
- 19
-
2018-09-01, 01:11 #12
- Join Date
- Jan 2010
- Location
- Hertfordshire
- Posts
- 6,246
-
2018-09-01, 01:12 #13
hi JMF11,
Arh... you have discovered one of the main features of TinyCore/piCore. It is RAM based.
When you boot piCorePlayer, effectively a brand new Linux system is built from downloaded extensions stored on your SD card. This gives us a very reliable system, fast and it hardly uses the SD card after it is booted. This is great for static content.
For dynamic content, such as configuration files, the backup feature is used to store all the config files on the SD card and are restored after the system has rebooted. Your home directory and sub directories are part of the backup system.
So if you put the file in your home directory and do a backup it will be restored.
The simple way to do a backup is through the [Main Page] on web interface or if you have ssh in, $pcp bu
https://www.picoreplayer.org/how_to_..._via_ssh.shtml
https://www.picoreplayer.org/pcp_cli.shtml
BTW: Once a program gets added to an extension all this is invisible to the user.
regards
Greg
-
2018-09-01, 04:41 #14
- Join Date
- Aug 2018
- Posts
- 19
Thanks Greg,
Clear now :-)
JMF
-
2019-02-13, 02:36 #15
- Join Date
- Feb 2019
- Posts
- 1
script
Hello everyone.
I managed to let the HDD, a Seagate Expansion Portable 2TB, spindown with the hdpram commands entered via ssh. So far so good, unfortunately my linux skills are not good enough to write that "little script". So I just got errors as result. Is there anyone out there, who knows how to write it properly?
Best regards
Dirk
-
2019-08-16, 04:54 #16
- Join Date
- Sep 2018
- Location
- France
- Posts
- 73
Hello,
I reactivate this old subject ...
It's been a long time since I tried, unsuccessfully, to put my external hard drive (Western Digital My Passport Ultra 2TB) to sleep when I was not working on my Raspberry Pi with piCorePlayer. (The hdparm command does not work with my hard disk and the setting made with the Western Digital Windows utility is ignored when the disk is plugged into the Raspberry Pi.)
Today, little personal victory with hd-idle, tool that I could not install until now. I am not Linux expert!
In case other people are interested, this is how I proceeded:
- I downloaded a .deb at https://sourceforge.net/p/hd-idle/fe...1.05_armhf.deb
- In this .deb, I recovered with 7zip the binary hd-idle in \data.tar\.\usr\sbin\
- I copied hd-idle in /home/tc
- I executed the command: chmod 755 /home/tc/hd-idle
- I made a backup: pcp bu
- I added a user command in the piCorePlayer interface ("Tweaks" tab, "User commands" section) to have the hard drive go to sleep after 20 minutes of inactivity: /home/tc/hd-idle -i 0 -a sda -i 1200
It all seems to be working since last night. Hope this continues ...
More information here:
- https://sourceforge.net/projects/hd-idle/files/
- https://sourceforge.net/p/hd-idle/feature-requests/3/
- https://salsa.debian.org/debian/hd-idle
Maybe this is an opportunity for improvement for the future version of piCorePlayers with a dedicated section for hd-idle and/or hdparm?
-
2020-12-26, 11:36 #17
Thanks a lot Franck. I just followed your plan. And it works like a charm!!!
Life moves pretty fast. If you don't stop and look around once in a while, you could miss it. - Ferris Bueller
-
2020-12-30, 15:36 #18
- Join Date
- Sep 2018
- Location
- France
- Posts
- 73
-
2021-01-16, 14:15 #19
- Join Date
- Jan 2021
- Posts
- 2
Works! Thanks!
Thanks for these tips! I never would have thought to dig into the .deb file for the binary. That did the trick.
-
2021-01-16, 14:16 #20
- Join Date
- Jan 2021
- Posts
- 2
More info re: Franck
Additional info that might help people in the future here:
- If you can use hdparm instead, then you should. It's simpler.
- On piCore linux, ssh to your piCorePlayer and type tce. This means 'tiny core extension'. Search for hdparm and you can install it from there. There's one made specifically for piCore linux.
- See the htpcguides.com link (earlier in this thread) for more info on getting that rolling.
My HDD didn't support hdparm, so here was my hd-idle process.
- ssh into your piCorePlayer.
- you can download the .deb file directly to your pCP using wget. Just type wget [space] [URL to .deb file from Franck's post]
- .deb files are compressed using ar. Use: ar -xv hd-idle_1.05_armhf.deb
- You now have a .tar.xz file to be further decompressed using: xz -d data.tar.xz
- Finally, you have data.tar. Decompress this using: tar x -v -f data.tar
- Now you can copy the binary to your home directory: cp /home/tc/usr/sbin/hd-idle /home/tc/
- The rest of the steps below are the same. Don't forget the backup step, or none of this will persist on reboot.