LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-10-2004, 04:28 AM   #1
poiuytrewq
Member
 
Registered: Jul 2004
Posts: 107

Rep: Reputation: 15
i screwed up big time (aka help!)


so i have been trying for quite a while to change the resolution of my command line using, amongst other things, the rdev command.
to make a long story short i finally realized that what i had to do was:

$ rdev -v /boot/vmlinuz-2.4.22-1.2199.nptl -3

and while doing that, for the hell of it i also did

$ rdev -v /boot/initrd-2.4.22-1.2199.nptl.img -3

(i had been working on this for a while and thought i would save time by testing both at once)

which was not so smart.

now when i boot, my computer crashes and the caps and scroll lock lights flash and i get an error something along the lines of

"could not mount kernel at 00:00"

___________________________________________________________

so, with nothing else to do, and not really knowing what i was doing, i tried changing my grub conf
i changed

vmlinuz-2.4.22-1.2199.nptl
and
initrd-2.4.22-1.2199.nptl.img

to

vmlinuz-2.4.22-1.2115.nptl
and
initrd-2.4.22-1.2115.nptl.img

which i had happened to notice were also in the /boot dir.
___________________________________

so my question is, can/how can i recover my initrd-2.4.22-1.2199.nptl.img without knowing the original value of the offset 506? (the offset that rdev uses to change the video mode)

and also, what are the consequences of using the 2115 image instead of the 2199 image?

i would really appreciate any help on this one.

Last edited by poiuytrewq; 11-10-2004 at 04:30 AM.
 
Old 11-10-2004, 04:55 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The 2115 image is an earlier version of the kernel. If all of your devices work, you shouldn't have a problem, however you might want to update the kernel to get a newer version which may contain security patches.
I use a vga=791 option in lilo to decrease the size of the fonts on the virtual terminals. This option need a framebuffer, however the options that the ask option provides look too ugly to me and are hard to read. One added benefit is the ability to use the 'links' web brower in the vt and display graphics also (although this command needs to be compiled with graphics enabled). The mplayer program can also play videos in the terminal.
I don't know why the rdev command you used didn't work, however it could be that you need a version of rdev to match the kernel, but I'm not sure about that. I do believe this may be the case between a 2.4 version kernel and a 2.6 version.

The rdev command works by overwriting the contents of binary files at certain offsets. By its nature it can be a dangerous command, and since it caused damage once, the lesson is not to use it.
 
Old 11-10-2004, 05:06 AM   #3
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Rep: Reputation: 33
try to fix it with knoppix

it doesn't install anything and your computer boots up nice in X from the live CD

Wannes
 
Old 11-10-2004, 05:15 AM   #4
poiuytrewq
Member
 
Registered: Jul 2004
Posts: 107

Original Poster
Rep: Reputation: 15
thank you both for your help. i am now less worried, but it does bring up a few more questions.

wannessmet: is using knoppix going to help me in any way, either than allowing to boot my computer? because i can boot fine, except it is from an older kernel is all. (i was conserned a first, but jschiwal asured me it was good)

is there any grub equivilent to the vga command in lilo? (im using grub)

how can i go about upgrading my kernel to the newest one? (im using fedora core 1)
 
Old 11-10-2004, 01:38 PM   #5
poiuytrewq
Member
 
Registered: Jul 2004
Posts: 107

Original Poster
Rep: Reputation: 15
just another thought,

what are the chances that someone with the same os [fedora core 1] and kernel version, could run

vidmode /path/to/their/initrd-2.4.22-1.2199.nptl.img

to see what the value is (this command does nothing except report the present value) and then i could change mine back to that an it would work?
 
  


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
USB2 crashes big time xushi Slackware 10 08-21-2005 02:45 PM
Linux might hit the Big Time Phorem Linux - Enterprise 36 06-17-2004 02:37 AM
F...ed up big time neo77777 Slackware 6 12-01-2002 02:23 PM
I need help big time mscareall Linux - General 3 03-25-2002 07:30 PM
big BIG javascript & loading time luigi Programming 3 09-10-2001 03:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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