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 22nd May 2012
lunita lunita is offline
New User
 
Join Date: May 2012
Posts: 4
Default Installing from LiveUSB

Hi all,

I'm newbie on OpenBSD, and I want to install OpenBSD having a liveUSB (I haven't CD on the server) but I can't manage to boot the image!

I followed this howto:

liveusb-openbsd.sourceforge.net/#Usbinst

Downloading install51.iso, format the usb device with fat16, and copy the image with dd. Qemu boot the image, but any computer does.

Also, I tried downloading the liveusb-mini.vdi, but I'm not sure copying this directly to the pendrive, would work.

What I'm doing wrong?

Thanks in advance,

Laura
Reply With Quote
  #2   (View Single Post)  
Old 22nd May 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by lunita View Post
I want to install OpenBSD having a liveUSB...
Welcome!

It will be far simpler to just install OpenBSD 5.1 directly to the USB drive as outlined in Section 14.17.3 & Section 4 of the FAQ. Instead of installing to a hard drive which may already be mounted, specify the USB drive (which will appear as either device sd0 or sd1 when plugged in...), & install directly to it.

Yes, you could continue with the image provided on the Gayatri Hitech page, but the end result will be the same as just installing directly to the USB drive.
Reply With Quote
  #3   (View Single Post)  
Old 22nd May 2012
lunita lunita is offline
New User
 
Join Date: May 2012
Posts: 4
Default

Quote:
Originally Posted by ocicat View Post
Welcome!

It will be far simpler to just install OpenBSD 5.1 directly to the USB drive as outlined in openbsd.org/faq/faq14.html#flashmemLive]Section 14.17.3] & openbsd.org/faq/faq4.html Section of the FAQ. Instead of installing to a hard drive which may already be mounted, specify the USB drive (which will appear as either device sd0 or sd1 when plugged in...), & install directly to it.

Yes, you could continue with the image provided on the liveusb-openbsd.sourceforge.net/#Usbinst]Gayatri Hitechpage, but the end result will be the same as just installing directly to the USB drive.
Hi ocicat,

Thanks! I have now the USB with OpenBSD, but when I boot this liveUSB I can't see the option to install the SO into the server. Have I to deploy the content of the USB into the server HD?

Greetings,

Laura
Reply With Quote
  #4   (View Single Post)  
Old 22nd May 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by lunita View Post
...when I boot this liveUSB I can't see the option to install the SO into the server. Have I to deploy the content of the USB into the server HD?
Sorry, this wasn't quite how I interpreted your initial question, however, the solution is still relatively simple.

Assuming you installed OpenBSD 5.1 as I recommended earlier, the default kernel booted is /bsd. The kernel used for installation is also included in the root directory as /bsd.rd. When prompted during boot:
Code:
probing: pc0 com0 com1 apm mem[636k 190M a20=on]
disk: fd0 hd0+
>> OpenBSD/i386 BOOT 3.17
boot>
The bootloader pauses before loading the default kernel. What you will want to do is type /bsd.rd while the bootloader is pausing.

Note that the filesets are not present in this configuration. I don't believe the Gayatri Hitech project includes them either. However, once /bsd.rd is booted, you can access the file sets over the Internet as specified in Section 4 of the FAQ. You can also access them USB (the same device or another USB device...) or CD if you have prepared these media.

Last edited by ocicat; 22nd May 2012 at 07:32 PM. Reason: clarify USB sources...
Reply With Quote
  #5   (View Single Post)  
Old 22nd May 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Hi Laura ! wecome to Daemonforums ! at last I'm not the only newbie here :-)
Quote:
I want to install OpenBSD having a liveUSB (I haven't CD on the server)
ocicat, lunita obviously wants to install OpenBSD using a flash usb (as she doesn't have a CD player & it seems easier than pxe install ) and not just to install OpenBSD on a flash.
Reply With Quote
  #6   (View Single Post)  
Old 22nd May 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

@lunita,

Disclaimer: I know nothing about "LiveUSB", a third party offering. I recommend that if you are determined to use it, you contact the author directly for support.

--

The OpenBSD Project's only official, supported methods for installing are via booting from install media developed for the particular architecture. The media choices vary. For the two most popular architectures, i386 or amd64, the choices are the same: booting a diskette, booting a CD/DVD, or booting from a network using a PXE capable NIC and and a PXE configured LAN. (PXE booting requirements and configuration are described in the pxeboot(8) man page.)

If none of these are available on the platform you wish to install onto, the Project recommends either:
A) From a platform that has appropriate media, install onto a bootable, removable external drive, attachable via external channels such as eSATA, USB, or SCSI.

B) From a platform that has appropriate media, swap internal drives, install, swap internal drives.
Both of these recommended methods require at least one additional system of the same architecture which can boot installation media. That system may be virtual (e.g.: qemu) if convenient.

Most common alternative methods -- such as manually creating a bootable USB stick containing just the install kernel and installation filesets -- require the admin have prior knowledge of OpenBSD boot block installation/configuration for the particular architecture.
Reply With Quote
  #7   (View Single Post)  
Old 23rd May 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by daemonfowl View Post
ocicat, lunita obviously wants to install OpenBSD using a flash usb (as she doesn't have a CD player & it seems easier than pxe install ) and not just to install OpenBSD on a flash.
lunita, this post may be a digression from discussion attempting to answer your question. As pointed out by the forum rules, we frown on such hijacking of discussion on this site, however, my answer here will repeat & perhaps give further perspective as to my earlier post with greater technical detail. The reason for repeating is to point out that a default installation is not merely an installation to flash. A default installation to a USB device can be used to install OpenBSD onto other systems.

Yes, it is possible to create a custom script which will create a very specific installation of OpenBSD where one would in turn simply insert into a USB port, boot the computer, & if the BIOS supports booting from USB devices, execution would immediately launch into OpenBSD's installation script. On the i386/amd64 platforms, this would require sufficient knowledge & skill to navigate through the biosboot(8), installboot(8), boot(8), & fdisk(8) manpages. There are primarily three main ingredients to creating such a bootable USB device:
  1. Copy the bsd.rd installation kernel to the USB device after preparing the filesystem.
  2. Correctly install the necessary bootblocks in order to boot an OpenBSD kernel.
  3. Copy all needed filesets to the USB device.
A default installation of OpenBSD takes care of the first requirements automatically. However, a default installation will also boot into the default kernel which will not be bsd.rd -- the kernel which loads a minimal system into memory & contains the installation script. An earlier post points out what is needed to manually boot the desired kernel.

This leaves the question as to where to find the filesets needed to install OpenBSD onto another system. As discussed in Section 4.5.4 of the FAQ, bsd.rd can install the needed filesets from a number of locations as can be seen in the relevant question answered during installation:
Code:
Location of sets? (cd disk ftp http or 'done') [cd] _
Since one of the choices is "disk", the filesets could be copied onto the USB device itself, however, this is not the only choice.

So daemonfowl, you should see now that a default installation to USB can be used to install OpenBSD onto other systems as long as the system's BIOS supports booting from USB devices. In fact, this is the simplest method possible, plus, it is supported by the OpenBSD project.

Last edited by ocicat; 23rd May 2012 at 05:33 AM.
Reply With Quote
  #8   (View Single Post)  
Old 23rd May 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

It is supported, as it falls under option A above.
Reply With Quote
  #9   (View Single Post)  
Old 23rd May 2012
lunita lunita is offline
New User
 
Join Date: May 2012
Posts: 4
Default

Quote:
Originally Posted by ocicat View Post
Sorry, this wasn't quite how I interpreted your initial question, however, the solution is still relatively simple.

Assuming you installed OpenBSD 5.1 as I recommended earlier, the default kernel booted is /bsd. The kernel used for installation is also included in the root directory as /bsd.rd. When prompted during boot:
Code:
probing: pc0 com0 com1 apm mem[636k 190M a20=on]
disk: fd0 hd0+
>> OpenBSD/i386 BOOT 3.17
boot>
The bootloader pauses before loading the default kernel. What you will want to do is type /bsd.rd while the bootloader is pausing.

Note that the filesets are not present in this configuration. I don't believe the Gayatri Hitech project includes them either. However, once /bsd.rd is booted, you can access the file sets over the Internet as specified in Section 4 of the FAQ. You can also access them USB (the same device or another USB device...) or CD if you have prepared these media.


Hi all!

I'm on the right way, I guess =). I'm going to explain a little further of my scenario:

The server has a old OpenBSD Installation, 4.9 I think, and I have to reinstall 5.1, with softraid. The previous sysadmin left the company sudenly and $boss wants a fresh install.

So, I followed ocicat recommendations and:

· When the server boot up:
===========
Using drive 0, partition 3.
Loading...
probing: pc0 com0 mem[629K 2045M a20=on]
disk: fd0 fd1 hd0+ hd1+ hd2
>> OpenBSD/amd64 BOOT 3.18
boot>
===========

At this point I type /bsd.rd and I can choose installing OpenBSD. I follow the process but at this part of the installation:

===========
Available disks are: sd0 sd1 sd2
Which one is the root disk? (or 'done') [sd0]
===========

I haven't option to select HD devices, but when it's beginning the startup, I see hd0, 1 and 2, as you can see in the previous 'screenshot'.

Why can't I select the HD and not the USB :??

Thanks in advance,

Laura
Reply With Quote
Old 23rd May 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by lunita View Post
I haven't option to select HD devices, but when it's beginning the startup, I see hd0, 1 and 2, as you can see in the previous 'screenshot'.

Why can't I select the HD and not the USB :??
The difference is boot(8) does not make any distinction between IDE & SCSI drives such that all are detected as "hd" devices. On the other hand, the OpenBSD kernel does distinguish between IDE (which are identified as wd(4) devices...) & SCSI (which are identified as sd(4) devices...). The provided links to the manpages will give more information.

Note that all USB devices will be identified as sd(4) devices.

The kernel will also assign a number to each IDE/SCSI device. Upon insertion of USB devices, you will see what the kernel assigns on the login console. As an example, if you have one SCSI drive installed in the system, (which would be found in dmesg(8) output as sd0...), inserting a USB device would be assigned the device name sd1. This information would be displayed and placed into the dmesg(8) buffer.
Quote:
At this point I type /bsd.rd and I can choose installing OpenBSD. I follow the process but at this part of the installation:
===========
Available disks are: sd0 sd1 sd2
Which one is the root disk? (or 'done') [sd0]
===========
At this point, the above information prompted by /bsd.rd should make more sense. Three devices are identified by the kernel to use the SCSI subsystem. This may be mix between actual SCSI hard drive(s) & USB device(s).
Reply With Quote
Old 23rd May 2012
lunita lunita is offline
New User
 
Join Date: May 2012
Posts: 4
Default

Hi all,

Finally I found that sd0 is my first HD, sd1, the second and sd2 the USB.

I have mi OpenBSD fresh install ^^

Thank you very much!!!

Laura
Reply With Quote
Old 23rd May 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by lunita View Post
Finally I found that sd0 is my first HD, sd1, the second and sd2 the USB.

I have mi OpenBSD fresh install ^^
We're glad it finally worked out!

Reply With Quote
Old 24th May 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

I must thank jgimmi and ocicat for the quite interesting info, tips and guidelines.
One thing is sure : I LLLLLLove Daemonforums !!!!!!!!!
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
non-journaled filesystems on liveusb media daemonfowl OpenBSD Security 11 25th February 2012 04:30 AM
OpenBSD livecd/liveusb/combo persistent? Noobification OpenBSD General 5 28th October 2010 12:22 PM
Partitioning the LiveUSB drives. IronForge OpenBSD Installation and Upgrading 6 29th August 2010 10:27 PM
Installing KDE EverydayDiesel FreeBSD Installation and Upgrading 7 27th August 2010 04:27 AM
OpenBSD LiveUSB Oko OpenBSD Installation and Upgrading 3 12th May 2009 03:24 AM


All times are GMT. The time now is 10:53 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