Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-15-2004, 10:55 PM   #1
Registered: Jan 2004
Location: Colombia
Distribution: Ubuntu 5.10
Posts: 35

Rep: Reputation: 15
problem on boot because of wrong resolution

Hi, there, I'm tired of being a newbie and I tried to solve this problem very hard before posting here, but I couldn't solve it by myself, so here it is.

I'm using Mdk 9.2 with XFree 4.3, and i entered the MCC (mandrake control center) and by accident I changed my screen resolution from 1024x768 to 11***x*** (the next in the list), everything went fine until I rebooted, it gave me the normal loading process until the screen where you put your password and login, cause it only gave me a black screen and I had to reset my box, then when i tried again it just gave a long list of errors which i couldn't write, and then it said something about a kernel panic, and that it would try to pass the command init= to the kernel, but it just freeze, and I had to reset again.

I tried to fix it by "updating" Mdk with the Cd's but because I had updated my kernel with one that i found on a contribs site (2.4.22-28 I think) it only gave the option to install the OS, but off course I don't wanna miss all the data i have; also i tried to do something by entering in the rescue mode, thinking that i could modify the XFree config file, but I couldn't find the file this way, bacause it shows only some files on the PC, I don't know why is that but i would like to know, so I'm tired and need desperately a solution, I would appreciate all the help you could give.

Old 05-16-2004, 12:02 AM   #2
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
I'm gonna assume that you're booting with a graphical lilo, as is common for Mandrake. Try booting with the "linux-failsafe" option, which should fire you in there with fewer options (and no framebuffer). If you get to the "black screen", try going to another console by hitting ctrl+alt+F2. If you get there, you can log in as root. Then you can fire up your favorite editor to fix the problems.

It sounds like you have two problems. One is the graphical problem, which is actually quite easy to fix - which is a good thing. The other sounds like you may have messed up your lilo.conf file a bit too.

Here are where these files are:

I think nano is installed by default (and its easy to use), so to edit your XFree config, you'd
nano -w /etc/X11/XF86Config-4
Here's a well-commented example XFree config file that I ripped off the Gentoo installation (thank you Gentoo) that you can use as a guide.

Find the section near the bottom referring to the screen
Section "Screen"
Check out the entries below that heading. Look for the particular subsection that refers to your default color depth. For example, if your depth is 24 by default, you'd change the resolution there. If the "modes" are set to the wrong value, you simply change to the right one and save the file.

SubSection "Display"
        Depth           24
        Modes           "1184x864" "1024x768" "800x600"
you'd change to:
SubSection "Display"
        Depth           24
        Modes           "1024x768" "800x600"
and start your x-server. In this case, you'd have to try killing the one you had running on tty0, so you'd hit alt+f7 to get back to where your login screen is supposed to be and hit ctrl+alt+backspace. That should kill it and restart it properly. If not, several attempts until it really dies and then arestart would work (you'd log in as root and type "telinit 5" and you'd be graphical again).

Now, if the kernel panic is happening and you can't get past it no matter what, try to type, when it asks you for an init, "/bin/bash" and see if it lets you get a shell. If so, you can edit from there. In that case, you'd want to try a rescue. Insert your Mandrake CD and hit F1 or F2 (whichever it says) to get help/rescue. Type rescue and it'll fire up a recovery tool list. Choose to repair lilo and see if that fixes it.

Last edited by vectordrake; 12-19-2004 at 01:05 AM.


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
Boot problem - hda1 suddenly has wrong fs terjus Linux - General 4 11-27-2005 06:00 PM
Resolution is wrong i think ash506 Linux - Software 5 08-16-2003 12:27 AM
boot screen resolution problem, framebuffers maybe? noobix Slackware 5 06-07-2003 04:51 PM
HELP - wrong resolution alex34 Linux - General 8 04-15-2003 01:07 AM
Boot screen resolution problem..... Unknown_User Linux - Software 1 03-13-2003 07:27 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration