User Tools

Site Tools


openbsd:x230

Introduction

Tired of Systemd I will try to install OpenBSD in dualboot with windows 7 on my x230 Tablet

Downloads

Install

Boot on CD
I use the same schema as for Linux:

  • mSATA (1) 256GB for Windows/openBSD
  • SATA (0) 500GB for swap/var/home and a Data (shared) partition
Disk Partition Format Size Mount Point
1 1 NTFS 1.5GB SYSTEM_DRV
1 2 NTFS 175GB Windows7_OS
1 3 UFS 61GB OpenBSD /
0 1 UFS 160GB OpenBSD swap (4g) /var (10g) /home
0 2 NTFS 309GB DATA

Warnings

  • :!: flag bootable the / partition of OpenBSD to be able to reboot on it :!:

mSATA SSD

Edit 3rd partition:

Initialyze sd1
(E)dit
fdisk> e 2
Partition id : A6
fdisk> flag 2
fdisk> w
fdisk> q

Mount as /

Label editor
> a
partition a
FS type 4.2BSD
mount point: /
> q

SATA

Edit first partition

Initialyze sd0
(E)dit
fdisk> e 0
Partition id : A6
fdisk> w
fdisk> q

Create /swap (4g) /var (10g) /home (remaining space)

Label editor
> a
partition a
size: 4g
FS type swap

> a
partition b
size: 10g
FS type 4.2BSD
mount point: /var

> a
partition d
size:
FS type 4.2BSD
mount point: /home
> q

Sets

Select all :)
Installation goes from cd0
at the end … reboot!

Create the pbr file

Insert a FAT 32 USB key to copy the boot file!!!

disklabel sd2

mount the key

mount /dev/sd2i /mnt

Create the openbsd.pbr file

dd if=/dev/rsd1a of=openbsd.pbr bs=512 count=1

Copy to USB

cp openbsd.pbr /mnt/.

Flag back Windows partition as bootable:

fdisk -e sd1
fdisk> flag 0
fdisk> w
fdisk> q

Reboot under windows

Windows bootloader

Start cmd as administrator

bcdedit /create /d "OpenBSD" /application bootsector

Note the nice string returned … in this example it will be {0154a872-3d41-11de-bd67-a7060316bbb1}

C:\Windows\system32> bcdedit /set {0154a872-3d41-11de-bd67-a7060316bbb1} device boot
The operation completed successfully.

C:\Windows\system32> bcdedit /set {0154a872-3d41-11de-bd67-a7060316bbb1} path \openbsd.pbr
The operation completed successfully.

C:\Windows\system32> bcdedit /set {0154a872-3d41-11de-bd67-a7060316bbb1} device partition=c:
The operation completed successfully.

C:\Windows\system32> bcdedit /displayorder {0154a872-3d41-11de-bd67-7060316bbb1} /addfirst
The operation completed successfully.

C:\Windows\system32> bcdedit /timeout 10
The operation completed successfully.

Reboot!

Troubleshooting

Boot the install CD and type:

b sd0a:/bsd

References

openbsd/x230.txt · Last modified: 2016/03/13 19:16 by warnaud