|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
Relinking to create unique kernel... failed!
I installed Windows 7 on a second hard drive on my system. Since then when I try to boot OpenBSD normally, it sits at the boot prompt until I press enter and then it restarts the machine bringing me back to the boot prompt. The only way I can get OpenBSD to start is to boot bsd.sp.
Also when I run syspatch I get the message "Relinking to create unique kernel... failed!" What should I do to fix this? |
|
|||
Thanks for your help jggimi.
I don't have a boot.conf file. When it restarts the screen goes black like it has crashed. I will try rebooting again and watch it carefully to see if any messages show up. When I get it to boot from bsd.sp a warning I always see is / was not unmounted properly. How do I determine the available space for user share? What should I delete from there to free up space? Something else I noticed is there is no bsd.mp file. So perhaps it is trying to load it and it crashes because it isn't there? -rwx------ 2 root wheel 12.5M Feb 22 01:09 bsd -rwx------ 2 root wheel 12.5M Feb 22 01:09 bsd.booted -rwx------ 1 root wheel 12.5M Nov 26 10:33 bsd.sp -rwx------ 1 root wheel 12.6M Feb 21 23:42 obsd Also I am wondering if I should copy the obsd file over the bsd file. Perhaps the bsd file was corrupted. Edit: I could not read the message when the screen goes black when I try to boot bsd, it is too fast. I just tried booting from obsd and it works, I have multiprocessors working again. So I assume if I copy that over the bsd file it will load okay. Now I just have to figure out what is causing the relinking error. Last edited by Prevet; 2nd March 2018 at 01:32 PM. |
|
||||||
The default for architectures that have a boot> prompt is to wait 5 seconds for any keyboard input. If there is no keyboard input, the bootloader will then attempt to load the /bsd kernel from the the "a" partition.
Quote:
Quote:
Quote:
$ df -h will show the space in easy-to-understand KB/MB/GB/TB format.Quote:
Quote:
Quote:
|
|
|||
Thanks jggimi. The /obsd file also made the improper dismount message go away.
I just noticed a message telling me to read a file called relink.log. Quote:
|
|
|||
It doesn't look like it is full, though /usr only has 2G maximum and has used up 1G..
55% /usr 19% /usr/X11R6 29% /usr/local 0% /usr/obj 0% /usr/src |
|
|||
You either don't have /var/db/kernel.SHA256 or, because you were copying kernels around, it's out of sync.
Relinking won't happen if it doesn't find the expected kernel so a sha256 sum is kept to check against. Recreate the file as root: Code:
sha256 /bsd > /var/db/kernel.SHA256 |
|
||||
The source is not used to relink, but the object modules are, and these are included in the base fileset.
The script that runs kernel relinking is /usr/libexec/reorder_kernel. Within the -current version of this script, this test outcome and explanation is not in the -release version of the script. But it may be helpful to understanding the problem. In this script, the variable $SHA256 was previously set to /var/db/kernel.SHA256: Code:
if ! sha256 -C $SHA256 /bsd; then cat <<__EOF Failed to verify /bsd's checksum, therefore a randomly linked kernel (KARL) is not being built. KARL can be re-enabled for next boot by issuing as root: sha256 -h $SHA256 /bsd __EOF # Trigger ERR trap false fi Last edited by jggimi; 31st May 2018 at 10:15 AM. Reason: clarity, one typo |
|
||||
I will guess that you did not understand the use of the variable $SHA256 inside that script, and have replaced your /bsd kernel with a hash file.
To recover:
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Create OpenBSD guest for Linux KVM (Kernel-based Virtual Machine) with 'virt-install' | J65nko | Guides | 4 | 11th December 2014 04:30 AM |
issue with /tmp .. resizing failed .. how to nuke it and create a new one ? | daemonfowl | OpenBSD General | 8 | 20th May 2012 08:44 PM |
why does it fail to create drawable ? | daemonfowl | OpenBSD General | 4 | 11th May 2012 03:33 PM |
g4u -> create just one boot floppy | ccc | NetBSD General | 4 | 19th June 2011 04:46 PM |
Create ISO from Dump Files | revzalot | OpenBSD Installation and Upgrading | 3 | 2nd December 2010 08:49 PM |