LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   hdparm done, not laoding at reboot (https://www.linuxquestions.org/questions/linux-newbie-8/hdparm-done-not-laoding-at-reboot-80104/)

breakerfall 08-08-2003 05:48 AM

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 :-)

MasterC 08-08-2003 06:33 AM

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

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

Cool

breakerfall 08-08-2003 06:39 AM

Thankyou very much :-)

MasterC 08-08-2003 06:42 AM

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" ;)

breakerfall 08-08-2003 05:14 PM

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 :-)

MasterC 08-08-2003 05:45 PM

No worries then, it was just "if this applies" ;)

Cool

the panther 08-09-2003 10:11 AM

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 :newbie:

Thanks!

the panther 08-09-2003 10:52 AM

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

MasterC 08-09-2003 11:07 AM

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

the panther 08-09-2003 11:56 AM

Ok then,

I've posted my problem to the Hardware Section

I hope I can get some help there :)

Thanks anyhow


All times are GMT -5. The time now is 09:22 AM.