Suspend hard drive on startup (Solved)

Using applications, configuring, problems
Post Reply
Message
Author
ip71sr
Posts: 23
Joined: Wed 04 Jan 2012, 21:23

Suspend hard drive on startup (Solved)

#1 Post by ip71sr »

I'm using Puppy Precise on USB drive. So I usually turn off the HDD with "hdparm -Y /dev/sda" (hotplug modul/firmware loading in Puppy Event Manager is disabled).
How to turn off the HDD on startup?

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#2 Post by Karl Godt »

look into /etc/rc.d/rc.sysinit for rc.local, hdparm and Swap !

ip71sr
Posts: 23
Joined: Wed 04 Jan 2012, 21:23

#3 Post by ip71sr »

Thank you, I need some advice more what to change.
Or maybe to put a file in the startup folder, but I don't know what to write in this file.

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#4 Post by pemasu »

Place your command inside the file /etc/rc.d/rc.local

ip71sr
Posts: 23
Joined: Wed 04 Jan 2012, 21:23

#5 Post by ip71sr »

I have done so. The HDD will be suspended but immediately it started again.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#6 Post by Flash »

Do you have swap memory on that hard disk drive? If so, maybe that's why it's starting again. If you have at least 512 MB of RAM, Puppy will probably never need swap memory unless you're doing something that requires a lot of memory such as editing images or viewing videos.

If you need swap memory, you can put it on the USB flash drive.

ip71sr
Posts: 23
Joined: Wed 04 Jan 2012, 21:23

#7 Post by ip71sr »

I have a swap partition on the usb drive. No problem, I know in which way the swap is needed.
When I normally turn off the HDD it will not start again because some settings in the Puppy Event Manager are disabled.

Would you like tell me how to write an executable file with the command "hdparm -Y /dev/sda"? than I will place it in the startup folder.

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#8 Post by pemasu »

Go to the /root/Startup
Right click there > New > Script > rename it to your liking.
Open that script. Write your command to the row after: #!/bin/sh

Content will be:

Code: Select all

#!/bin/sh
hdparm -Y /dev/sda

ip71sr
Posts: 23
Joined: Wed 04 Jan 2012, 21:23

#9 Post by ip71sr »

It is really a pleasure running an OS without the noise of the HDD.

Thank you!

Post Reply