Boot loaders

Contents

Boot loader is the first software program that runs when a computer starts. It is responsible for loading and transferring control to the operating system kernel software.

Grub

  • Map devices:

    grub> map (hd0) (hd1)
    grub> map (hd1) (hd0)

    A grub entry with device map should looks like:

    title Windows 7
        rootnoverify (hd0,0)
        map (hd0) (hd1)
        map (hd1) (hd0)
        makeactive
        chainloader +1

    Or you create file device.map with contents:

    (hd0)     /dev/sda
    (hd1)     /dev/sdb

    And then:

    # grub --device-map=device.map

Bootloaders (last edited 2010-03-09 03:42:33 by ZhigangWang)