HOW TO Get Your Linux Bootloader Back, For both LILO & GRUB users
Posted by
sudhirmangla July 4, 2008
This guide shows HOW TO Get Your Linux Bootloader Back, For both LILO & GRUB users:
GRUB
- Boot into the first CD
- Type linux rescue when asked what to boot.
- After you have chosen Language and Keyboard layout, you are asked if you want to mount your harddisk system. Say yes to this.
- Now you system is mounted as /mnt/sysimage. Say ‘OK’. Now type: chroot /mnt/sysimage. This will make you run on your already installed system, instead of the CD-ROM
- Type /sbin/grub-install /dev/hda (change hda to sda if you’re using an SATA hard drive)
LILO
- Boot into the first CD
- Type linux rescue when asked what to boot.
- After you have chosen Language and Keyboard layout, you are asked if you want to mount your harddisk system. Say yes to this.
- Now you system is mounted as /mnt/sysimage. Say ‘OK’. Now type: chroot /mnt/sysimage. This will make you run on your already installed system, instead of the CD-ROM. Now you can edit /etc/lilo.conf if something was wrong (vi /etc/lilo.conf and run lilo), or if you need to reinstall LILO just type lilo. The LILO installation process should now run.
This may be different for different distros and how you may have your system setup. I do not issue any guarantees with this HOWTO.
- Linux Vocabulary to clear your doubts
- How the kernel, OS and GUI are layered in Linux
- Linux File System Overview, a very basic look
- BSD or GPL: Choosing an open source license
- List of Killer Applications for Linux
Categories : Linux
Got something to say?
















