[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "Recovery disk" question



On Thu, 2005-02-03 at 20:09 -0500, Curt Howland wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> 
> Ok, I intend to use Knoppix as a recovery disk. I know it has tools 
> like fsck and such, but I have a procedural question:
> 
> How do I run "lilo" (if I need to, Cromm forbid) so that the MBR and 
> boot files on the hard drive are effected, not the CD?
> 
> I've never tried to boot from one disk and run "lilo" on the other, I 
> don't know how to change the perspective of "lilo" to know to look 
> at /dev/hda1 instead of whatever disk it booted from.
> 

My Seven Steps to Lilo Heaven

(Assuming sarge or later for nano)

1. Boot up knoppix (or any recovery disk) and open a shell.

2. Create a mount point ( `mkdir /repair` )

3. Mount your root partition ( `mount -text3 /dev/hdd2 /repair` for me )

   * If /boot and/or /etc are separate partitions, mount them also
	      ( /repair/[ boot|etc ] )

4. Switch to the hard disk installation ( `chroot /repair` )

5. Check for the correct boot files ( `ls /boot` )

6. Check the lilo configuration ( `nano /etc/lilo.conf` )

7. Write the MBR ( `lilo` )










Reply to: