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 27th October 2019
sacerdos_daemonis's Avatar
sacerdos_daemonis sacerdos_daemonis is offline
Real Name: Will forever be a secret.
Spam Deminer
 
Join Date: Sep 2014
Posts: 244
Default Install image to which USB partition?

I apologise for this ridiculously simple question, but I want to ensure I do this correctly. (And further my mediocre knowledge.)

I want to write the install66.fs image to a USB stick that currently has OpenBSD 6.5 using FreeBSD. The stick shows up as:
Code:
$ ls /dev/da0*
/dev/da0   /dev/da0s1 /dev/da0s4
fdisk shows:
Code:
parameters extracted from in-core disklabel are:
cylinders=972 heads=255 sectors/track=63 (16065 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=972 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 239 (0xef),(EFI System Partition)
    start 64, size 960 (0 Meg), flag 0
	beg: cyl 1023/ head 255/ sector 63;
	end: cyl 1023/ head 255/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
sysid 166 (0xa6),(OpenBSD)
    start 1024, size 920512 (449 Meg), flag 80 (active)
	beg: cyl 1023/ head 255/ sector 63;
	end: cyl 1023/ head 255/ sector 63
Should the image be written to da0s4 leaving the boot partition intact or would that confuse the installer?
If written to da0s1 would all four partitions be replaced or would the resulting image be a mess?
Or should the drive be wiped clean before installing the image?

The last option would obviously work, but is it necessary?
Reply With Quote
  #2   (View Single Post)  
Old 27th October 2019
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 201
Default

I normally use dd in Linux to write images to pendrive, but you are writing an image file to disk, so you should write it to the whole disk, i.e. da0, in your case I believe.
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
  #3   (View Single Post)  
Old 27th October 2019
albator albator is offline
Shell Scout
 
Join Date: Jul 2011
Posts: 91
Default

If you use FreeBSD to create the installation disk:
https://www.freebsd.org/doc/en_US.IS...stall-pre.html
With OpenBSD:
https://www.openbsd.org/faq/faq4.html#MkInsMedia

As Keith said, you should use the whole disk (da0 in your example). So in both cases you will lose all data on the target disk.
Reply With Quote
  #4   (View Single Post)  
Old 27th October 2019
sacerdos_daemonis's Avatar
sacerdos_daemonis sacerdos_daemonis is offline
Real Name: Will forever be a secret.
Spam Deminer
 
Join Date: Sep 2014
Posts: 244
Default

I figured everything would probably need to be removed before writing the new image. Thanks for the clarification.
Reply With Quote
Reply

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Install OpenBSD in more than one disk partition? betweendayandnight OpenBSD Installation and Upgrading 6 17th July 2015 05:51 PM
Clean install of OpenBSD but keeping existing partition table daemonbak OpenBSD Installation and Upgrading 8 27th May 2015 10:39 PM
Preserving existing OpenBSD partition layout during a re-install J65nko Guides 3 17th February 2010 03:55 AM
Image Titles JMJ_coder Feedback and Suggestions 4 1st July 2008 05:40 AM
How to make an image from a DVD PatrickBaer FreeBSD General 11 25th May 2008 11:48 AM


All times are GMT. The time now is 02:37 AM.


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