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

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



On 20/02/2015, Bret Busby <bret.busby@gmail.com> wrote:
> On 20/02/2015, Bret Busby <bret.busby@gmail.com> wrote:
>> On 20/02/2015, Bob Proulx <bob@proulx.com> wrote:
>>> 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
>>>
>>
>> Hello.
>>
>> I had found a LiveCD rescue iso, and had tried to load that, in case
>> that would take me to a "restore grub" menu option, but that booted
>> into a command line, that showed that fdisk was not available, and
>> chroot was not available, so I tried to shut the system down, by using
>> <CTRL><ALT><DEL>, and that let me retrieve the DVD, and I was going to
>> try booting using an install disk iso, but, it booted into the botched
>> PC-BSD thing, and, holding down the <ESC> key, got me a screen that
>> had at the bottom,
>> "Press enter to boot the selected OS" (the botched PC-BSD, that simply
>> fails, was the only OS displayed as an option)"
>> " "e' to edit the commands before booting" - meaningless to me
>> "or "c' for a command line"
>> so I pressed "C", hoping to be able to use a "shutdown" command, so
>> that I could boot another computer, so as to download and write a
>> current install Debian iso image, and, when I pressed the "c", I got a
>> window that appeared, that is a GRUB thing, with the
>> "grub>" prompt.
>>
>> So, now, this has evovled to the new question; what do I type in at
>> the GRUB prompt, to make it search for, and, offer as boot options,
>> the pre-existing, installed, Ubuntu and Debian installations?
>>
>>

>>
>
> I have searched and found
> http://www.linux.com/learn/tutorials/776643-how-to-rescue-a-non-booting-grub-2-on-linux/
>
> and have done ls, that shows 13 GPT partitions, of which, I know (or
> believe)  that 3 are operating system installations partitions, so I
> apparently need to do an ls on each partition, to find which are the
> operating system partitions, then, I believe, enable one of the Linux
> partitions, using GRUB, then, boot into that partition, then, run, as
> root (so it would need to be the Debian partition, I think),
> # update-grub
> which would, I hope, restore GRUB as the multiple OS bootloader.
>
>

Well, I tried following the instructions at
http://www.linux.com/learn/tutorials/776643-how-to-rescue-a-non-booting-grub-2-on-linux/
combined with the instructions at
http://members.iinet.net/~herman546/p20/GRUB2%20CLI%20Mode%20Commands.html
and, after some errors being displayed, it took me into
(initramfs)
with which, I have no idea what to do.


-- 
Bret Busby
Armadale
West Australia
..............

"So once you do know what the question actually is,
 you'll know what the answer means."
- Deep Thought,
 Chapter 28 of Book 1 of
 "The Hitchhiker's Guide to the Galaxy:
 A Trilogy In Four Parts",
 written by Douglas Adams,
 published by Pan Books, 1992

....................................................


Reply to: