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 Wed 27 Jul 2016, 13:32
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Stop your Hd from spinning when running Puppy from Usb
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
backi

Joined: 27 Feb 2011
Posts: 625
Location: GERMANY

PostPosted: Sat 09 Jul 2016, 08:04    Post subject:  Stop your Hd from spinning when running Puppy from Usb  

How to stop your Hardisk from spinning when running Puppy from Usb-Stick in frugal mode when not in use.

One day i found it quite annoying when using Puppy from a Usb-Stick in frugal mode that hardisk on my machine keeps spinning without any purpose.

So i found something that could be useful for everyone .

It is just a little script ....first :
install hdparm (if not already installed )
Make a script ----

#!/bin/bash
hdparm -y /dev/sdx

So sdX is your Hardrive .

make it executable
.....and click on it ...your Hardisk will stop spinning .
In case you get access to your Harddrive again after using it ....click again.
You can put this script into your Startup folder ..so it will prevent your Harddisk from spinning after bootup ....while not in use.
Probably saves your Accus some power .

Last edited by backi on Sun 10 Jul 2016, 01:43; edited 4 times in total
Back to top
View user's profile Send private message 
april


Joined: 14 Sep 2013
Posts: 612
Location: Port Hacking

PostPosted: Sun 10 Jul 2016, 00:55    Post subject:  

where did you install hdparm from then ?
Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 625
Location: GERMANY

PostPosted: Sun 10 Jul 2016, 01:10    Post subject:  

Hi april !
Do :
#!/bin/bash
hdparm -y /dev/sdX

sd X is your Harddrive

Maybe have a look in Puppy Packetmanager......or....
https://packages.debian.org/search?keywords=hdparm

Also have a look here :
http://www.debianadmin.com/tune-your-hard-disk-for-high-performance-using-hdparm.html
https://unix.stackexchange.com/questions/165234/how-do-i-immediately-put-a-drive-to-sleep-without-changing-its-power-setting-co

http://distro.ibiblio.org/puppylinux/pet_packages-3/

http://www.smokey01.com/coolpup/
Back to top
View user's profile Send private message 
Atle

Joined: 19 Nov 2008
Posts: 588
Location: Oslo, Norway

PostPosted: Sun 10 Jul 2016, 11:22    Post subject:  

This is interesting, as many would possibly like to launch spinnoff or whatever, where the non competent user can know for sure their Puppy Live WILL NOT even attempt to spinn the HD for even a second, giving them assurance against any interference with their paid and sometimes precious Windows installation.

I would not mind to have that as a concept as many are afraid of Linux messing up their Windows.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
backi

Joined: 27 Feb 2011
Posts: 625
Location: GERMANY

PostPosted: Sun 10 Jul 2016, 14:12    Post subject:  

Hi !
In case you mount your HardDisk for getting acces to it it will spin again .
But just click this little script it will stop spinning immediately .
Back to top
View user's profile Send private message 
april


Joined: 14 Sep 2013
Posts: 612
Location: Port Hacking

PostPosted: Sun 10 Jul 2016, 18:28    Post subject:  

Interesting . Seems it is in Puppy precise 5.7.1 already /sbin/hdparm
Code:
# hdparm -y /dev/sda

/dev/sda:
 issuing standby command
# hdparm -y /dev/sr0

/dev/sr0:
 issuing standby command

Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 3951
Location: New Zealand

PostPosted: Wed 20 Jul 2016, 05:13    Post subject:  

backi wrote:
In case you mount your HardDisk for getting acces to it it will spin again .
But just click this little script it will stop spinning immediately .
There is also a way to shut the disk off "permanently" for the duration of the current powered session (ie: running pmount or other disk access will not be able to wake it up until after next reboot). However - please note this warning:
*** only use the following method for a disk that IS NOT USED AS YOUR BOOT DISK OR YOUR SAVEFILE DISK
EDIT : As Backi mentioned below - the disk can also be accessed if there is a "swap" partition on it and the system will try to spin it up again - so I need to also mention this addition to the warning above - Do not use this method below if your hard drive has a swap partition
(On my usb puppies I create a swap partition on the usb stick)

See this post:
http://www.murga-linux.com/puppy/viewtopic.php?p=549606#549606

It works great on my machine as a power saver.

***********************

EDIT:
I just want to tie together several common threads detailing disk spindown:

http://www.murga-linux.com/puppy/viewtopic.php?p=549606#549606

http://www.murga-linux.com/puppy/viewtopic.php?p=770641#770641

http://murga-linux.com/puppy/viewtopic.php?p=652135#652135

http://murga-linux.com/puppy/viewtopic.php?t=107442

Last edited by greengeek on Wed 20 Jul 2016, 16:17; edited 1 time in total
Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 625
Location: GERMANY

PostPosted: Wed 20 Jul 2016, 07:02    Post subject:  

Hi greengeek !

Quote:
I just want to tie together several common threads detailing disk spindown:

This would be quite a good idea .
I have forgotten to mention ....if your ram is going low
and starts swapping , Hard-drive is also spinning again .

Greetings !!
Back to top
View user's profile Send private message 
Atle

Joined: 19 Nov 2008
Posts: 588
Location: Oslo, Norway

PostPosted: Wed 20 Jul 2016, 10:56    Post subject:  

This ram is low thing and the swapping can only happen if there is a swap partition on the drive.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
greengeek

Joined: 20 Jul 2010
Posts: 3951
Location: New Zealand

PostPosted: Wed 20 Jul 2016, 16:19    Post subject:  

backi wrote:
I have forgotten to mention ....if your ram is going low
and starts swapping , Hard-drive is also spinning again .
Very good point. I have now edited my post above to include that warning. Not a good idea to permanently spin down the drive if there is a swap partition on it.
Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 625
Location: GERMANY

PostPosted: Thu 21 Jul 2016, 01:53    Post subject:  

How to disable Ram
swapoff /dev/sdXy
.....where X is your drive... y is partition number .

Enable Ram again:

swapon /dev/sdXy
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0536s ][ Queries: 11 (0.0029s) ][ GZIP on ]