Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ive been trying to get rid of this stupid whirring/clicking sound that happens for 6-10 seconds every 10 seconds or so... ive since learnt that its aggressive power saving mode in my HDD (that Linux programmers refuse to sort out like windows programmers do) - trying to fix it i used the hdparm code setting - does this make permanent changes in the hard-drive that would reflect in windows if i boot back into windows? - i tried the 255 and 254 code and none of which worked but after coming back into windows there seems to be random clicks more often than before.. i dunno if its just me worrying that ive broke my hard-drive by trying these codes and thinking it is or wot
so are these changes permanent or do they reset at boot?
I had the same problems (too aggressive power-saving), but solved it with
Code:
hdparm -B 254 /dev/sda
on my laptop.
This setting is reseted when rebooting, so I wrote this command in my /etc/rc.local (Debian, don't know where to put it on other systems), so that is executed at boot.
I had the same problems (too aggressive power-saving), but solved it with
Code:
hdparm -B 254 /dev/sda
on my laptop.
This setting is reseted when rebooting, so I wrote this command in my /etc/rc.local (Debian, don't know where to put it on other systems), so that is executed at boot.
i tried that and didnt work - last night however i changed the battery settings so that it wouldnt spin down (even though i was on AC power) and it stopped?? - but since coming on today ive noticed its back with a vengence and changing settings does nothing - neither does that code above.. 255 or 254... - 255 is Power Management OFF and 254 sets it on lowest setting,
this clicking DOES NOT HAPPEN IN WINDOWS... im very surprised that Linux OS Programmers cant/wont sort this out? it seems to affect a large amount of laptop hard-drives and people running Linux... im in windows right now and its great...
...actually... i got ACCESS DENIED when i used that code... but i used one i seen on another website which had a # in front of it - that didnt return any errors or notifications so i assumed it worked... and didnt sort it out - is this right or not? if i dont have the hash why am i getn access denied errors?
You have to issue that command as root, sorry, I should have mentioned that. If you see a #-char before a command that means the same, issue that command as root, but do not type the #-char in, or the bash will see your input as simple comment and do nothing.
So if you for example are using Ubuntu you have to type
Code:
sudo hdparm -B 254 /dev/sda
If you use a distro that don't uses sudo you have to type
Code:
su
hdparm -B 254 /dev/sda
Be aware that you must type your password in when asked by the sudo-command, but the root password when asked by su, and that you will not see the password, you have to type it blind.
Which distro are you using?
latest ubuntu 64-bit, thanks for the clarification, the fixes i see all over the web just show the code... no 'SUDO' before it either - i had to work out for myself that it must be some form of command like CMD prompt in windows... i found the terminal and entered the code but didnt work... i will try the sudo in front of it... thanks
so, if it works... how to i get it too run at boot? , remember: im a noob haha
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.