Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #176790 > unrolled thread

Recovering from failure to install Grub

Started byRichard Owlett <rowlett@cloud85.net>
First post2017-01-17 21:20 +0100
Last post2017-01-18 12:50 +0100
Articles 7 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  Recovering from failure to install Grub Richard Owlett <rowlett@cloud85.net> - 2017-01-17 21:20 +0100
    Re: Recovering from failure to install Grub Hans <hans.ullrich@loop.de> - 2017-01-17 21:40 +0100
      Re: Recovering from failure to install Grub Richard Owlett <rowlett@cloud85.net> - 2017-01-17 22:00 +0100
        Re: Recovering from failure to install Grub Richard Owlett <rowlett@cloud85.net> - 2017-01-18 11:50 +0100
    Re: Recovering from failure to install Grub Brian <ad44@cityscape.co.uk> - 2017-01-18 01:00 +0100
      Re: Recovering from failure to install Grub Richard Owlett <rowlett@cloud85.net> - 2017-01-18 12:00 +0100
        Re: Recovering from failure to install Grub Brian <ad44@cityscape.co.uk> - 2017-01-18 12:50 +0100

#176790 — Recovering from failure to install Grub

FromRichard Owlett <rowlett@cloud85.net>
Date2017-01-17 21:20 +0100
SubjectRecovering from failure to install Grub
Message-ID<t0Iox-38E-9@gated-at.bofh.it>
I just installed Jessie to a USB flash drive.
Unfortunately I mistyped the name of the preseed.cfg file and ran 
the one which did not install grub to the target drive.
On a working Jessie machine I inserted the flash drive and then 
ran update-grub.
I was then able to boot the copy of Debian residing on the flash 
drive.
It appears to run properly and is now installing some packages 
that intentionally had not been installed by preseeding.

Looking for instructions for installing Grub to an existing drive 
I found
https://wiki.debian.org/Installation+Archive+USBStick?highlight=%28grub-install%29|%28jessie%29 
.

It was written to address a different situation.
It seems to say that all I have to do is run

   /usr/sbin/grub-install --boot-directory=<mount_point>/boot 
/dev/sdb

Is that correct for my situation?

TIA

[toc] | [next] | [standalone]


#176791

FromHans <hans.ullrich@loop.de>
Date2017-01-17 21:40 +0100
Message-ID<t0IHV-3fQ-33@gated-at.bofh.it>
In reply to#176790
Hi Richard,

try to boot from super-grub-disk by using its kernel. If your debian boots on 
the harddrive boots, run update-grub on the booted system. This should fix your 
harddrive. Super-grub-disk has also some options, to restore grub.

If this all fails, you can try the same way by using RIP-Livefile (aka Rescue-
is-possible livefile cd.)

These are my preferred rescue tools.

Good luck,

Hans

[toc] | [prev] | [next] | [standalone]


#176792

FromRichard Owlett <rowlett@cloud85.net>
Date2017-01-17 22:00 +0100
Message-ID<t0J1h-3nu-29@gated-at.bofh.it>
In reply to#176791
On 1/17/2017 2:37 PM, Hans wrote:
> Hi Richard,
>
> try to boot from super-grub-disk by using its kernel.


> If your debian boots on the harddrive boots, run update-grub on the booted system.
> This should fix your harddrive.

I had already done that. It added the image on the flash drive to 
the boot menu.
The image on the flash appears to run fine and is installing 
several packages I need for my current project.


>  Super-grub-disk has also some options, to restore grub.

I would not describe what has to be done a "restore grub" as grub 
had never been installed to the flash drive.

I'll dig thru the rescue disks I have to see which are available.

>
> If this all fails, you can try the same way by using RIP-Livefile (aka Rescue-
> is-possible livefile cd.)
>
> These are my preferred rescue tools.
>
> Good luck,
>
> Hans
>
>

Thanks

[toc] | [prev] | [next] | [standalone]


#176803

FromRichard Owlett <rowlett@cloud85.net>
Date2017-01-18 11:50 +0100
Message-ID<t0VYt-2Rb-1@gated-at.bofh.it>
In reply to#176792
On 1/17/2017 2:59 PM, Richard Owlett wrote:
> On 1/17/2017 2:37 PM, Hans wrote:
>>[snip]
>> If this all fails, you can try the same way by using
>> RIP-Livefile (aka Rescue-
>> is-possible livefile cd.)
>>

I didn't find a current link. Is it still available?

