Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Upgraded, now my other distro not found at boot: SOLVED

Linux Kernel, Network, and Services configuration.
Message
Author
Dai_trying
Posts: 1101
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: Upgraded, now my other distro not found at boot

#21 Post by Dai_trying »

The fstab info I posted is for Debian, for Hyperbola you would need to modify its fstab to the following

Code: Select all

UUID=dbc9438f-1ad4-4fe9-9b82-ba8df589d81d / ext4 rw,relatime,errors=remount-ro   0 1
UUID=a56aa0ac-dcf0-4d43-b38b-8fac5979cfbc swap swap defaults 0 0

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Upgraded, now my other distro not found at boot

#22 Post by p.H »

bentHnau wrote: lsinitramfs /mnt/boot/initramfs-linux-libre-lts.img
All required kernel modules seem to be included (USB HID, SATA AHCI, ext4), although all in kernel/ instead of in their own usual paths as in Debian initramfs.
The SATA controller is set in AHCI mode in the BIOS/UEFI setup ?
Is the kernel image the same version ?

Code: Select all

file /mnt/boot/vmlinuz-linux-libre-lts
should report version 4.9.176-gnu-0-lts.
bentHnau wrote:Hyperbola is identified by a different UUID now because I played with gparted. Is that going to cause a problem?
Possibly. What did you do exactly ?
For now, the UUID in grub.cfg must match the current UUID of Hyperbola's root filesystem.

bentHnau
Posts: 148
Joined: 2014-01-07 01:43
Been thanked: 1 time

Re: Upgraded, now my other distro not found at boot

#23 Post by bentHnau »

p.H wrote: The SATA controller is set in AHCI mode in the BIOS/UEFI setup ?
Yes
Is the kernel image the same version ?

Code: Select all

file /mnt/boot/vmlinuz-linux-libre-lts
should report version 4.9.176-gnu-0-lts.
No.

Code: Select all

Linux kernel x86 boot executable bzImage, version 4.9.200-gnu-1-lts (builduser@eden_packages_autobuilder_gnu_plus_linux-libre) #1 SMP Mon Nov 11 , RO-rootFS, swap_dev 0x4, Normal VGA
bentHnau wrote:Hyperbola is identified by a different UUID now because I played with gparted. Is that going to cause a problem?
Possibly. What did you do exactly ?
I just right-clicked on /dev/sdb2 and chose "New UUID" from the menu. Since then, I've been typing in the new UUID whenever I try to boot Hyperbola.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Upgraded, now my other distro not found at boot

#24 Post by p.H »

The kernel image version is more recent than the kernel modules version in the initramfs. This explains why the initramfs cannot find the root filesystem and the keyboard does not work, as the kernel image cannot load kernel modules of a different version. I suspect that the initramfs was not rebuilt properly after a kernel upgrade.

Are there other vmlinuz or initramfs files in Hyperbola's /boot ?

Can you rebuild Hyperbola's initramfs ?

bentHnau
Posts: 148
Joined: 2014-01-07 01:43
Been thanked: 1 time

Re: Upgraded, now my other distro not found at boot

#25 Post by bentHnau »

p.H wrote:
Are there other vmlinuz or initramfs files in Hyperbola's /boot ?
Here is the contents of boot/

Code: Select all

config-linux-libre-lts	initramfs-linux-libre-lts-fallback.img	syslinux
grub			initramfs-linux-libre-lts.img		vmlinuz-linux-libre-lts
Can you rebuild Hyperbola's initramfs ?
Probably not since I don't even know what that means. I can look it up, but that sounds complicated.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Upgraded, now my other distro not found at boot

#26 Post by p.H »

In Debian with the default initramfs generator initramfs-tools you would simply run

Code: Select all

update-initramfs -u
or reinstall the current kernel with apt or so.

But I don't know about Hyperbola. You may need to search the documentation or seek help from the Hyperbola community.

EDIT : You can also check the kernel modules version in the fallback initramfs (boot/initramfs-linux-libre-lts-fallback.img) with lsinitramfs. If it matches the vmlinuz version, you can boot with this initramfs instead of the default one.

bentHnau
Posts: 148
Joined: 2014-01-07 01:43
Been thanked: 1 time

Re: Upgraded, now my other distro not found at boot

#27 Post by bentHnau »

p.H wrote: or reinstall the current kernel with apt or so.

But I don't know about Hyperbola. You may need to search the documentation or seek help from the Hyperbola community.
Reinstallation fixed the problem. I reinstalled it with

Code: Select all

sudo pacman -S linux
after chrooting into Hyperbola with arch-chroot (which is available in the Debian repo). Thank you.

User avatar
sunrat
Administrator
Administrator
Posts: 6476
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 118 times
Been thanked: 474 times

Re: Upgraded, now my other distro not found at boot: SOLVED

#28 Post by sunrat »

I suspect your problems may have been from doing the Hyperbola upgrades via chroot. Never heard of anyone doing that before. Maybe it should work, maybe it didn't.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Upgraded, now my other distro not found at boot: SOLVED

#29 Post by p.H »

Yes. I avoid doing system upgrades in a chroot.
Whatever happened, something went wrong when upgrading Hyperbola's kernel the first time.

Post Reply