LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-08-2003, 06:48 AM   #1
breakerfall
Member
 
Registered: Jun 2003
Location: Manchester, UK
Distribution: Gentoo
Posts: 306

Rep: Reputation: 30
Question hdparm done, not laoding at reboot


hola...

I have installed gentoo from stage 1, somewhere along the lines I'm pretty sure that I enabled DMA on hda. For some reason it doesn't stick around.

Now I've read other threads and I have done the hdparm command and they then say to add the line to the rc file. Now, the closest thing I have is rc.conf which is /etc/rc.conf

I run nano -w /etc/rc.conf but I have nooooo idea where to add the line
Quote:
#hdparm -c 1 -d 1 -k 1 /dev/hda
.

Any ideas? Thanks :-)
 
Old 08-08-2003, 07:33 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
First add hdparm as an init script:
rc-update add hdparm default

Then you can edit:
/etc/init.d/hdparm
To your needs

Cool
 
Old 08-08-2003, 07:39 AM   #3
breakerfall
Member
 
Registered: Jun 2003
Location: Manchester, UK
Distribution: Gentoo
Posts: 306

Original Poster
Rep: Reputation: 30
Thankyou very much :-)
 
Old 08-08-2003, 07:42 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
You're welcome

FYI, in the future, should you have a non 'emerged' app you want to do something 'rc.local'ish with, try:
/etc/conf.d/local.start



Cool

PS> If you are stuck "in your ways" and need an /etc/rc.local go ahead and symlink:
ln -s /etc/conf.d/local.start /etc/rc.local

And then you'll have your "rc.local"

Last edited by MasterC; 08-08-2003 at 07:43 AM.
 
Old 08-08-2003, 06:14 PM   #5
breakerfall
Member
 
Registered: Jun 2003
Location: Manchester, UK
Distribution: Gentoo
Posts: 306

Original Poster
Rep: Reputation: 30
most of that flew by like a jet plane. Sorry... I'm a gentoo newb and pretty much a linux newb aswell... at least this time there's no dual boot, so it's only linux on this machine.

I should start learning now I'm on it everyday :-)
 
Old 08-08-2003, 06:45 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
No worries then, it was just "if this applies"

Cool
 
Old 08-09-2003, 11:11 AM   #7
the panther
LQ Newbie
 
Registered: Aug 2003
Location: Turkey
Distribution: Slackware 9.0
Posts: 25

Rep: Reputation: 15
I have a Ultra DMA mode 5 harddisk

When I'm installing Gentoo 1.4 stage 3 I get errors once In a while, something about dma and ide read errors, and in overall the install process takes longer than it should

when I do hdparm -X69 (which is mode 5) /dev/hdc

everything seems good for the command I input after but the other things that I do give me errors.

Even if I don't get errors (which happends once) GRUB gives me a ERROR 16 (which means something is bad with the file systems) and LILO gives my a 0x01 error?

if I rc-update add hdparm default will this solve my problem?
If so what should I exactly write in /etc/init.d/hdparm ???

I'M a

Thanks!
 
Old 08-09-2003, 11:52 AM   #8
the panther
LQ Newbie
 
Registered: Aug 2003
Location: Turkey
Distribution: Slackware 9.0
Posts: 25

Rep: Reputation: 15
The error that it gives me is

hdc: dma_intr: status=0x51 {DriveReady SeekComplete Error}
hdc: dma_intr: error=0x81 {DriveStatus Error BadCRC}
hdc: dma_intr: status=0x51 {DriveReady SeekComplete Error}
hdc: dma_intr: error=0x81 {DriveStatus Error BadCRC}
hdc: dma_intr: status=0x51 {DriveReady SeekComplete Error}
hdc: dma_intr: error=0x81 {DriveStatus Error BadCRC}
hdc: dma_intr: status=0x51 {DriveReady SeekComplete Error}
hdc: dma_intr: error=0x81 {DriveStatus Error BadCRC}
ide1: reset: succes

and then it turns back to normal

even if I do a hdparm -X69 -d1 /dev/hdc

PLEASE HELP
 
Old 08-09-2003, 12:07 PM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Honestly, I wish I could help I'll be happy to split your post off into the Hardware section if you desire, after all you hijacked into a thread after resolution so less people are likely to see it now.

The only bit that looks familiar to me is the 0x81 that is referring to (IIRC) the Secondary Master drive, which would correspond with hdc, so that really doesn't help

Cool
 
Old 08-09-2003, 12:56 PM   #10
the panther
LQ Newbie
 
Registered: Aug 2003
Location: Turkey
Distribution: Slackware 9.0
Posts: 25

Rep: Reputation: 15
Ok then,

I've posted my problem to the Hardware Section

I hope I can get some help there

Thanks anyhow
 
  


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
No keyboard/mouse after reboot. Requires second reboot to work. rottie Linux - Hardware 6 01-16-2006 06:04 AM
hdparm settings after reboot Crashed_Again Linux - General 1 03-04-2004 07:43 AM
How do I disable firewire from laoding wgm Linux - Laptop and Netbook 1 01-11-2004 05:46 AM
ohci1394 not laoding + hardware probe problem on my laptop Twinkle Linux - Laptop and Netbook 2 08-08-2003 01:43 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 01:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration