SliTaz SliTaz Forum

You are not logged in.

#1 2018-02-21 21:31:47

lm2
Member
Registered: 2017-02-16
Posts: 155

next killed grub

hi

just tried to install next on a laptop

so two things :

with the web interface, the install (the first button) never goes ahead, it's like a refresh.

with the command line, it failed to install properly; with the grub installation asked, it just doesnt success to create a new grub one.

i did it selecting ext4 as / filesystem.

but here, an hour i'm trying to install next on the laptop, it just doesnt want to.

Offline

#2 2018-02-22 10:46:41

lm2
Member
Registered: 2017-02-16
Posts: 155

Re: next killed grub

so here, just tried with liveusb

on next of 30th, slitaz web installer first button just refresh the page.

on next of 15th, slitaz web installer doesnt launch at all.

so here i have a laptop who cannot just boot, cause grub have been killed by next installation attempt.

so i'm in a deep sh..

Offline

#3 2018-02-22 10:51:47

lm2
Member
Registered: 2017-02-16
Posts: 155

Re: next killed grub

tthere is no grub-installer on the iso..

this is an emergency case, the computer just cannot boot on grub..

Offline

#4 2018-02-22 10:59:12

lm2
Member
Registered: 2017-02-16
Posts: 155

Re: next killed grub

and it's useless to install slitaz5, because it cannot bring me a proper display one.

Offline

#5 2018-02-22 20:37:16

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: next killed grub

ceel@next:~$ tazpkg info grub

TazPkg information
================================================================================
Package    : grub
State      : mirrored package
Version    : 0.97
Category   : base-system
Short desc : GRUB boot loader.
Web site   : http://www.gnu.org/software/grub/
Size       : 132K/516K
================================================================================

ceel@next:~$ tazpkg info grub2

TazPkg information
================================================================================
Package    : grub2
State      : mirrored package
Version    : 2.02
Category   : base-system
Short desc : GRUB2 boot loader
Depends    : zlib freetype ncurses libusb-compat grep libusb libdevmapper
Web site   : http://www.gnu.org/software/grub/
Size       : 4.4M/30.9M
================================================================================

ceel@next:~$ tazpkg info grub4dos

TazPkg information
================================================================================
Package    : grub4dos
State      : mirrored package
Version    : 0.4.4
Category   : system-tools
Short desc : Some enhancments of grub boot loader.
Web site   : https://gna.org/projects/grub4dos/
Size       : 248K/288K
================================================================================

ceel@next:~$
Maybe all your problems are just because no Grub is installed...

In this case

[c]tazpkg -gi <your_favorite_grub>[/c]

is probably the solution smile

Offline

#6 2018-02-23 02:27:19

lm2
Member
Registered: 2017-02-16
Posts: 155

Re: next killed grub

mount /dev/sda9 /media/flash

(where sda9 is my NEXT / install)

grub-install --root-directory=/media/flash /dev/sda9

and

grub-install --root-directory=/media/flash /dev/sda

give the same :

root@slitaz:/home/tux# grub-install --root-directory=/media/flash /dev/sda

cmp: EOF on /tmp/grub-install.img.7j727o

cmp: EOF on /tmp/grub-install.img.7j727o

cmp: EOF on /tmp/grub-install.img.7j727o

cmp: EOF on /tmp/grub-install.img.7j727o

cmp: EOF on /tmp/grub-install.img.7j727o

The file /media/flash/boot/grub/stage1 not read correctly.

Offline

#7 2018-02-28 18:22:36

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: next killed grub

next killed grub

I don't think so.

Configuration #1: Next installed on a USB media ext4 formated.

[*]Installation of the boot loader from Next:

Grub2

[c]# grub-install /dev/sdb[/c]

or

[c]# grub-install --root-directory=/mnt /dev/sdb

Installing for i386-pc platform.

grub-install: warning: your embedding area is unusually small.  core.img won't fit in it..

grub-install: error: embedding is not possible, but this is required for cross-disk install.[/c]

I've repeated this step on a device with Extlinux already installed. After grub-install failed, nothing has been written on the device and it still found Extlinux

[*]Grub 0.97

