Archive for November, 2007

Ubuntu Bootup Resolution Problem

November 4th, 2007 by Naman Bagga | 20 Comments | Filed in Linux

Ubuntu has some problems associated with it but there isn't any problem which can't be solved.The configuration files are really easy to edit and can be edited by just using a simple text editor.This is something I like about Linux.

I recently installed Ubuntu 7.10(Gutsy Gibbon) on my PC and faced a problem which is quite widespread and probably will be faced by many of you.While booting up and during shut-down the screen resolution was too high for my Compaq MV540 monitor which does not support 1280 X 1024 resolution.The monitor displayed an 'Out of frequency range' error.Don't worry if you have the same problem with your Monitor.

There is a simple 3 step process to solve this problem-

  1. Type 'sudo gedit /etc/usplash.conf' or 'sudo nano /etc/usplash.conf' to edit the file-'usplash.conf'.It will look like this-

    # Usplash configuration file
    xres=1280
    yres=1024

    You have to change 1280 to 1024 in the x resolution and 1024 to 768 in the y resolution

  2. Step 1 should solve the shut-down problem.To solve the start-up problem,you need to follow step2 and step3.Now edit /boot/grub/menu.lst by typing 'sudo gedit /boot/grub/menu.lst' or 'sudo nano /boot/grub/menu.lst' .In this file reach the line

    ## ## End Default Options ##

    By default the next paragraph will have the boot information for the option you choose while booting up.It will say something like-

    title Ubuntu 7.10, kernel 2.6.22-14-generic
    root (hd0,9)
    kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=ebddbc03-0e71-41dd-babd-278109f26a95 ro quiet splash
    initrd /boot/initrd.img-2.6.22-14-generic
    quiet

    At the end of the line next to kernel,next to splash add 'vga=791'.791 is the code for 1024X768 resolution in 16 Bits.What this does is that it changes the screen resolution of all following steps but not of the xserver.You can select any other resolution which your monitor is comfortable with.
    Here are some typical values for some screen resolutions-

  3. Colours   640x400 640x480 800x600 1024x768 1152x864 1280x1024 1600x1200
    --------+--------------------------------------------------------------
    4 bits  |    ?       ?      770       ?        ?        ?         ?
    8 bits  |   768     769     771      773      353      775       796
    15 bits |    ?      784     787      790      354      793       797
    16 bits |    ?      758     788      791      355      794       798
    24 bits |    ?      786     789      792       ?       795       799
    32 bits |    ?       ?       ?        ?       356       ?

  4. The third step is a copy and paste step.In this step,you need to execute a command to update the settings and generate a new usplash image of the resolution you selected.Execute this command in a terminal window-

    sudo update-initramfs -u -k `uname -r`

    You can also try this(it's the same thing written differently but it is applicable only for the default Ubuntu usplash theme)-

    sudo update-usplash-theme usplash-theme-ubuntu

    Reboot your computer now and I'm sure you'll be able to see the orange Startup splash screen without any trouble now.


I hope this post helped you to solve your problems.If your problem still persists,visit a good Linux forum like LQ or Ubuntu Forums.You can also try downloading StartUp-Manager from the synaptic or from here if you don't like editing files manually.

PS-If you update your kernel,you might face the problem again.Visit the part 2 of this problem to prevent this from happening again.

When Computers Don’t Boot

November 2nd, 2007 by Naman Bagga | 2 Comments | Filed in Linux, Tech Talk

How often has it happened with you that all of a sudden your computer fails to boot?I've had this problem countless times and have solved it each time successfully.Today I'll give you some advice for such situations both for Windows and Linux.

If you are using Windows XP and no other OS and your computer refuses to boot,it is perhaps because of some problem with your main partition called the C drive.Follow these steps to solve the problem(note that you need to have a Windows XP CD)-

  • Boot from the CD.If you can't boot from it,check your BIOS settings.
  • When prompted,press 'R' to get to the recovery console.
  • In the recovery console,type 'chkdsk' and hit the return key to check your windows partition
  • CHKDSK will remove errors from the partition and now your computer should boot normally
  • If your problem is still not solved,try 'fixboot' or in extreme cases 'fixmbr'.Note that this step is recommended only if Windows is the only OS in use.

Suppose you are using Linux(I'll take Ubuntu as example but you can do it with almost all distros having live CDs) in dual booting with Windows and you want to correct your windows installation using the above procedure you will face some problems.When you insert the Windows CD into your drive and boot from it,your MBR(Master Boot Record) will be re-written as windows can't tolerate the existence of another OS with it.

Most Linux distros like Ubuntu use GRUB boot loader which is an intelligent boot-loader and can manage different Operating Systems simultaneously.The windows CD removes GRUB from the MBR.Now you need to reinstall GRUB in order to detect the installed Linux OS.You can do this by following these steps-

  • Boot form the Ubuntu live CD(other live CDs can also be used).
  • Go to System->Administration->Users and Groups.
  • Change the root password to anything of your choice.
  • Open the terminal or the console or in KDE language, Konsole
  • Type 'su',hit the return key and enter the password you just set.
  • Now type 'grub' and hit the return key.You will get a grub> prompt.
  • Type 'find /boot/grub/stage1' to find the partition which has grub installed.You will get back the address like (hd0,0) or as (hd0,1) it depends on the partition.If you get multiple results,don't worry you need just one as GRUB is really intelligent.If you have GRUB installed on 'hda3' or on 'sda3' on the first hard disk,the address returned will be (hd0,2)
  • Now type 'root (hd0,2)' or whatever applicable and hit the return key as usual.
  • Now you have reached the final step in which you have to install GRUB to your MBR.Type 'setup (hd0)' or whatever applicable in your case to install GRUB to the MBR of your hard drive.Note that 'hd0' represents your 1st hard drive and 'hd1' your second one and so on.In this step GRUB will be setup and it will also detect other operating systems.

You computer should boot without any problems now.Note that if you are using dual booting and have lost grub due to other reasons,I would suggest you to follow the same procedure.You should be thorough with the procedure for installing GRUB as you will need to do that every time the silly Windows fails to boot.

After reading this post I'm sure you would agree that Linux is far more superior to Windows as far as the boot-loader is concerned.If you have any other questions regarding reinstalling GRUB,you may leave a comment.

Subscribe RSS

Canonical URL by SEO No Duplicate WordPress Plugin