Problem with boot system after upgrade with script (solved)

Questions about SolydX and SolydK installation.
Deadlock
Posts: 4
Joined: 01 Dec 2019 16:52
Location: Germany

Problem with boot system after upgrade with script (solved)

Postby Deadlock » 01 Dec 2019 17:02

I updated Solydx 9 to Solydx 10 with the provided script.
Here is the upgrade log.

Everything seems to be fine except the boot. Every time I boot the system I run into the grub shell. At the moment I can only boot successfully the system with Super Grub2 Disk.

update-grub was successful but has no effect.
efibootmgr entry update was successful but has no effect.
Complete reinstall of grub was successful but has no effect.

What could I do else or what should I check else?

User avatar
escolar
Posts: 135
Joined: 23 Aug 2013 08:14
Location: Spain

Re: Problem with boot system after upgrade with script

Postby escolar » 01 Dec 2019 17:23

Same problem in one of my two systems with Solydxk when I upgraded with the script.

I solved it updating grub with a live usb system of other distribution (not sure, but maybe Sparky Linux)

Deadlock
Posts: 4
Joined: 01 Dec 2019 16:52
Location: Germany

Re: Problem with boot system after upgrade with script

Postby Deadlock » 01 Dec 2019 17:33

escolar wrote:
01 Dec 2019 17:23
Same problem in one of my two systems with Solydxk when I upgraded with the script.

I solved it updating grub with a live usb system of other distribution (not sure, but maybe Sparky Linux)
How you did it? Uninstall grub on your installed system and then boot into the other live linux and only install grub?

User avatar
ilu
Posts: 2541
Joined: 09 Oct 2013 12:45

Re: Problem with boot system after upgrade with script

Postby ilu » 01 Dec 2019 22:21

First check the EFI partition type (needs to be FAT32). If that is correct, grub might be pointing to a non-existing grubx64.efi (because the directory it is in has a wrong name) or to a non-existing root partition. There was a problem we fixed like 8 month ago (viewtopic.php?f=5&t=7469&p=69654) but if your system is older you might still see it.

Boot into the system by using the grub console as explained here: viewtopic.php?f=5&t=7649#p71156 and have a look the efibootmgr options (viewtopic.php?f=9&t=7468#p69652) and at this post: viewtopic.php?f=43&t=7565#p71316 for some more info about the problem.
See viewtopic.php?f=9&t=7468#p69642 about how to fix grub. I know I did but I can't tell you how exactly because I don't have an EFI system at hand atm.

If you don't manage post the output of

Code: Select all

bootinfoscript
ls -alR /boot/efi/
cat  /etc/default/grub
efibootmgr -d /dev/<your boot device>
I'm also reasonably sure that a reinstall will fix it if you prefer that.

User avatar
escolar
Posts: 135
Joined: 23 Aug 2013 08:14
Location: Spain

Re: Problem with boot system after upgrade with script

Postby escolar » 02 Dec 2019 20:58

Deadlock wrote:
01 Dec 2019 17:33

How you did it? Uninstall grub on your installed system and then boot into the other live linux and only install grub?
I don't remember exactly. I think I boot from usb and then in the console of the live system I run

Code: Select all

sudo update-grub
sudo grub-install /dev/sda
I think after reboot the Grub worked

User avatar
ilu
Posts: 2541
Joined: 09 Oct 2013 12:45

Re: Problem with boot system after upgrade with script

Postby ilu » 02 Dec 2019 22:11

It does not help when you do that on the live system. You need to either boot into the installed system using the grub console and then enter the commands or start the live system and change root into the installed one as explained in the tutorial.

Deadlock
Posts: 4
Joined: 01 Dec 2019 16:52
Location: Germany

Re: Problem with boot system after upgrade with script

Postby Deadlock » 05 Dec 2019 16:01

ilu wrote:
01 Dec 2019 22:21

If you don't manage post the output of

Code: Select all

bootinfoscript
ls -alR /boot/efi/
cat  /etc/default/grub
efibootmgr -d /dev/<your boot device>
Ok here the results. Especially bootinfoscript give me maybe a hint what is the problem. I don't know why is no bootloader on the disk, where the efi partion is and why is a windows bootloader on the disk where my home is located. I read now the other threads you mention and will try some of solutions there.

Code: Select all

ls -alR /boot/efi/
/boot/efi/:
insgesamt 5
drwxr-xr-x 3 root root  512 Jan  1  1970 .
drwxr-xr-x 4 root root 4096 Dez  5 16:22 ..
drwxr-xr-x 4 root root  512 Dez  5 16:22 EFI

/boot/efi/EFI:
insgesamt 2
drwxr-xr-x 4 root root 512 Dez  5 16:22 .
drwxr-xr-x 3 root root 512 Jan  1  1970 ..
drwxr-xr-x 3 root root 512 Dez  5 16:21 debian
drwxr-xr-x 2 root root 512 Dez  5 16:22 solydxk10

/boot/efi/EFI/debian:
insgesamt 75
drwxr-xr-x 3 root root   512 Dez  5 16:21 .
drwxr-xr-x 4 root root   512 Dez  5 16:22 ..
drwxr-xr-x 2 root root   512 Aug 17 19:23 fw
-rwxr-xr-x 1 root root 74960 Dez  1 16:04 fwupx64.efi

/boot/efi/EFI/debian/fw:
insgesamt 1
drwxr-xr-x 2 root root 512 Aug 17 19:23 .
drwxr-xr-x 3 root root 512 Dez  5 16:21 ..

/boot/efi/EFI/solydxk10:
insgesamt 5199
drwxr-xr-x 2 root root     512 Dez  5 16:22 .
drwxr-xr-x 4 root root     512 Dez  5 16:22 ..
-rwxr-xr-x 1 root root     108 Dez  5 16:24 BOOTX64.CSV
-rwxr-xr-x 1 root root 1206824 Dez  5 16:24 fbx64.efi
-rwxr-xr-x 1 root root     126 Dez  5 16:24 grub.cfg
-rwxr-xr-x 1 root root 1529200 Dez  5 16:24 grubx64.efi
-rwxr-xr-x 1 root root 1261192 Dez  5 16:24 mmx64.efi
-rwxr-xr-x 1 root root 1322936 Dez  5 16:24 shimx64.efi

Code: Select all

 cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -d -s 2>/dev/null || echo SolydXK`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_iommu=on iommu=pt"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

# Set theme
GRUB_THEME=/boot/grub/themes/solydx/theme.txt

Code: Select all

efibootmgr -d /dev/sde
BootCurrent: 000B
Timeout: 0 seconds
BootOrder: 0000,0001,0002,000A,0005,0006,0007
Boot0000* solydxk10
Boot0001* DTO UEFI USB Floppy/CD
Boot0002* DTO UEFI USB Hard Drive
Boot0005* CD/DVD Drive 
Boot0006* DTO Legacy USB Floppy/CD
Boot0007* Hard Drive
Boot000A* DTO UEFI ATAPI CD-ROM Drive
Attachments
bootscriptinfo.txt
(21.98 KiB) Downloaded 2 times

Deadlock
Posts: 4
Joined: 01 Dec 2019 16:52
Location: Germany

Re: Problem with boot system after upgrade with script

Postby Deadlock » 05 Dec 2019 17:46

Ok it seems this post was the solution. Now it boots without issues.

User avatar
ilu
Posts: 2541
Joined: 09 Oct 2013 12:45

Re: Problem with boot system after upgrade with script

Postby ilu » 06 Dec 2019 19:57

Glad you got it sorted!


Return to “Installation”

Who is online

Users browsing this forum: No registered users and 1 guest