Minggu, 08 November 2009

RESTORE MISSING LILO

Theory
2 boot loader that is widely used in the linux world:
1. lilo (linux loader)
2. grub (grand unified bootloader)

but the most recent distros use grub to boot loadernya. bootloader is used for operating systems in computers.

Cases
If we installed in the computer operating systems win and linux bootloader lose since been re-installed windows so how to restore..????
Solution
1. lilo
booting linux using a live cd, run terminal (gnome-terminal, konsole, xterm), login as root user and do it:

root: ~ # mount /dev/hda5 / mnt
root: ~ # chroot / mnt
root: ~ # lilo
root: ~ # exit
root: ~ # umount / mnt
root: ~ # reboot

note:
make sure the configuration of the linux partition in / etc / lilo.conf and still not have a partition that was changed foxes.

2. grub
after booting using the livecd, open a terminal (gnome-terminal, xterm, konsole) and As with the root user login, and do the command:

root: ~ # mount / dev/hda5 / mnt
root: ~ # mount - bind / proc / mnt / proc
root: ~ # mount - bind / dev / mnt / dev
root: ~ # chroot / mnt
root: ~ # grub-install / dev / hda
root: ~ # exit
root: ~ # umount / mnt / proc / mnt / dev / mnt
root: ~ # reboot

note:
make sure to configure / boot / grub / menu.lst contained in the / mnt (easy to mount) easy accordance with the existing partition and not modified before either the location or address of an existing partition.
linux root partition is in / dev/hda5 and address of the disk (mbr) in / dev / hda. make sure the kernel version of linux with a linux livecd in chroot same or higher version and is not recommended lower.

Links
http://en.wikipedia.org/wiki/LILO_ (boot_loader)
www.gnu.org/software/grub/

Seja o primeiro a comentar

Free Blog For IT People ©Template Blogger Green by Dicas Blogger.

TOPO