Sunday, August 23, 2009

Grub Boot Parameters

Hahaha... finally I back LOL
I have school starting tomorrow but i still feeling like blogging
Today: Inspired by my NEC laptop with broken keyboard
I got something from http://grumpymole.blogspot.com
How to edit grub boot parameter (for broken laptop)

A. Changing Boot Parameters Temporarily
When the PC boots up, you will see the Grub countdown, which is set to 3 seconds by default. Press "Esc" to intercept this countdown and go enter a Grub menu. Then

1. Press 'e' to start editing
2. Scroll down to the "kernel..." line. The is the line that tells Grub which kernel to boot with and the parameters to be passed to the kernel when it boots are placed at the end of this line
3. Press 'e' again to edit this line
4. Move to the end of the line. You will see any existing parameters and can add other new parameters to the end
5. Parameters are separated by spaces and are mostly either a single word (e.g. nolapic), or an equation (e.g. acpi=off)
6. Once you have added the parameter to the end of the line, press Enter to accept the editing
7. Then press 'b' to boot using that kernel and those parameters.

the grub parameter for my keyboard...: i8042.nokbd check out more here:
http://redsymbol.net/linux_boot_parameters/

B. Making Boot Parameter Changes Permanent

gksudo gedit /boot/grub/menu.lst
will edit this file in the Ubuntu gedit graphical text editor.

## ## End Default Options ##

title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid 645e8e00-aece-4483-82d7-e3922070015b
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=645e8e00-aece-4483-82d7-e3922070015b ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet

Add your parameters to the end of the line starting with "kernel...". This should be the same line that you would edit in the temporary change scenario above. Save the file and the change will survive a reboot.


Broken keyboard LOL

1 comment:

Anbin Andy said...

Glad to have you back! You should major in CS man! but then again, just because I like art doesn't mean I should major in it rite?