|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|
|||
Openbsd upgrade 6.6->6.7 first startup error
Hello all!
I have a little problem with an upgrade. I made a sysupgrade from 6.6->6.7. I did this a few times already (followed the guidelines written in the upgrade page on openbsd.org) and it was always a success. But on one machine I got the following after running the upgrade from OpenBSD 6.6 to 6.7. The upgrade was ok but after the restart it writes: --------------- root on sd0a (1bc.....532.a) swap on sd0b dump on sd0b swapctl: 1bc......532.b: no such file or directory Auto boot .... starting system checks. Can't open 1bc.....532.a: No such file or directory CAN'T CHECK FILE SYSTEM. 1bc.....532.a: UNEXPECTED INCONSISTENCY: RUN fsck_ffs MANUALLY. Automatic file system check failed: help! ------------ After this I log into shell and try to fix the problem.fsck_ffs Checked /etc/fstab: 1bc.....532.b none swap sw 1bc.....532.a / ffs rw,wxallowed 1 1 in /dev: sd0l sd0m sd0n sd0o sd0p I can see the system as "root_device" now with "df" mounted on / with only read rights (I think this is default and ok.) I dont know what should I write for fsck_ffs to check. sd0a, sd0b does not exist, tried sd0l-p, no good either. The writen (1bc......532.a, 1bc......532.b) I could not find anywhere, -p is not enough and fsck_ffs waits for a /dev/**** to check as far as i can tell, but correct me if im wrong. The operating system is OpenBSD 6.7 for sure, upgrade was ok. I searched for fsck_ffs and i found a few pages that contained helpful info but sadly I could not find anything that worked. If anyone has any solutions ideas are all welcome Thy in advance Last edited by SimpL; 8th September 2021 at 12:41 PM. |
|
|||
Quote:
I could start bsd.rd and tried to make the mount, but it was not successful.... mount /dev/sd0a /mnt[/cmd no such file or directory. In dev I got multiple things but no sd0 anything after ram drive starts. I got: cd0a,c fd0a,b,c,i rcd0a,c rd0a,c rfd0a,b,c,i rrd0a,c rwd0a-p wd0a-p I thought that its wd0a-p but all I got was no such file/dir or cant open if I tried it with fsck_ffs and mount. Tried rd0a and rd0c. With rd0a fsck would not run, and rd0c was "/" last (fsck_ffs ran and wrote this...) so I ran fsck_ffs /dev/rd0c I pressed y to clean it. Everything ok and restarted. Did not work. Same error same screen. Reboot-> bsd.rd -> cd /dev -> ls -> I found there is MAKEDEV, so because i could not run it with the mount commands took a chance and run it from /dev -> failed, wrote that it could not do everything and failed. Wrote "ls" again AND saw that there is and sd0a!!!! So after that I could make the mount, and the commands you wrote jggimi, ran MAKEDEV from the mounted /mnt/dev, (success) and made a restart. WEEEEELLLLL..... It WORKED! Im currently running pkg_add -u && syspatch so that the 6.7 would be up to date and will restart and after that ill try to run the sysupgrade to 6.8, hope that it will clean itself after the patches. Thank you very much jggimi! and jmccue. Not 100% sure if the fsck_ffs did anything...... update got a message to the terminal: reorder_kernel: failed -- see: /usr/share/relink/kernel/GENERIC/relink.log cat /usr/share/relink/kernel/GENERIC/relink.log: (SHA256) /bsd: FAILED 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 /var/db/kernel.SHA256 /bsd The syspatch could not relink kernel so i ran it manualy: /usr/libexec/reorder_kernel -> reboot Kernel still failed. sha256 -h /var/db/kernel.SHA256 /bsd reboot Kernel AOK! 6.7 stable and updated. Last edited by SimpL; 13th September 2021 at 01:38 PM. |
|
||||
One more item of note. The 6.6->6.7 Upgrade Guide stated:
|
|
|||
Quote:
|
|
|||
I do not know your situation, but with either 6.9 or 6.8, OpenBSD File System now defaults to ffs2. That gives you a 2038 compliant File System.
If /usr space mentioned by jggimi is an issue for you, you may want to consider doing a full install of 6.9 to move to ffs2. EDIT: was curious, did a search, looks like 6.7 the default changed undeadly.org/ Last edited by jmccue; 9th September 2021 at 07:39 PM. Reason: grammer |
|
||||
I wouldn't worry about kernel relinking at this point. The failure could have been due to an early reboot while relinking was still in progress, as it runs in the background. Once you are fully upgraded and running, if the problem recurs you can look to corrective actions at that time.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Boot error ERR M after snapshot upgrade | acampbell | OpenBSD Installation and Upgrading | 19 | 24th September 2016 09:17 PM |
Apache2 on startup OpenBsd 5.6 | morophla | OpenBSD Packages and Ports | 2 | 21st April 2015 03:39 AM |
post-upgrade error | library pthread.13.3 not found | daemonfowl | OpenBSD Installation and Upgrading | 6 | 29th March 2012 04:31 PM |
upgrade installworld error | carpman | FreeBSD Installation and Upgrading | 11 | 8th February 2009 05:36 PM |
freebsd 7.1 upgrade buildworld error | map7 | FreeBSD Installation and Upgrading | 9 | 30th October 2008 06:54 PM |