On Fri, 20 Feb 2015 16:26:03 +0800
Bret Busby <bret.bu...@gmail.com> wrote:

> On 20/02/2015, Bret Busby <bret.bu...@gmail.com> wrote:
> > On 20/02/2015, Bob Proulx <b...@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?
> >
> >
> >
> > --
> > 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
> >
> > ....................................................
> >
> 
> 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.
> 
> 

Also, have you looked at this:

http://sourceforge.net/projects/boot-repair-cd/

?

Maybe it would be a simple way to fix it?

Petter

-- 
"I'm ionized"
"Are you sure?"
"I'm positive."

Attachment: pgpeOew78JXbg.pgp
Description: OpenPGP digital signature

Reply via email to