LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-06-2005, 04:37 AM   #1
refdoc
Member
 
Registered: Aug 2005
Location: Scotland
Distribution: Ubuntu
Posts: 32

Rep: Reputation: 15
hdparm


Trying to imrpove the function of my dvd drive I tried to switch on dma via hdparm.

This works fine from the command line.

I then trie dto make this change permanent by altering /etc/hdparm.conf, but did not get anywhere. The comment section suggested four different ways of using hdparm.conf, setting defaults, settings for people with devfs, setting directly for the devices and finally with a commandline integrated into hdparm.conf.

While the individual settings worked fine set from the commandline, nothing at all ever happened when introducing these settings via any of the four described ways into hdparm.conf.

There is a hdparm script in init.d, which calls hdparm.conf at boot.

One solution obviously would be to put a script into my own startup routines e.g in gnome startup, but this appears to be a bit of a botch job.

Any ideas?

Thanks!
 
Old 09-06-2005, 08:50 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Well since the proper config file is not working for you try editing the file /etc/init.d/bootmisc.sh and near the bottom just before the : exit 0 put your hdparm command there and see if it helps.
 
Old 09-06-2005, 10:18 AM   #3
samael26
Member
 
Registered: Oct 2004
Location: France, Provence
Distribution: Debian
Posts: 848

Rep: Reputation: 30
Hi,

Do you suggest putting the command
Code:
hdparm -d1 /dev/hdb
where you suggested in the file /etc/init.d/bootmisc.sh
to enable dma=on at boot time ?

I have the exact same problem and must run the command
at each reboot.

thanks
 
Old 09-06-2005, 10:28 AM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally posted by samael26
Hi,

Do you suggest putting the command
Code:
hdparm -d1 /dev/hdb
where you suggested in the file /etc/init.d/bootmisc.sh
to enable dma=on at boot time ?

I have the exact same problem and must run the command
at each reboot.

thanks
Well if using.

Code:
/dev/hdb {
        dma = on
}
In the /etc/hdparm.conf near the bottom does not work for you then it is worth a try.
 
Old 09-07-2005, 09:16 AM   #5
refdoc
Member
 
Registered: Aug 2005
Location: Scotland
Distribution: Ubuntu
Posts: 32

Original Poster
Rep: Reputation: 15
No this does actually not work.

hdparm works fine if called on the commandline, but the /etc/init.d/hdparm script does not seem to parse /etc/hdparm.conf

I have enclosed a variety of different commands into /etc/hdparm.conf and run "sudo /etc/init.d/hdparm restart" over and again, but with absolutely no difference made.

I have used the defaults option, I set direct commandlines, I have done everything.

I then put an echo into /etc/init.d/hdparm at various places where I knew I would not cause harm but could not elucidate the problem. Unfortunatley I do not understand code enough to read and understand /etc/init.d/hdparm really... But I do think teh problem must be in that file.
 
Old 09-08-2005, 07:07 PM   #6
CouchMaster
Member
 
Registered: Mar 2005
Location: West Texas
Distribution: Sidux - Mint - PC Linux - Ubuntu 7.04 - Mepis 7 Beta5 - DreamLinux 2.2
Posts: 234

Rep: Reputation: 33
This does work - add - hdparm -d1 /dev/hdc to /etc/init.d/bootmisc.sh?
 
  


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
hdparm Crumpet84 Linux - Newbie 1 04-16-2005 12:53 PM
help with hdparm minm Linux - Newbie 1 02-18-2005 12:14 PM
using hdparm? box_l Linux - General 7 10-01-2003 07:49 AM
hdparm ash4stuff Linux - Hardware 4 08-14-2003 03:05 AM
hdparm -g NOT= hdparm -i ---LILO hangs @ L stevewalsh Linux - General 4 07-23-2001 09:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:10 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