[c]# grub-install --root-directory=/mnt /dev/sdb

Probing devices to guess BIOS drives. This may take a long time.

The file /mnt/boot/grub/stage1 not read correctly.[/c]

[*]Grub4dos

[c]# grub-install --root-directory=/mnt /dev/sdb

Probing devices to guess BIOS drives. This may take a long time.

cmp: EOF on /tmp/grub-install.img.RyvLNJ

cmp: EOF on /tmp/grub-install.img.RyvLNJ

cmp: EOF on /tmp/grub-install.img.RyvLNJ

cmp: EOF on /tmp/grub-install.img.RyvLNJ

cmp: EOF on /tmp/grub-install.img.RyvLNJ

The file /mnt/boot/grub/stage1 not read correctly.[/c]

[*]Extlinux

[c]# extlinux --install /mnt/boot/extlinux

/mnt/boot/extlinux is device /dev/sdb1[/c]

At boot:

[c]SYSLINUX 4.06 EDD 0x5a018c43 Copyright (C) 1994-2012 H. Peter Anvin et al

N#em f _[/c]

[*]Installation of the boot loader from Rolling:

Grub2

[c]# grub-install /dev/sdb

Installing for i386-pc platform.

/proc/devices: No entry for device-mapper found

/proc/devices: No entry for device-mapper found

/proc/devices: No entry for device-mapper found

grub-install: warning: your embedding area is unusually small.  core.img won't fit in it..

grub-install: error: embedding is not possible, but this is required for cross-disk install.[/c]

[*]Grub 0.97

[c]# grub-install --root-directory=/mnt /dev/sdb

Probing devices to guess BIOS drives. This may take a long time.

The file /mnt/boot/grub/stage1 not read correctly.[/c]

[*]Grub4dos

[c]# grub-install --root-directory=/mnt /dev/sdb

Probing devices to guess BIOS drives. This may take a long time.

cmp: EOF on /tmp/grub-install.img.tetF0v

cmp: EOF on /tmp/grub-install.img.tetF0v

cmp: EOF on /tmp/grub-install.img.tetF0v

cmp: EOF on /tmp/grub-install.img.tetF0v

cmp: EOF on /tmp/grub-install.img.tetF0v

The file /mnt/boot/grub/stage1 not read correctly.[/c]

[*]Extlinux

At boot:

[c]SYSLINUX 4.05 EDD 2011-12-09 Copyright (C) 1994-2011 H. Peter Anvin et al

ERROR: No configuration file found

No DEFAULT or UI configuration directive found!

boot:_[/c]

(of course /boot/extlinux/exlinux.conf exists)

Configuration #2: Next installed on a USB media ext3 formated.

[*]Installation of the boot loader from Next:

Grub2

[c]# grub-install /dev/sdb

Installing for i386-pc platform.

grub-install: warning: your embedding area is unusually small.  core.img won't fit in it..

grub-install: error: embedding is not possible, but this is required for cross-disk install.[/c]

[*]Grub 0.97,Grub4dos and Extlinux

Work.

The problem is neither Next/Rolling nor the boot loader; it is linked to EXT4. Maybe it is possible that something is missing in the SLiTaz's packages?

Concerning Grub2, the problem can be different:

[c]warning: your embedding area is unusually small.  core.img won't fit in it..[/c]

The first sector can be to small on some media; modifying the geometry at formatting can solve (see also https://wiki.gentoo.org/wiki/GRUB2/Troubleshooting#grub-install:_embedding_area_is_unusually_small). I didn't try it.

Another solution when EXT4 is required: create a small and specific EXT3 partition for the boot loader. I use a similar way: my boot loader is installed on my separate /home partition. I never meet boot loader problems. I can install and re-install; just have sometimes to adapt the configuration file.

Offline

#8 2018-03-01 03:12:13

aledie
Member
Registered: 2018-02-21
Posts: 58

Re: next killed grub

Another wiki where the topic with embedding is mentioned, and similar solution with creating a small 1 MiB partition mentioned by Ceel. It's long, search keywords 'embedd', '1 MiB':

https://wiki.archlinux.org/index.php/GRUB

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.021 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]