LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-02-2003, 06:14 PM   #1
DAChristen29
Member
 
Registered: Dec 2002
Location: Johnstown, Co
Distribution: Mint (debian edition)
Posts: 541

Rep: Reputation: 30
hdparm and rc.local


i looked everywhere for an answer to this question, Linux Questions, google, and chat rooms, but nobody can help.

i read other posts about hdparm, and people telling the person to add "hdparm -c 1 -d 1 -k 1 /dev/hda" to their /etc/rc.local. Ive done this to my hda AND hdc, but it doesnt seem to work. i added the lines hdparm -c 1 -d 1 -k 1 /dev/hda (and hdc) at the bottom of the /etc/rc.local file, but i get no response from it. i still have to manually type it in at a konsole.

how do i get HDPARM to autorun at boot ? i need it to enable 32 bit I/O so i can watch DVDs without jumps, and read form my HD faster to speed up the boot process.
 
Old 04-02-2003, 06:30 PM   #2
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
At the bottom of your /etc/rc.d/rc.local, you should have a bunch of one character lines like

~
~
~
~
~

Now, does it look like this:

hdparm -c 1 -d 1 -k 1 /dev/hda
hdparm -c 1 -d 1 -k 1 /dev/hdc
~
~
~

or does it look like this:

hdparm -c 1 -d 1 -k 1 /dev/hda
hdparm -c 1 -d 1 -k 1 /dev/hdc

~
~
~

??? Notice that the bottom one has a blank line after the last line and not a line with a ~. You will need to have a blank line after you last line I think. I can see this in my files when I edit with vi. If you edit it with vi you should be able to see this as well. Add a blank line and you should be set (hopefully).

Hope this helps.
 
Old 04-02-2003, 06:31 PM   #3
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
You didn't enclose the hdparm line in your rc.local in quotes ("") i trust.

Does anything in your rc.local work when you boot?
 
Old 04-02-2003, 06:39 PM   #4
DAChristen29
Member
 
Registered: Dec 2002
Location: Johnstown, Co
Distribution: Mint (debian edition)
Posts: 541

Original Poster
Rep: Reputation: 30
it looks like the second thing:

hdparm -c 1 -d 1 -k 1 /dev/hda
hdparm -c 1 -d 1 -k 1 /dev/hdc

~
~
~

i use kwrite to edit it. i dont know if anything in rc.local successfully inits at boot, i dont know how i can tell.
 
Old 04-02-2003, 06:40 PM   #5
DAChristen29
Member
 
Registered: Dec 2002
Location: Johnstown, Co
Distribution: Mint (debian edition)
Posts: 541

Original Poster
Rep: Reputation: 30
oh, BTW, i did not enclodr the HDPARMin quotes, i just use those to show the commands i type in.
 
Old 04-02-2003, 07:29 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Quoting DAChristen29
/etc/rc.local
Quote:
Quoting Texicle
/etc/rc.d/rc.local
Cheers,
Tink
 
Old 04-02-2003, 08:57 PM   #7
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
To see if it works at a command line type:

hdparm /dev/hda
hdparm /dev/hdc

This should tell you what has changed.

BTW, I put my hdparm command in the sysinit.conf, I believe, I will have to double check, works fine in here.

I can tell you for sure once I get back to my Linux machine.
 
Old 04-02-2003, 10:56 PM   #8
DAChristen29
Member
 
Registered: Dec 2002
Location: Johnstown, Co
Distribution: Mint (debian edition)
Posts: 541

Original Poster
Rep: Reputation: 30
rc.d/rc.local....hmmmmmmm, didnt even know it existed, ill try that. thanks guys, thats probably it.
 
Old 04-02-2003, 11:12 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
rc.d/rc.local....hmmmmmmm, didnt even know it existed, ill try that. thanks guys, thats probably it.
Pleasure mate, and it sure always worked for me ;)

Cheers,
Tink
 
Old 04-03-2003, 12:20 PM   #10
anccert
LQ Newbie
 
Registered: Apr 2003
Location: Earth
Distribution: Fedora 6
Posts: 28

Rep: Reputation: 15
This is just reference material regarding speeding up your HD with hdparm, if you are interested.

<http://linux.oreillynet.com/pub/a/li...29/hdparm.html>

Also I noticed a huge improvement in watching DVD ROMS by enabling DMA on the DVD drive by adding <options ide-cd dma=1> to my modules.conf file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Setup local machine to allow lan machines to retrieve its local user mail. Brian1 Linux - Networking 3 03-30-2006 06:04 AM
hdparm refdoc Ubuntu 5 09-08-2005 08:07 PM
Local webserver -- How to deny all client install their local web server--Please help b:z Linux - Networking 13 04-16-2005 08:11 PM
Cannot resolve local addresses on local network danielgrenyer Linux - Networking 6 01-14-2004 12:03 PM
hdparm -g NOT= hdparm -i ---LILO hangs @ L stevewalsh Linux - General 4 07-23-2001 10:37 PM


All times are GMT -5. The time now is 06:47 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration