Re: "Recovery disk" question

From: Rich Rudnick (nickrud_at_verizon.net)
Date: 02/04/05

  • Next message: Colin J. Ingram: "Re: kernel? 2.4.x vs 2.6.x"
    To: debian-user@lists.debian.org
    Date: Thu, 03 Feb 2005 19:50:50 -0800
    
    

    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` )

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Colin J. Ingram: "Re: kernel? 2.4.x vs 2.6.x"