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 June 2012
dgiorgio dgiorgio is offline
New User
 
Join Date: Jun 2012
Posts: 6
Default Boot in other partition

I put the root "/" partition in "e:"

the swap partition is "d:"

Always start the system by typing the command "boot hd0e:/bsd"

how do I start automatically? no change to the partition "a:"
Reply With Quote
  #2   (View Single Post)  
Old 12th June 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by dgiorgio View Post
Always start the system by typing the command "boot hd0e:/bsd"

how do I start automatically? no change to the partition "a:"
See boot.conf(8). This file can be use to customize the boot order loading kernels from any device supported by your system BIOS
Reply With Quote
  #3   (View Single Post)  
Old 12th June 2012
dgiorgio dgiorgio is offline
New User
 
Join Date: Jun 2012
Posts: 6
Default

I tried but could not

I copied the command that starts the system in the file /etc/boot.conf
Reply With Quote
  #4   (View Single Post)  
Old 12th June 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by dgiorgio View Post
I copied the command that starts the system in the file /etc/boot.conf
Please provide the following:
  • the complete output of dmesg(8).
  • the contents of /etc/boot.conf.
Reply With Quote
  #5   (View Single Post)  
Old 13th June 2012
dgiorgio dgiorgio is offline
New User
 
Join Date: Jun 2012
Posts: 6
Default

I deleted the /etc/boot.conf

how do I pass the result of dmesg?

I am testing in virtualbox.
Reply With Quote
  #6   (View Single Post)  
Old 13th June 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by dgiorgio View Post
how do I pass the result of dmesg?
You can capture the output sent to STDOUT to a file via redirection. As an example:

$ dmesg > dmesg_output.txt

Cut-and-paste the file's contents into a response to this thread. Not knowing anything about your configuration, you may need to copy the file to a flash drive, & mount it in a new environment which has a browser & Internet connection before you are finished.
Quote:
I am testing in virtualbox.
The problem with virtualization software is that like any other piece of software, it will likely have bugs. Although there has been a resurgence in the virtualization market in the last few years, companies & projects building virtualization software target the largest markets -- Windows, OS/X, Linux, & perhaps Solaris. Few virtualization environments support OpenBSD, & most don't do a very good job. The OpenBSD project is also not thrilled with virtualized environments because of their bugs which adversely affects stability, security, & support.

Likewise, I don't use any virtualized software solutions, so I will not be able to help you further. Perhaps someone else with experience in using VirtualBox with OpenBSD will join this thread to help you.

Last edited by ocicat; 13th June 2012 at 06:13 AM. Reason: clarity
Reply With Quote
  #7   (View Single Post)  
Old 15th June 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Hi dgiorgio !
wanna see how OpenBSD rocks ? forget vbox and twins .. buy a cheap disk and experience with it.
Reply With Quote
  #8   (View Single Post)  
Old 20th June 2012
dgiorgio dgiorgio is offline
New User
 
Join Date: Jun 2012
Posts: 6
Default

I've always used OpenBSD in VirtualBox.

I just want to know the boot OpenBSD.

Quote:
[root@OPENBSD-VM ~]# dmesg
OpenBSD 5.1 (GENERIC.MP) #188: Sun Feb 12 09:55:11 MST 2012
deraadt@i386.openbsd.org:/usr/src/sy...ile/GENERIC.MP
cpu0: Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz ("GenuineIntel" 686-class) 2.27 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,P GE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT ,NXE,LONG,SSE3,SSSE3,LAHF
real mem = 133689344 (127MB)
avail mem = 121454592 (115MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 06/23/99, BIOS32 rev. 0 @ 0xfc010, SMBIOS rev. 2.5 @ 0xe1000 (5 entries)
bios0: vendor innotek GmbH version "VirtualBox" date 12/01/2006
bios0: innotek GmbH VirtualBox
acpi0 at bios0: rev 2
acpi0: sleep states S0 S5
acpi0: tables DSDT FACP APIC SSDT
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 999MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz ("GenuineIntel" 686-class) 2.27 GHz
cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,P GE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT ,NXE,LONG,SSE3,SSSE3,LAHF
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz ("GenuineIntel" 686-class) 2.27 GHz
cpu2: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,P GE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT ,NXE,LONG,SSE3,SSSE3,LAHF
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz ("GenuineIntel" 686-class) 2.27 GHz
cpu3: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,P GE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT ,NXE,LONG,SSE3,SSSE3,LAHF
ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 11, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpicpu1 at acpi0
acpicpu2 at acpi0
acpicpu3 at acpi0
acpibat0 at acpi0: BAT0 model "1" serial 0 type VBOX oem "innotek"
acpiac0 at acpi0: AC unit online
bios0: ROM list: 0xc0000/0x9000 0xe2000/0x1000
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <VBOX, CD-ROM, 1.0> ATAPI 5/cdrom removable
wd0 at pciide0 channel 0 drive 1: <VBOX HARDDISK>
wd0: 128-sector PIO, LBA, 8192MB, 16777216 sectors
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
wd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
vga1 at pci0 dev 2 function 0 "InnoTek VirtualBox Graphics Adapter" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci0 dev 3 function 0 "Intel PRO/1000MT (82540EM)" rev 0x02: apic 4 int 19, address 08:00:27:e3:ba:f3
"InnoTek VirtualBox Guest Service" rev 0x00 at pci0 dev 4 function 0 not configured
piixpm0 at pci0 dev 7 function 0 "Intel 82371AB Power" rev 0x08: SMBus disabled
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
mtrr: CPU supports MTRRs but not enabled
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on wd0e (f9d408ee6e22d776.e) swap on wd0b dump on wd0b
WARNING: / was not properly unmounted
Reply With Quote
  #9   (View Single Post)  
Old 20th June 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Thank you dgiorgio for the dmesg(8) output. If someone feels they have sufficient knowledge of VirtualBox to help you separate swap to another partition, they will respond at their convenience.

Recognize that DaemonForums has no official connection to the OpenBSD Project, and those that answer questions here are not project developers. This site is maintained by enthusiasts not affiliated with the OpenBSD project.

Repeating again, discussions found on OpenBSD's official mailing lists show that many project developers are not fans of the current virtualization software solutions available today for the reasons previously stated -- bugs exist in the virtualization code which prevents OpenBSD from either running or security holes are introduced by the virtualization software. I do not know whether this is the situation you are running into or not as I don't use VirtualBox or any other virtualization software.
Reply With Quote
Old 20th June 2012
dgiorgio dgiorgio is offline
New User
 
Join Date: Jun 2012
Posts: 6
Default

OpenBSD supports only the boot partition "hd0a :/ bsd"

in virtualbox or PC, the problem will be the same.

it is possible to boot on another partition, but I have to type "boot hd0e :/ bsd"

what is the OpenBSD MBR?
Reply With Quote
Old 20th June 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by dgiorgio View Post
OpenBSD supports only the boot partition "hd0a :/ bsd"

in virtualbox or PC, the problem will be the same.
I have misunderstood your question. My apologies. OpenBSD will always boot from disklabel(8)'s "a" partition by definition.
Quote:
what is the OpenBSD MBR?
The Master Boot Record (MBR) is the first sector on the boot device recognized by the i386 BIOS. Once the BIOS has probed all peripherals of the system, it will transfer execution to the MBR which does minimal sanity checking to ensure that one MBR partition (The MBR supports four...) has been set as active before executing code to boot the operating system found in the active partition. There are a number of resources which describe the intricacies of the MBR throughout the Internet. One is the following:

http://en.wikipedia.org/wiki/Master_boot_record

Note that there is a difference between MBR partitions and partitions defined within disklabel(8). OpenBSD will be installed into a single MBR partition, & it will always boot from a kernel found in the disklabel(8)'s "a" partition.

OpenBSD can be configured to boot from a different hard drive, & this is configured in boot.conf(8) as previously discussed. You may find the discussion in the disklabel(8) manpage helpful as well.
Reply With Quote
Old 20th June 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

On architectures that require a 2 stage bootloader, such as i386, the second stage boot loader can use the boot.conf(5) configuration file to boot a kernel from any FFS filesystem in the OpenBSD disklabel from any drive.
But the bootload can only find that /etc/boot.conf file on the FFS filesystem in partition "a" of the booting drive.
The kernel also sets the root partition, needed for finding /etc/rc and starting normal execution. If this is not "a" from the booting drive, this requires either a custom kernel or manual setting during boot via the "boot -a" second stage bootloader command.

If editing the disklabel to swap partition letters is not an option, re-install certainly is. It is not clear to me how the kernel ended up on "e", but it should not be there.

Last edited by jggimi; 20th June 2012 at 10:31 PM. Reason: typos
Reply With Quote
Old 20th June 2012
dgiorgio dgiorgio is offline
New User
 
Join Date: Jun 2012
Posts: 6
Default

I surrender.

reinstalled

a: root
b: swap

Thank you all
Reply With Quote
Old 20th June 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by dgiorgio View Post
reinstalled

a: root
b: swap

Thank you all
When it comes to OpenBSD disklabel(8) partitions:
  • "a" is always the boot partition if a boot partition is needed.
  • "b" is always the swap partition if swap is configured.
  • "c" is always a pseudo-partition which represents the entire disk. This partition letter cannot be used for any other purpose.
Any of the other "d"-"p" partitions can be used for any purpose, & all do not have to sequentially exist.

Again, my apologies that so many iterations in this thread were required to make this distinction.
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
Xtracting Data after Fragmentation / Block Count / Partition Problems on Boot IronForge OpenBSD Installation and Upgrading 3 16th December 2010 01:09 AM
Partition help needed. ros2468 OpenBSD Installation and Upgrading 9 22nd March 2010 01:25 PM
Cannot activate partition in XP. bsdnewbie999 OpenBSD Installation and Upgrading 6 4th May 2009 05:21 PM
swap partition lumiwa FreeBSD General 6 11th September 2008 03:57 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 06:52 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