debian x86 install failed - bootloader-config

Help with issues regarding installation of Debian

Re: debian x86 install failed - bootloader-config

Postby ddyer » 2021-01-12 23:01

p.H wrote:There are no incantations or magic. The installer has a rescue mode which allows to reinstall the boot loader (but that will presumably fail until the failure cause is removed) or chroot into the installed system and do whatever it takes to install the boot loader.


In this case, installing the bootloader failed (reported in a different thread) due to some internal problem,
not due to an io failure. So sure, retrying the installation would fail, and I still have a nonbootable system,
presumably lacking only a bootloader.

Is there a procedure - something like - put an emergency bootloader on a stick, then use it to boot
the system from the main disk?
ddyer
 
Posts: 29
Joined: 2021-01-08 03:16

Re: debian x86 install failed - bootloader-config

Postby p.H » 2021-01-13 08:23

I'd rather boot the installer in rescue mode, chroot into the install system and investigate the bootloader installation failure.

With BIOS/legacy boot :
Make sure separated /boot and /usr are mounted, then
Code: Select all
grub-install --force /dev/<internalbootdisk>


With UEFI boot :
Make sure separated /boot, /boot/efi and /usr are mounted, then
Code: Select all
grub-install
efibootmgr
p.H
 
Posts: 1620
Joined: 2017-09-17 07:12

Re: debian x86 install failed - bootloader-config

Postby ddyer » 2021-01-13 15:53

p.H wrote:There are no incantations or magic. The installer has a rescue mode which allows to reinstall the boot loader (but that will presumably fail until the failure cause is removed)

The install, in keeping with the traditional unix philosophy, rates 1 out of 10 on the friendliness scale.
When the installer failed, it offers no information at all about the reason for the failure or likely
actions to take.
or chroot into the installed system and do whatever it takes to install the boot loader.


In the midst of the installer (not from the live CD), how can I chroot to anywhere?
ddyer
 
Posts: 29
Joined: 2021-01-08 03:16

Re: debian x86 install failed - bootloader-config

Postby Head_on_a_Stick » 2021-01-13 19:48

ddyer wrote:When the installer failed, it offers no information at all about the reason for the failure or likely
actions to take.

The error messages are on TTY4. I think there's also a log file somewhere.

ddyer wrote:In the midst of the installer (not from the live CD), how can I chroot to anywhere?

Use the rescue mode, as already indicated: https://www.debian.org/releases/stable/ ... 06.en.html
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13069
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: debian x86 install failed - bootloader-config

Postby ddyer » 2021-01-13 23:47

p.H wrote:I'd rather boot the installer in rescue mode, chroot into the install system and investigate the bootloader installation failure.

With BIOS/legacy boot :
Make sure separated /boot and /usr are mounted, then
Code: Select all
grub-install --force /dev/<internalbootdisk>


With UEFI boot :
Make sure separated /boot, /boot/efi and /usr are mounted, then
Code: Select all
grub-install
efibootmgr


That would be great if I could get to any kind of shell, which I can't. The failed install
leaves the main disk in a state where the native boot loader things nothing is there.

BTW, isn't there a way to run the install process WITHOUT formatting the disk and installing
a new boot loader? The default process doesn't encourage using a pattern that would
allow user data to be preserved when a new OS is being installed.
ddyer
 
Posts: 29
Joined: 2021-01-08 03:16

Re: debian x86 install failed - bootloader-config

Postby Head_on_a_Stick » 2021-01-14 11:48

ddyer wrote:That would be great if I could get to any kind of shell, which I can't.

So why can't you use the rescue mode then? And why do you keep ignoring suggestions that relate to it? Are you trolling?
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13069
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: debian x86 install failed - bootloader-config

Postby ddyer » 2021-01-14 18:27

Head_on_a_Stick wrote:
ddyer wrote:That would be great if I could get to any kind of shell, which I can't.

So why can't you use the rescue mode then? And why do you keep ignoring suggestions that relate to it? Are you trolling?


Maybe we're referring to different things as rescue mode. The rescue mode I have seen is one
of the boot options presented from the boot loader. Obviously, that's not available when the
boot loader hasn't been installed correctly.
ddyer
 
Posts: 29
Joined: 2021-01-08 03:16

Re: debian x86 install failed - bootloader-config

Postby Head_on_a_Stick » 2021-01-14 18:35

Read the link to the installation notes that I provided earlier, that explains how to use the rescue mode that is available from the ISO image.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13069
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: debian x86 install failed - bootloader-config

Postby ddyer » 2021-01-14 19:46

Here's the result of booting the current live cd, and running the install item from the
desktop. Note that no network is set up at any point up to this message. Also
note this is on an old x32 laptop.

https://drive.google.com/file/d/1WtuRoJ ... sp=sharing

and as you can see here, the file system is in some intermediate loading state
and there's no grub-install in the path and no apparent advice about what to
do next.

https://drive.google.com/file/d/1HfPUt7 ... sp=sharing
ddyer
 
Posts: 29
Joined: 2021-01-08 03:16

Re: debian x86 install failed - bootloader-config

Postby Head_on_a_Stick » 2021-01-14 19:51

Those files are not accessible for me and I won't turn on javascript for a Google site anyway. Perhaps consider uploading them to a pastebin that doesn't want to run random code on my machine.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13069
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: debian x86 install failed - bootloader-config

Postby ddyer » 2021-01-14 21:21

Head_on_a_Stick wrote:Those files are not accessible for me and I won't turn on javascript for a Google site anyway. Perhaps consider uploading them to a pastebin that doesn't want to run random code on my machine.


name one you like
ddyer
 
Posts: 29
Joined: 2021-01-08 03:16

Re: debian x86 install failed - bootloader-config

Postby mm3100 » 2021-01-14 23:44

mm3100
 
Posts: 45
Joined: 2020-10-21 21:39

Re: debian x86 install failed - bootloader-config

Postby ddyer » 2021-01-15 01:30

Pastebin useless, it won't let me upload an image unless I pay them.
Tiring of the chase, I just uploaded to my own site.

http://real-me.net/210114-1429-27.jpg
http://real-me.net/210114-1433-46.jpg
ddyer
 
Posts: 29
Joined: 2021-01-08 03:16

Re: debian x86 install failed - bootloader-config

Postby arzgi » 2021-01-15 15:28

ddyer wrote:Pastebin useless, it won't let me upload an image unless I pay them.


https://pastebin.com/faq#11a
Code: Select all
How many pastes can I create?
The short answer is: as many as you like.

There are however some limitations to fight off spammers.

Guests can create up to 10 new pastes per 24 hours.
Free members can create up to 20 new pastes per 24 hours.
PRO members can create up to 250 new pastes per 24 hours.

Further limits are:
Guest can create unlimited 'public' pastes, unlimited 'unlisted' pastes, but can't create 'private' pastes.
Free members can create unlimited 'public' pastes, 10 'unlisted' pastes, 10 'private' pastes.
PRO members can create unlimited 'public' pastes, unlimited 'unlisted' pastes, unlimited 'private' pastes.
arzgi
 
Posts: 701
Joined: 2008-02-21 17:03
Location: Finland

Re: debian x86 install failed - bootloader-config

Postby ddyer » 2021-01-15 17:14

On the same faq page

Can I post links & images?
We allow clickable links & images to be posted, but only by our PRO users. Reason is, to prevent abuse of this functionality. Via the Markdown language you can post images, links, make text big/small, include tables and much much more.
ddyer
 
Posts: 29
Joined: 2021-01-08 03:16

PreviousNext

Return to Installation

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable