![]() |
|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Hi,
I am planning to upgrade my OpenBSD version to the OpenBSD 6.1 latest version. When I try to install OpenBSD gave the error "cannot open cd0a:/etc/random.seed: No such file or directory" After the installation, OpenBSD did not boot and triggered the error " cannot open hd0a:/etc/random.seed: No such file or directory " After searching the internet, I just enabled the console output to com0 with the default port values, then the above problem solved. But since the output is directed to console as it should be, it's not displaying anything during the boot process ![]() I can access my OpenBSD machine via ssh. Can I get this thing sorted out so the above error is not triggered and the console output is displayed to the monitor? Thanks. |
|
||||
![]()
The "missing random.seed" message is unrelated to any installation or upgrade problems you may be having. The file is created/written by rc(8) during shutdown, and then read by rc() again during boot. It is one of many entropy feeds to arc4random(4). It is always missing on a new installation, because there was no prior shutdown to create it.
https://youtu.be/aWmLWx8ut20 (video) http://www.openbsd.org/papers/hackfe...dom/index.html (slides) |
|
|||
![]()
...and what is the version of OpenBSD you are beginning with?
|
|
|||
![]()
Hi jggimi & ocicat,
Sorry for the late reply. Thanks for the information Jggimi. I will try these videos and do a fresh installation. Thanks for your reply Ocicat, I'm upgrading my firewall from OpenBSD 5.3 to OpenBSD 6.1 Thanks & Regards, Amitha ![]() |
|
|||
![]()
The OpenBSD project only verifies the upgrade process through subsequent versions: 5.3 to 5.4, 5.4 to 5.5, 5.5 to 5.6, ..., all the way to 6.0 to 6.1. Skipping versions is not supported.
Unless you have lots of time & patience, it would be significantly quicker to simply reinstall directly to OpenBSD 6.1. Of course, you would need to backup all important files first. |
|
|||
![]()
Thanks for the information Ocicat. Yes I'm planning to do a fresh installation, sorry for the misleading word "upgrade".
I know this is bit difficult, since I have to do lot of learing to get the system up and running since so many new features and methods are in the 6.1 version. Thanks ![]() |
|
|||
![]()
Hi Jggimi,
Yes I could login to the OpenBSD firewall via ssh only after redirecting the console output to com0. If you don't do that as I mentioned in my starting thread those errors triggers without booting the OS. Yesterday I did a fresh installation after referring to Ociact's information. I did not directed the console output to com0, the only changes that I did was accepting the automatic partition layout and when it prompts to reboot after the installation I did not removed the CD from the cd player. It rebooted, then it booted from cd again and prompted for installation options. Then I selected the shell option, from shell I rebooted the machine for the second time and removed the CD. Finally it booted properly. ![]() Thanks |
|
|||
![]()
Hi,
Finally I fount the mistake that it would have been. I tried to create a custom partition layout several times it triggers this error. Then I tried the default partition layout for i386, THE ERROR DISAPPEARED. CONCLUTION, if i'm right: You have to follow the partition layot for the architecture but the partition sizes you can change Thanks ![]() |
|
||||
![]()
At OpenBSD 6.1-release, the OpenBSD install/upgrade scripts will create the random.seed file in /mnt/etc. /mnt is where the new root partition is mounted.
Code:
dd if=/dev/random of=/mnt/etc/random.seed bs=512 count=1 status=none Code:
random_seed() { # push the old seed into the kernel dd if=/var/db/host.random of=/dev/random bs=65536 count=1 status=none chmod 600 /var/db/host.random # ... and create a future seed dd if=/dev/random of=/var/db/host.random bs=65536 count=1 status=none # and create a seed file for the boot-loader dd if=/dev/random of=/etc/random.seed bs=512 count=1 status=none chmod 600 /etc/random.seed } |
|
||||
![]()
Thinking about this, if /etc is not included within the root partition, the bootloader will not find the /etc/random.seed file, and you will see this message. The bootloader reads the root partition for its configuration file (/etc/boot.conf), kernels, and the random seed file (/etc/random.seed).
TL;DR: do not deploy /etc in its own partition. |
|
|||
![]()
Hi Jggimi,
Thanks for the information. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
LibreOffice crashes when run without a file to open | girarde | OpenBSD Packages and Ports | 9 | 11th January 2017 03:57 AM |
roundcubemail-1.1.0p0 - unable to open database file | Valus | OpenBSD Packages and Ports | 2 | 15th March 2015 10:54 AM |
deleting a file or directory | divadgnol67 | OpenBSD General | 7 | 1st April 2011 03:31 PM |
Archiving a log file to a directory with the date incorporated in the new name | J65nko | Programming | 1 | 6th February 2010 03:02 AM |
Jails - mount: /usr/home: No such file or directory | chris | FreeBSD General | 6 | 6th August 2008 10:47 PM |