[toc] | [prev] | [next] | [standalone]


#176793

FromBrian <ad44@cityscape.co.uk>
Date2017-01-18 01:00 +0100
Message-ID<t0LPs-54F-29@gated-at.bofh.it>
In reply to#176790
On Tue 17 Jan 2017 at 14:19:11 -0600, Richard Owlett wrote:

> I just installed Jessie to a USB flash drive.
> Unfortunately I mistyped the name of the preseed.cfg file and ran the one
> which did not install grub to the target drive.
> On a working Jessie machine I inserted the flash drive and then ran
> update-grub.
> I was then able to boot the copy of Debian residing on the flash drive.
> It appears to run properly and is now installing some packages that
> intentionally had not been installed by preseeding.
> 
> Looking for instructions for installing Grub to an existing drive I found
> https://wiki.debian.org/Installation+Archive+USBStick?highlight=%28grub-install%29|%28jessie%29
> .
> 
> It was written to address a different situation.
> It seems to say that all I have to do is run
> 
>   /usr/sbin/grub-install --boot-directory=<mount_point>/boot /dev/sdb
> 
> Is that correct for my situation?

Yes.

-- 
Brian.

[toc] | [prev] | [next] | [standalone]


#176804

FromRichard Owlett <rowlett@cloud85.net>
Date2017-01-18 12:00 +0100
Message-ID<t0W8b-2X3-63@gated-at.bofh.it>
In reply to#176793
On 1/17/2017 5:58 PM, Brian wrote:
> On Tue 17 Jan 2017 at 14:19:11 -0600, Richard Owlett wrote:
>
>> I just installed Jessie to a USB flash drive.
>> Unfortunately I mistyped the name of the preseed.cfg file and ran the one
>> which did not install grub to the target drive.
>> On a working Jessie machine I inserted the flash drive and then ran
>> update-grub.
>> I was then able to boot the copy of Debian residing on the flash drive.
>> It appears to run properly and is now installing some packages that
>> intentionally had not been installed by preseeding.
>>
>> Looking for instructions for installing Grub to an existing drive I found
>> https://wiki.debian.org/Installation+Archive+USBStick?highlight=%28grub-install%29|%28jessie%29
>> .
>>
>> It was written to address a different situation.
>> It seems to say that all I have to do is run
>>
>>    /usr/sbin/grub-install --boot-directory=<mount_point>/boot /dev/sdb
>>
>> Is that correct for my situation?
>
> Yes.
>

So incomplete as to be *WRONG* !
There is enough of grub placed on the flash drive to get a grub> 
command line prompt.
<TAB> does list available commands but scrolls off screen too 
fast to be useful.

May I humbly beg a more useful answer?

[toc] | [prev] | [next] | [standalone]


#176805

FromBrian <ad44@cityscape.co.uk>
Date2017-01-18 12:50 +0100
Message-ID<t0WUy-3AT-21@gated-at.bofh.it>
In reply to#176804
On Wed 18 Jan 2017 at 04:55:05 -0600, Richard Owlett wrote:

> On 1/17/2017 5:58 PM, Brian wrote:
> >On Tue 17 Jan 2017 at 14:19:11 -0600, Richard Owlett wrote:
> >
> >>I just installed Jessie to a USB flash drive.
> >>Unfortunately I mistyped the name of the preseed.cfg file and ran the one
> >>which did not install grub to the target drive.
> >>On a working Jessie machine I inserted the flash drive and then ran
> >>update-grub.
> >>I was then able to boot the copy of Debian residing on the flash drive.
> >>It appears to run properly and is now installing some packages that
> >>intentionally had not been installed by preseeding.
> >>
> >>Looking for instructions for installing Grub to an existing drive I found
> >>https://wiki.debian.org/Installation+Archive+USBStick?highlight=%28grub-install%29|%28jessie%29
> >>.
> >>
> >>It was written to address a different situation.
> >>It seems to say that all I have to do is run
> >>
> >>   /usr/sbin/grub-install --boot-directory=<mount_point>/boot /dev/sdb
> >>
> >>Is that correct for my situation?
> >
> >Yes.
> 
> So incomplete as to be *WRONG* !
> There is enough of grub placed on the flash drive to get a grub> command
> line prompt.
> <TAB> does list available commands but scrolls off screen too fast to be
> useful.

At the prompt;

 set pager=1

> May I humbly beg a more useful answer?

Read grub-install(8) to check the correctness of the command.

-- 
Brian.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web