[04] Editing Grub2 menu entries manually

How to remove boot entries

    To remove extra operating system entry (say Linux Mint 12 installed on sda8) remove these lines from /boot/grub/grub.cfg file:
    menuentry "Linux Mint 12 32-bit, 3.0.0-12-generic (/dev/sda8) (on /dev/sda8)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos8)'
    search --no-floppy --fs-uuid --set=root 8d535868-a72d-4b53-93da-9e83e1d8b7f3
    linux /boot/vmlinuz-3.0.0-12-generic root=UUID=8d535868-a72d-4b53-93da-9e83e1d8b7f3 ro quiet splash
    vt.handoff=7
    initrd /boot/initrd.img-3.0.0-12-generic
    }




[03] Boot Parameters

Disable Framebuffer

    Some architectures use the kernel framebuffer to offer installation in a number of languages.
    If framebuffer causes a problem on your system you can disable the feature by the parameter fb=false.



[02] How do I add a kernel boot parameter?

To temporarily add a boot parameter to a kernel:
  1. Start your system and wait for the GRUB menu to show (if you don't see a GRUB menu, press and hold the left Shift key right after starting the system).
  2. Now highlight the kernel you want to use, and press the e key. You should be able to see and edit the commands associated with the highlighted kernel.
  3. Go down to the line starting with linux and add your parameter foo=bar to its end.
  4. Now press Ctrl + x to boot.


[01] Inside the Linux boot process

Extracting the MBR

    # dd if=/dev/hda of=mbr.bin bs=512 count=1
    # od -xa mbr.bin
    The dd command, which needs to be run from root, reads the first 512 bytes from /dev/hda (the first
    Integrated Drive Electronics, or IDE drive) and writes them to the mbr.bin file. The od command prints the
    binary file in hex and ASCII formats.