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

Re: Question about GRUB recovery using Debian 7.x LiveCD



Bret Busby wrote:
> The Debian 7.60 LXDE LiveCD does not have an option to boot into rescue mode.

You could always download the standard debian-installer and use that
to boot rescue mode.  It is a very good option.

However if you have a livecd and you say you do then that should be
enough to do what you need.  Simply chroot into your system and then
use it to repair your bootloader.

The basic process goes like this.

* Boot a livecd image.
* Mount the target system to repair.

    mkdir /target
    mount /dev/sda5 /target
    mount /dev/sda1 /target/boot
    chroot /target /bin/bash
    grub-install /dev/sda
    exit
    shutdown -r now

You will need to adapt it to your system environment.  Your device
paths will be uniquely yours.  This is just an example of the overall
process to give you the idea of the flow.  The chroot stacks a shell
logged into the target environment.  Once inside that environment then
you have access to the system commands to repair grub.  You can
apt-get install additional software.  You can fix things.

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: