LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem on boot because of wrong resolution (https://www.linuxquestions.org/questions/linux-newbie-8/problem-on-boot-because-of-wrong-resolution-181919/)

julian_s 05-15-2004 09:55 PM

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.

thanks

vectordrake 05-15-2004 11:02 PM

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:
/etc/X11/XF86Config-4
/etc/lilo.conf

I think nano is installed by default (and its easy to use), so to edit your XFree config, you'd
Code:

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

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.

Ex:
Code:

SubSection "Display"
        Depth          24
        Modes          "1184x864" "1024x768" "800x600"
    EndSubSection

you'd change to:
Code:

SubSection "Display"
        Depth          24
        Modes          "1024x768" "800x600"
    EndSubSection

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.


All times are GMT -5. The time now is 10:31 PM.