LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-21-2004, 06:06 PM   #1
gomez
LQ Newbie
 
Registered: Jul 2004
Location: st. louis
Distribution: RH9
Posts: 13

Rep: Reputation: 0
/proc/mtrr


i accidently entered something in to my mtrr file

Code:
echo "base=0xf8000000 size=0x2000000 type=write-combining" >| /proc/mtrr
the only thing wrong with this is the base address for my vid card. I'm unsure how to remove this line and enter the correct one. I thought i could just echo the correct parameters but i'm curious on how i'd remove the line. I'm able to vi into it but can't save it (i imagine it must be an important system file then.) Anyone run into this?



--gomez
 
Old 12-21-2004, 06:25 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Can't you just reboot? isn't proc a psuedo filesystem created on the fly?
 
Old 12-21-2004, 06:29 PM   #3
gomez
LQ Newbie
 
Registered: Jul 2004
Location: st. louis
Distribution: RH9
Posts: 13

Original Poster
Rep: Reputation: 0
na, i guess not.

i just
Code:
cat /proc/mtrr
and the line is still there
 
Old 12-21-2004, 07:30 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I don't even understand how it got there in the first place,
since you're redirecting into a pipe?


Code:
echo "base=0xf8000000 size=0x2000000 type=write-combining" >| /proc/mtrr
The | shouldn't be there at all ...


Cheers,
Tink
 
Old 12-21-2004, 07:38 PM   #5
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
/proc is a pseudo fs. It displays current values the kernel is using and allows you change certain kernel behavior on the fly. But it should revert on reboot. Most files in /proc are readonly, except for some that are rw for root. (There may be exceptions to that. Not sure.) Are you _sure_ that isn't the base addres for your vid card?

lspci -vv as root
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Correlation between /proc/devices and /proc/modules ColinLadyka Linux - General 1 02-13-2006 05:25 PM
mtrr type mismatch? Vgui Linux - General 1 08-13-2005 05:53 PM
mtrr Alignment Messages seldan Linux - Software 2 09-26-2004 07:31 PM
Is there MTRR support for AMD proc types? Manu-M *BSD 0 09-03-2004 08:40 PM
mtrr support abs Slackware 1 03-03-2004 12:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:04 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
Open Source Consulting | Domain Registration