LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-19-2011, 02:13 AM   #1
solorize
LQ Newbie
 
Registered: Apr 2011
Posts: 5

Rep: Reputation: 0
How to set and run hdparm -m at on boot up.


Due to problems with my laptop freezing
when booting into various flavours of linux.
i.e Ubuntu, xubuntu, Mint (all of these I have
tried, but the same freezing happens)
Also I have tried two new Harddrives and still it freezes
on occasions, either on bootup or randomly when in the OS.

My hard drive is a "Western Digital Scorpio Blue 80GB EIDE - WD800BEVE",
I noticed that when reading up about HDPARM there is an option -m that
I can use to maybe help.

Quote:
"Western Digital recommends
lower settings of 4 to 8 on many of their drives, due tiny (32kB) drive buffers
and non-optimized buffering algorithms"
I would like to have the following hdparm command
run when my system boots up, and have added the following
hdparm line to the bottom of the /etc/hdparm.conf file...

Code: Select all
Code:
hdparm -m4 --yes-i-know-what-i-am-doing /dev/sda

but it when I do a hdparm -i /dev/sda from Terminal in "Linux Mint" it still shows MultiSect=16 not =4

I can set it from Terminal using:

Code: Select all
Code:
sudo hdparm -m4 --yes-i-know-what-i-am-doing /dev/sda


and it will switch MultiSect=4

Therefore I must be doing something wrong, but I can not work out what,
due to my limited experience in with linux.

Could someone confirm which file I should edit to put the above hdparm
command into, and let me know if there is something I may be doing
wrong.

Thanks.
 
Old 04-19-2011, 02:35 PM   #2
mande01
LQ Newbie
 
Registered: Aug 2009
Posts: 23

Rep: Reputation: 2
I don't know how to do what your looking for but...

If different OS freeze, if different hard drives freeze...

I would be checking my video card, RAM and motherboard.

In that order, just swap them out with another system or try to borrow some from a friend or a local shop that may have them spare for testing.

Just a thought,
Derry
 
Old 04-19-2011, 03:25 PM   #3
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
Had a thought - if you place your command in /etc/rc.local, it should run at the end of the boot process. This obviously won't help if the system hangs on boot.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best place to run hdparm jrdioko Slackware 11 01-10-2006 08:23 PM
Maxtor 6Y120L0 canīt set hdparm above udma2 jimdaworm Slackware 7 09-29-2004 04:01 AM
Set Syslogd to run with -r switch at boot? sirpimpsalot Linux - Newbie 3 09-24-2004 12:10 AM
Cant set dma mode with hdparm and SiS 5513 IDE mush Linux - Hardware 1 12-15-2003 07:35 PM
im in user mode and cant run hdparm and ifconfig commands, but if im root, i can. kublador Linux - Newbie 2 09-12-2003 08:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration