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 11th September 2022
vdavi81 vdavi81 is offline
New User
 
Join Date: Sep 2022
Posts: 5
Default DUAL BOOT OPENBSD WINDOWS 11

Hi,
I'm new of this Forum and I'm a beginner of OpenBSD. I'm trying to install OpenBSD in my new laptop with Windows 11 and GPT partition already present,
I would like to Select between Win 11 Or BSB every times I turn on my laptop.
I red that I is better to install OpenBSD using several different partitions.
I downloded install71 immage and I wrote that on my USB key.
What I have to do to mantein WIN11 and install OpenBSD, I think to create every partitions using GpartedLive, after that I can run install71 YSB key.. Ok and later??? What I ahev to do to finish my procedure.

P.S. If somebody has a better way to realize that procedure, for me I would be great.
"I'm apologize for my eventualy English error."
Reply With Quote
  #2   (View Single Post)  
Old 11th September 2022
bsd-keith bsd-keith is online now
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 344
Default

Windows doesn't normally play nice dual booting these days, I've heard, so maybe try using FuguIta live to see if it (OpenBSD) will work OK on your laptop, first.

https://fuguita.org/
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
  #3   (View Single Post)  
Old 11th September 2022
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 461
Default

The FAQ shows how to use bcdedit in Windows to create a menu entry for OpenBSD:

https://www.openbsd.org/faq/faq4.html#Multibooting
__________________
Are you infected with Wetiko?
Reply With Quote
  #4   (View Single Post)  
Old 11th September 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Quote:
Originally Posted by Head_on_a_Stick View Post
The FAQ shows how to use bcdedit in Windows to create a menu entry for OpenBSD...
That's for MBR/PBR. vdavi81 has a GPT configuration. The FAQ states, "rEFInd is reported to usually work. GRUB is reported to usually fail. In either case, you are completely on your own."

I use GPT/EFI and multiboot with Win10, but I simplify -- each OS is booted from its own unique disk drive.

Last edited by jggimi; 11th September 2022 at 04:24 PM. Reason: clarity
Reply With Quote
  #5   (View Single Post)  
Old 11th September 2022
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 461
Default

^ Oops. Thanks for the correction.

This should work for a UEFI system as long as OpenBSD & Windows share the same EFI system partition:

First run this command from an Administrator prompt:
Code:
bcdedit /create /d "OpenBSD" {bootmgr}
^ That should return a GUID for the new entry to which will be referred as $guid hereafter.

Now run
Code:
bcdedit /set {$guid} device partition=S:
bcdedit /set {$guid} path \boot\efi\bootx64.efi
bcdedit /displayorder {$guid} /addlast
I can't actually test this though so if somebody could confirm it works I'll see if I can add it to the FAQ.
__________________
Are you infected with Wetiko?

Last edited by Head_on_a_Stick; 11th September 2022 at 04:45 PM. Reason: Grammer is just something that happens to other people.
Reply With Quote
  #6   (View Single Post)  
Old 11th September 2022
vdavi81 vdavi81 is offline
New User
 
Join Date: Sep 2022
Posts: 5
Default

Ok. I knew, I have to set BCD Windows bootmanager. I have To understant my sdd disk is 512 GB I would like to use more than half, I think to use 280 GB.
With, Gparted is very Easy to create 280 GB non-parted space.
To have, the good OpenBSD installment, How many partition I have to create?
I think, sure:
/ ... root
/boot .. boot
swap .. swap
...
And?
I have 8G of DDR4 ram, I think 4G for swap Is enought?
Then, Wich filesystem type, Do you suggest me?
It's Ok Gparted to create partition? or better use disklabel?
Reply With Quote
  #7   (View Single Post)  
Old 12th September 2022
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 461
Default

I haven't used the installer for a while but I'm pretty sure it will offer to make use of the largest free space on the disk. Let the installer format the partition, always accept the defaults unless you know better.

I always create a single OpenBSD partition on the disk before running the installer by using GPT fdisk, which is available for Windows or Linux. A single partition of type 'a600' is all that is needed.

OpenBSD will create it's own swap, no need to make one for it.

Also relevant: https://www.openbsd.org/faq/faq4.html#Partitioning
Reply With Quote
  #8   (View Single Post)  
Old 12th September 2022
vdavi81 vdavi81 is offline
New User
 
Join Date: Sep 2022
Posts: 5
Default

I created the parttions using installattion tool, It is ok.

The problem is that I didn't copied sets on my usb key.

I need to get a insatallation image, with sets. And I need a tool on Windows 11 to write the image on USB key, to have usb install key.

Somebody can help me. I would downloded the img by OpenBSD official website.
Reply With Quote
  #9   (View Single Post)  
Old 13th September 2022
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

Under Windows you can use Win32 Disk Imager to write an the install image to an USB key.
See https://sourceforge.net/projects/win32diskimager/
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Old 13th September 2022
vdavi81 vdavi81 is offline
New User
 
Join Date: Sep 2022
Posts: 5
Default

I already create my USB bootable key, but I need to download sets...
Reply With Quote
Old 13th September 2022
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

Why do you need to download sets?
Quote:
Originally Posted by OpenBSD/7.1/amd64/INSTALL.amd64
Code:
install71.img	A boot and installation image which contains
		the base and X sets.  An install or upgrade can be
		done with a USB key without network connectivity.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Old 14th September 2022
vdavi81 vdavi81 is offline
New User
 
Join Date: Sep 2022
Posts: 5
Default

Sorry,
I red that in install71.img, there is a sets. But when I used dd commando to write USB key, I didn't see a 71 folder.. When I reboot, I select Shell and whit the command ls I can't see 71 folder.

I tried to download install71.iso then I opened it and I saw 71 folder.
Reply With Quote
Old 14th September 2022
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

I don't remember how to do this on Linux but on OpenBSD:
Code:
adriaan@lenap[~]doas -s
root@lenap[/home/adriaan] vnconfig Downloads/install71.img                                                          
vnd0

root@lenap[/home/adriaan] disklabel vnd0

# /dev/rvnd0c:
type: vnd
disk: vnd device
label: fictitious
duid: 4f2711c05fa49773
flags:
bytes/sector: 512
sectors/track: 100
tracks/cylinder: 1
sectors/cylinder: 100
cylinders: 13608
total sectors: 1360832
boundstart: 1024
boundend: 1359872
drivedata: 0 

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
  a:          1358848             1024  4.2BSD   2048 16384 16142 
  c:          1360832                0  unused                    
  i:              960               64   MSDOS
Now we mount the filesystem labelled 'a' and do a recursive ls(1):

Code:
root@lenap[/home/adriaan] mount -r /dev/vnd0a /mnt
root@lenap[/home/adriaan] ls -lR /mnt
/mnt:
total 18296
drwxr-xr-x  3 root  wheel      512 Apr 12 02:27 7.1
-rw-r--r--  1 root  wheel    88068 Apr 12 02:27 boot
-r-xr-xr-x  2 root  wheel  4606368 Apr 12 02:27 bsd
-r-xr-xr-x  2 root  wheel  4606368 Apr 12 02:27 bsd.rd
drwxr-xr-x  2 root  wheel      512 Apr 12 02:27 etc

/mnt/7.1:
total 4
drwxr-xr-x  2 root  wheel  512 Apr 12 02:27 amd64

/mnt/7.1/amd64:
total 1149916
-rw-r--r--  1 root   2000       43495 Apr 12 02:10 INSTALL.amd64
-rw-r--r--  1 root   wheel       1812 Apr 12 02:27 SHA256
-rw-r--r--  1 build  2000   346820017 Apr 12 02:05 base71.tgz
-rwxr-xr-x  1 build  2000    22876084 Apr 12 02:04 bsd
-rwxr-xr-x  1 build  2000    22977229 Apr 12 02:04 bsd.mp
-rwxr-xr-x  1 root   2000     4606368 Apr 12 02:10 bsd.rd
-rw-r--r--  1 build  2000    75127448 Apr 12 02:05 comp71.tgz
-rw-r--r--  1 build  2000     2810632 Apr 12 02:05 game71.tgz
-rw-r--r--  1 build  2000     7783788 Apr 12 02:05 man71.tgz
-rw-r--r--  1 root   2000    56506993 Apr 12 02:27 xbase71.tgz
-rw-r--r--  1 root   2000    23516363 Apr 12 02:27 xfont71.tgz
-rw-r--r--  1 root   2000    20600147 Apr 12 02:27 xserv71.tgz
-rw-r--r--  1 root   2000     4653425 Apr 12 02:27 xshare71.tgz

/mnt/etc:
total 4
-rw-r--r--  1 root  wheel  28 Apr 12 02:27 boot.conf
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
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
Dual booting encrypted OpenBSD with Windows e1-531g OpenBSD General 2 16th August 2015 02:06 PM
Invalid Signature when trying to boot Ubuntu 14.04 (Dual Boot) bsd007 FreeBSD General 7 18th September 2014 12:37 PM
Dual boot with Windows 8: Fast Startup puts data at risk J65nko News 0 14th January 2013 05:31 PM
dual booting OS X with Windows dipalina Other BSD and UNIX/UNIX-like 3 13th January 2010 08:46 PM
Dual-boot laptop won't boot OpenBSD after upgrade to 4.3 kbeaucha OpenBSD Installation and Upgrading 17 30th May 2008 02:40 PM


All times are GMT. The time now is 09:34 AM.


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