Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DMA vid boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Scandinavian
View previous topic :: View next topic  
Author Message
LimeFrog
Apprentice
Apprentice


Joined: 31 Mar 2003
Posts: 187
Location: Skövde, Sweden

PostPosted: Thu May 08, 2003 7:44 am    Post subject: DMA vid boot Reply with quote

Tjena, det är så att jag skulle vilja dra igång DMA på min hårddisk. hdparm -d 1 /dev/hda funkar fint men när man bootar om så stängs DMA'n av igen. Någon som har något tips på hur jag gör så att DMA är på när jag bootar om? Tänkte lägga ett script i init.d. Men hur lägger jag in det så att DMA sätts på innan partitionerna kontrolleras? räcker det med rc-update add script boot måntro?
_________________
I don't believe in God, but I'm afraid of him!
Back to top
View user's profile Send private message
zeb
Tux's lil' helper
Tux's lil' helper


Joined: 19 Apr 2002
Posts: 79
Location: Finland

PostPosted: Thu May 08, 2003 1:27 pm    Post subject: hdparm Reply with quote

Det finns redan ett skript för detta, med namnet hdparm. Det är bara att lägga till det till boot-nivån (rc-update add hdparm boot) så skall det funka.
Man kan ändra parametrar för skriptet i /etc/conf.d/hdparm .
Back to top
View user's profile Send private message
LimeFrog
Apprentice
Apprentice


Joined: 31 Mar 2003
Posts: 187
Location: Skövde, Sweden

PostPosted: Fri May 09, 2003 5:56 am    Post subject: Reply with quote

Perfekt, tackar för den informationen.. :)
_________________
I don't believe in God, but I'm afraid of him!
Back to top
View user's profile Send private message
LimeFrog
Apprentice
Apprentice


Joined: 31 Mar 2003
Posts: 187
Location: Skövde, Sweden

PostPosted: Fri May 09, 2003 6:22 am    Post subject: Reply with quote

Ok, nu har jag lagt till hdparm i boot men den aktiveras ändå för sent. :(
Som det är nu så aktiveras den sist av allt som aktiveras i boot och jag vill ha den aktiverad innan alla partitionerna checkas. Någon som har förslag på hur man fixar? :)
_________________
I don't believe in God, but I'm afraid of him!
Back to top
View user's profile Send private message
Yarrick
Bodhisattva
Bodhisattva


Joined: 05 Jun 2002
Posts: 304
Location: Malmö, Sweden

PostPosted: Fri May 09, 2003 5:15 pm    Post subject: Reply with quote

vad händer om du lägger den i runleveln boot istället för default? funkar det då? (prövas på egen risk)
Back to top
View user's profile Send private message
zeb
Tux's lil' helper
Tux's lil' helper


Joined: 19 Apr 2002
Posts: 79
Location: Finland

PostPosted: Fri May 09, 2003 9:03 pm    Post subject: Reply with quote

LimeFrog wrote:
Ok, nu har jag lagt till hdparm i boot men den aktiveras ändå för sent. :(
Som det är nu så aktiveras den sist av allt som aktiveras i boot och jag vill ha den aktiverad innan alla partitionerna checkas. Någon som har förslag på hur man fixar? :)


hdparm-skriptet körs efter localmount, vilket körs efter checkfs. Om du absolut vill ha igång hdparm före så kan du prova att byta ut "need localmount" mot "before checkfs" i /etc/init.d/hdparm -> Detta görs helt på egen risk, jag har inte den blekaste aning om det fungerar eller inte 8O

Om det väller ut rök från baksidan av datorn när du bootar den, så funkar det antagligen inte... ;)
Back to top
View user's profile Send private message
LimeFrog
Apprentice
Apprentice


Joined: 31 Mar 2003
Posts: 187
Location: Skövde, Sweden

PostPosted: Sat May 10, 2003 3:11 pm    Post subject: Reply with quote

Hehe, får testa det på datorn i skolan då det inte gör något ifall den skiter sig. :)

Yarrick: den ligger redan i boot, men blir aktiverad sist av alla saker som ska aktiveras på boot runleveln. :)
_________________
I don't believe in God, but I'm afraid of him!
Back to top
View user's profile Send private message
Yarrick
Bodhisattva
Bodhisattva


Joined: 05 Jun 2002
Posts: 304
Location: Malmö, Sweden

PostPosted: Sat May 10, 2003 7:05 pm    Post subject: Reply with quote

http://www.gentoo.org/doc/en/rc-scripts.xml

titta här, du kan få den att köra innan ett visst skript.
Back to top
View user's profile Send private message
LimeFrog
Apprentice
Apprentice


Joined: 31 Mar 2003
Posts: 187
Location: Skövde, Sweden

PostPosted: Sun May 11, 2003 11:53 am    Post subject: Reply with quote

Tackar, det kastade lite ljus över situationen. :D
_________________
I don't believe in God, but I'm afraid of him!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Scandinavian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum