DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 9th January 2022
globetrotterdk globetrotterdk is offline
New User
 
Join Date: Jan 2022
Posts: 3
Default (Solved) install70.img sha256sum AWOL?

Completely new to any BSD flavor. Just downloaded the amd64 version of OpenBSD install70.img from the website and ran sha256sum as per the instructions. However, as far as I can see, there is no available sha256sum entry:

Code:
 $ sha256sum -c install70.img
sha256sum: BOOTX64.EFI: No such file or directory
BOOTX64.EFI: FAILED open or read
sha256sum: BUILDINFO: No such file or directory
BUILDINFO: FAILED open or read
sha256sum: INSTALL.amd64: No such file or directory
INSTALL.amd64: FAILED open or read
sha256sum: base70.tgz: No such file or directory
base70.tgz: FAILED open or read
sha256sum: bsd: No such file or directory
bsd: FAILED open or read
sha256sum: bsd.mp: No such file or directory
bsd.mp: FAILED open or read
sha256sum: bsd.rd: No such file or directory
bsd.rd: FAILED open or read
sha256sum: cd70.iso: No such file or directory
cd70.iso: FAILED open or read
sha256sum: cdboot: No such file or directory
cdboot: FAILED open or read
sha256sum: cdbr: No such file or directory
cdbr: FAILED open or read
sha256sum: comp70.tgz: No such file or directory
comp70.tgz: FAILED open or read
sha256sum: floppy70.img: No such file or directory
floppy70.img: FAILED open or read
sha256sum: game70.tgz: No such file or directory
game70.tgz: FAILED open or read
sha256sum: man70.tgz: No such file or directory
man70.tgz: FAILED open or read
sha256sum: miniroot70.img: No such file or directory
miniroot70.img: FAILED open or read
sha256sum: pxeboot: No such file or directory
pxeboot: FAILED open or read
sha256sum: xbase70.tgz: No such file or directory
xbase70.tgz: FAILED open or read
sha256sum: xfont70.tgz: No such file or directory
xfont70.tgz: FAILED open or read
sha256sum: xserv70.tgz: No such file or directory
xserv70.tgz: FAILED open or read
sha256sum: xshare70.tgz: No such file or directory
xshare70.tgz: FAILED open or read
sha256sum: WARNING: 1979292 lines are improperly formatted
sha256sum: WARNING: 20 listed files could not be read
Is my understanding correct? I downloaded the image file and ran the sha256sum on Q4OS Gemini, a Debian 11 derivative.

Last edited by globetrotterdk; 10th January 2022 at 12:53 PM.
Reply With Quote
  #2   (View Single Post)  
Old 9th January 2022
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

Hello and welcome to the forum.

It appears you haven't followed (and adapted) the instructions in the FAQ fully.

Quote:
Originally Posted by FAQ
An SHA256 file containing checksums can be found in the same directory as the installation files. You can confirm that none of the downloaded files were mangled in transit using the sha256(1) command.

$ sha256 -C SHA256 miniroot*.img
(SHA256) miniroot70.img: OK
So, you need to get the file SHA256 from the mirror as well. For example it may be in the directory
https://cdn.openbsd.org/pub/OpenBSD/7.0/amd64/

Then you can check the install70.img file, BUT the command given above is for the OpenBSD version of the sha256sum command, while you want to do it on Linux (having no OpenBSD install to do it on yet). So you could run:

$ sha256sum -c SHA256

This references the checksum file, SHA256, and tries to verify all files listed in it. It should show that install70.img is good, and it should give a warning for all the other files that aren't present. E.g., output may look like this:

Quote:
...
sha256sum: game70.tgz: No such file or directory
game70.tgz: FAILED open or read
install70.img: OK
sha256sum: install70.iso: No such file or directory
install70.iso: FAILED open or read
...
A cleaner way might be

$ grep install70.img SHA256 | sha256sum -c

Or, coming back to the FAQ:

Quote:
Or, if you're using an OS with the GNU coreutils:
$ sha256sum -c --ignore-missing SHA256

miniroot70.img: OK

Last edited by IdOp; 9th January 2022 at 09:47 PM.
Reply With Quote
Reply

Tags
sha256

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:09 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick