LPI Exam Questions

where. You boot the cd, mount your screwed linux installation on /mnt and issue the following comman

You did it again! You installed a new kernel, overwriting the old kernel, and forgot to run lilo. Now your system doesn’t boot anymore. Luckily, you have an old Knoppix cd lying around somewhere. You boot the cd, mount your screwed linux installation on /mnt and issue the following command to fix things: (choose the best 2 answers)

A.
/sbin/lilo -b /dev/hda -r /mnt

B.
/sbin/lilo -b /dev/hda

C.
/sbin/lilo -b /dev/hda -C /etc/lilo.conf

D.
/sbin/lilo -b /dev/hda -C /mnt/etc/lilo.conf

Explanation:
lilo -C config-file
lilo reads its instructions about what files to map from its config file, by default /etc/lilo.conf. This option can be used to specify a non-default config file.

lilo -r root-directory
Before doing anything else, do a chroot to the indicated directory. Used for repairing a setup from a boot floppy.

lilo -b bootdev boot=bootdev