Where to save hdparm settings?

Hi,
my HDD has a default value of hdparm -B 128 which results in landing and spinning drive's head every 5 seconds.
To not have this, i want to disable power managment by using hdparm -B 255. From man hdparm I read that file /etc/hdparm.conf is sourced. But here comes the problem:
This file is not installed with hdparm package.
After creating this file, it looks like hdparm ignores it.
cat /etc/hdparm.conf
command_line {
hdparm -B 255 /dev/sda
But i still see the default value in hdparm -I /dev/sda and HDD turns off every 5 seconds.
Can anyone help me please? Should I report a bug?
By the way I added hdparm -B 255 /dev/sda to /etc/rc.local, so it is executed when booting, but the default value is back after pm-suspend.

Add a hook. It should look like this
#!/bin/bash
case $1 in
hibernate)
echo "A hook to restore hdparm value on resume"
suspend)
echo "A hook to restore hdparm settings at resume."
thaw)
hdparm -B 255 /dev/sda
resume)
hdparm -B 255 /dev/sda
*) echo "somebody is calling me totally wrong."
esac

Similar Messages

  • "Always ask me where to save files" does not work.

    Summary: The "Always ask me where to save files" feature does not work. No dialog box comes up, apparently because the browser is stuck on a bad old read-only lastDir location, in a prefs.js file that I can't edit.
    Details:
    I am using Firefox 30.0 on Mac OS 10.6.8. My Mac has a both a read/write Mac partition that I use most of the time, and a bootcamp Windows partition drive ("C"), which I can read but not write to.
    At some point I accidentally tried to download a file from a site, using Firefox, to the read-only Windows C drive. Ever since that time, I have not been able to download any files from Firefox, except to the firefox/downloads folder. This is inconvenient. If, in preferences, I try to set downloads to ""Always ask me where to save files", the dialog box does not come up when I actually try to save files. This problem does not apply to saving photos by right-clicking them.
    If I open, in text-edit, mozilla/firefox/profiles/t4vockvue.default/prefs.js, which was saved yesterday, I can see a problematic line. It reads:
    user_pref("browser.download.lastDir", "C:\\Documents and Settings\\[etcetc]");
    C:\\Documents and Settings\\[etcetc] being the read-only windows directory.
    This prefs.js is apparently not an editable file.
    I tried to fix this by opening a browser tab in Firefox and opening about:config. The editable browser.download.lastDir does NOT show the same "lastDir"....it shows some directory that I successfully downloaded photos to, by right-clicking on a photo.
    How can I fix this problem?
    Thanks.

    To confirm which profile folder is active when you are running Firefox, it is easiest to open it from inside Firefox as follows:
    Sometimes the file that stores the customizations becomes corrupted and fails to update properly at the end of your session. You can rename the file and customize from scratch.
    * "3-bar" menu button > "?" button > Troubleshooting Information
    * (menu bar) Help > Troubleshooting Information
    In the first table on the page, click the "Show in Finder" button (Windows: "Show Folder" button).
    Hopefully you are using a separate profile folder on each OS.

  • I just want the option to "save as" when downloading a file so I can choose where to save it. Right now, I go back to my Internet Explorer to do this.

    I changed my setting to "always ask where to save files" and I went into my profile folder and deleted my preference folder.

    Did you check the download settings?
    *Tools > Options > General : Downloads : "Always ask me where to save every file"
    *https://support.mozilla.org/kb/Downloads+window

  • Watermark source file won't save in settings

    I have successfully created several watermark images that have source files (both in PDF format and JPG format). But there is one that I cannot get to save. I have tried the image in both JPG and PDF formats, but for whatever reason, when I try to save the settings, the source file is not saved and it just comes up as blank text when I select it for use. I have tried over and over again to save this watermark.
    As a result, whenever I want to apply this particular watermark, I have to go and browse for and find the file time and time again.
    ?? Any clue as to why this one won't save? Is there a maximum number of watermarks that can be saved?

    You can look at the place where the settings are saved.
    For Acrobat 8 and MS Vista the place is:
    X:\Users\{user}\AppData\Roaming\Adobe\Acrobat\8.0\Preferences\Watermark

  • I am unable to install itunes onto my pc. I am unable to find where it saves it or even if it has saved it. Can anyone help?

    I am unable to install itunes onto my pc. I am unable to find where it saves it or even if it has saved it. Can anyone help?

    itunes 11 has a specific spec that needs to be met before you can install it. Please verify from this if your pc pass the requirement from this link
    iTunes 11 for Windows - Technical Specifications
    Unless otherwise specified, in C:\Documents and Settings\User\Local Settings\Temp. However, if you want to know for sure for your system, download something (if you haven't already) and do a search for that specific dwnld. Then, drill down to the containing folder.

  • I rendered a project as an mp4, but it never prompted me where to save it and after it rendered I co

    I rendered a project as a mp4 and it never prompted me where to save it and after it was rendered I couldn' find it anywhere.  Where did
    the mp4 go????

    When you use the AE Render Queue (Add To Render Queue or Make Movie commands), there are two different components that appear in the queue: Render Settings and Output Module.  The Output Module determines the media container & codec of the rendered file, and also sepecifies the destination folder for the rendered file.
    You'll find the Rendering & Exporting basics here.
    And if you are attempting to use AE intuitively, you really owe it to yourself to check out that link posted above.  Those who ignore the basics do so at their peril, and that's no joke.

  • I deleted my download folder and now I can't download anything. I can't select the folder to "save file to" and when I select "ask me where to save files" I still can't download. it says your file will start downloading, but then it doesn't. Help!!

    I deleted the folder that saves everything that is downloaded from Firefox. After that I can't download anymore. I've tried clearing my download history, reset the download folder, reset the download action by renaming the mimetype.rdfs file and it's still not working. I've tried to choose a different download folder but it doesn't let me select any folder at all. If I select "ask me where to save files" and then try and download something, the download doesn't start after I select save to. The only time it does actually download is when I select "open with...windows mediaplayer" when downloading then the download will start. Please help. Thank you.

    You broke your phone by getting it wet.  Nothing more to say.  Bring it in to Apple for an out of warranty exchange or buy a new phone.  There's really nothing else we users here can help you with.

  • When I click on download link, Firefox don't pop-up window where i could select open with or to save file, it just pop-up window where to save, why?

    Before update, when i clicked on download link pop-up window would come up asking me if i wnat to open file with program or just save it, but after update i dont get that pop-up window, insted i get window asking me where to save it, how can i fix this problem, because i want sertain files to be opened with a program like it was before update? I have tried every solution i could find, and nothing helped. I use Firefox 16.0.2 on win7 ultimate x64bit

    Thank you, it helped alot. I found that my problem was that all programs in applications panel was set to "save file" option and when i changed them to "always ask" it was back to normal, like i used to :D many thanks

  • How can I save the settings of my iPhone 4 before resetting the phone in addition to saving the apps etc. by synchronisation with i-tunes

    How can I save the settings of my iPhone 4 before resetting the phone in addition to saving the apps etc. by synchronisation with i-tunes

    All the phone settings are save in the backup which is automatically created when you sync the phone.
    http://support.apple.com/kb/HT1766
    Please clarify what you mean by "resetting" the phone. When you reset the phone, no data is deleted.  Do you actually mean Restore the phone?  See the User Guide, Appendix B for the correct terminology,
    http://manuals.info.apple.com/en_US/iPhone_iOS4_User_Guide.pdf

  • Firefox doesn't save the settings

    As the question might say this version of Firefox (5.0.1) doesn't save the settings u do to it...For example my problem is with the toolbar and the buttons i add to it...i have tried to customize it as i previously had it in the earlier versions of firefox but it doesn't save them...i need to customize them from the beginning whenever i close and open firefox...even when it updates the add-on's and restarts it still needs to be customized...i have also checked many forums and apparently i am not the one having the same problem...some also can't save the bookmarks but that is not my case...i have recently downloaded a Premuimplay Codec-c add on and also a Facemoods and maybe ththose interfere with firefox even though i doubt it
    The addon's that i definitely wanna keep on the toolbar are IMTranslator,WOT,Read It Later,Save-To-Read,ADBlock Plus and also the Home button never stays in the place i move him when i customize the toolbar
    Regards
    Albi
    PS:(some add-ons don't work with firefox 5.0.1 but i guess thats the developers problems right?

    Firefox 4 saves the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    You can use "Firefox > History > Restore Previous Session" to get the previous session.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.
    Another possibility is to use:
    * [http://kb.mozillazine.org/Menu_differences Firefox (Tools) > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • When downloading a large file, like a movie Internet Explorer automatically provides one with the choice of where to save it - e.g. "C" drive, but Firefox doesn't. How can it be done?

    When downloading a large file, like a movie, Internet Explorer automatically opens a download window offering the choice to "Open" or "Save"the file. This provides one with the choice of where to save it - e.g. "C" drive, in the "My Documents" or "Desktop" folders but Firefox's download window doesn't. This has always frustrated me because I would rather use Firefox exclusively to access the Internet, but when it comes to saving files downloaded off the Internet, sadly, I have to revert to IE!

    If you click on Firefox from the upper-left, then Options, a new window should appear. On that window, click on the general tab. In the middle of the window, you'll see options regarding your downloads, one of which says, "Always ask me where to save files." Click on the bubble for this options, then click Ok. From then on, you should always be prompted on where you want your files saved.

  • "Save as" dialog box doesn't come up, even though I have "Always ask me where to save files" selected (email attachments)

    Recently, the "save as" dialog box quit appearing when I attempt to download email attachments. I have the "always ask me where to save files" box checked in the tools/options/general/downloads area. The box still appears when I use Chrome, but not when I use Firefox.

    Hello,
    Can you please follow these steps and provide the value for the configuration 'browser.download.useDownloadDir'
    # In the [[Location bar autocomplete|Location bar]], type '''about:config''' and press '''Enter'''. The about:config "''This might void your warranty!''" warning page may appear.
    # Click '''I'll be careful, I promise!''', to continue to the about:config page.
    Can you please provide the values for the following keys
    #browser.download.useDownloadDir
    #browser.download.lastDir
    Thank you

  • Is there an app where it saves your photo shortly after onto the web/online after taking a picture?

    Is there an app where it saves your photo shortly after onto the web/online after taking a picture? In essense, I want to be able to take a picture with the stock camera app on the Iphone 4 and have it saved immediately online after...without hooking it back onto a computer...completely automatic and wireless/using internet data.
    Thanks very much.

    If you're running iOS 5.1 or later you could use Photo Stream.  See http://www.apple.com/icloud/features/photo-stream.html and http://support.apple.com/kb/HT4486.  It will upload up to 1000 photos to iCloud.com for 30 days.

  • Saving a Pages document: when I first save a pages document it saves and I don't know where it goes or what its name is.  I want to be asked every time I save a pages document what to name it and where to save it. How do I set this preference?

    Saving a Pages document: when I first save a pages document it saves and I don't know where it goes or what its name is.  I want to be asked every time I save a pages document what to name it and where to save it. How do I set this preference?

    I'll guess that you've used a page layout document & pasting created a text box. You can add more pages & create linked text boxes, but I think you'd be better of using a word processing document. In word processing documents there is a basic text layer & additional pages will be created as needed to fit the text. Take a look at the toolbar of your document. If it says "sections" for the +page icon it's a word processing document, if it says "pages" it's a page layout document.

  • How can I upload a file to the server where I save the Java Web Start Files

    Hello,
    Does anyone knows how to upload a file to the directory where I save the JAR files through the Java Web Start program. Thanks you

    ftp

Maybe you are looking for

  • Max No. of records in a table - performance related statistics of a table

    Hi all, Can anybody please help me on the performance related statistics depending upon the size of the table? I have a question regarding the scalability and(I think so) and performance. My record is having 20 columns and all columns together it wil

  • OWA can't be accessed after moving data files to new volume

    SBS 2008  Exchange 2007 Used the Move Files wizard in SBS Console to move Exchange files off of system drive to a storage drive.  Wizard said move was successful.  Opend Exchange management Console and verified path to files under Server/Mailbox. I g

  • 6540 questions

    Hi All Been given a 6540 for my microsoft sql storage. Bit of an experiment in our shop using SUN equipment for Windows services. Lot of questions - greatly appreciate answers to any of them. Does the 6540 support raid 10? If not are there any other

  • I have an iPhone 5s charger just stopped working

    My charger just stopped working out of nowhere. Is there anything I can do to fix, or do I just have to go buy another charger?

  • Select stmt issue, performance tuning.

    Hi Group, I have a question. There is a select stmt which is using inner join, and its taking good amoutn of time to get executed. I was told to tune the performance of that query. And my TL suggested me to use ranges in that select stmt, like the si