Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 19 Dec 2014, 06:15
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Suspend hard drive on startup (Solved)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
ip71sr

Joined: 04 Jan 2012
Posts: 23

PostPosted: Sun 12 May 2013, 14:54    Post subject:  Suspend hard drive on startup (Solved)  

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?
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3982
Location: Kiel,Germany

PostPosted: Mon 13 May 2013, 08:41    Post subject:  

look into /etc/rc.d/rc.sysinit for rc.local, hdparm and Swap !
Back to top
View user's profile Send private message Visit poster's website 
ip71sr

Joined: 04 Jan 2012
Posts: 23

PostPosted: Mon 13 May 2013, 10:30    Post subject:  

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.
Back to top
View user's profile Send private message 
pemasu


Joined: 08 Jul 2009
Posts: 5465
Location: Finland

PostPosted: Mon 13 May 2013, 11:32    Post subject:  

Place your command inside the file /etc/rc.d/rc.local
Back to top
View user's profile Send private message 
ip71sr

Joined: 04 Jan 2012
Posts: 23

PostPosted: Mon 13 May 2013, 12:51    Post subject:  

I have done so. The HDD will be suspended but immediately it started again.
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11180
Location: Arizona USA

PostPosted: Mon 13 May 2013, 13:49    Post subject:  

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.
Back to top
View user's profile Send private message 
ip71sr

Joined: 04 Jan 2012
Posts: 23

PostPosted: Mon 13 May 2013, 14:06    Post subject:  

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.
Back to top
View user's profile Send private message 
pemasu


Joined: 08 Jul 2009
Posts: 5465
Location: Finland

PostPosted: Mon 13 May 2013, 14:17    Post subject:  

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:
#!/bin/sh
hdparm -Y /dev/sda
Back to top
View user's profile Send private message 
ip71sr

Joined: 04 Jan 2012
Posts: 23

PostPosted: Mon 13 May 2013, 15:30    Post subject:  

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

Thank you!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0551s ][ Queries: 12 (0.0084s) ][ GZIP on ]