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 1 Week Ago
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 95
Default How to transfer .fs image to USB flash drive ?

Hi,

I am at the moment downloading install62.fs.

Under Linux I used to do
Code:
dd if=/path to image of=/dev/sdb bs=4M
How can I do the same under OpenBSD ?
__________________
OpenBSD 6.2
--------------------
The best thing in life is finding someone who knows all your mistakes and weaknesses, and yet still thinks you're completely amazing.

Last edited by bsd007; 1 Week Ago at 04:01 PM.
Reply With Quote
  #2   (View Single Post)  
Old 1 Week Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,889
Default

Assumed: I have seleicted sd7 at random as a device number. Please watch your kernel messages when inserting the device to discover the actual drive number, and replace accordingly.
Code:
# dd if=/path/to/the/file of=/dev/rsd7c
Q: What the heck is rsd7c?

A:

r = raw device
sd7: drive number
c = the reserved partition letter that means "the entire drive, starting with LBA (sector) number 0"

You may add a blocksize to the dd(1) command, such as bs=1m.

Last edited by jggimi; 1 Week Ago at 04:06 PM. Reason: typo
Reply With Quote
  #3   (View Single Post)  
Old 1 Week Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,889
Default

And, like many of your questions .... you may find the FAQ will be helpful,

http://www.openbsd.org/faq/faq4.html#MkInsMedia
Reply With Quote
  #4   (View Single Post)  
Old 1 Week Ago
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 95
Default

But I am getting all these without even the flash drive plugged in

Code:
$ ls rsd*
rsd0a rsd0n rsd1k rsd2h rsd3e rsd4b rsd4o rsd5l rsd6i rsd7f rsd8c rsd8p rsd9m
rsd0b rsd0o rsd1l rsd2i rsd3f rsd4c rsd4p rsd5m rsd6j rsd7g rsd8d rsd9a rsd9n
rsd0c rsd0p rsd1m rsd2j rsd3g rsd4d rsd5a rsd5n rsd6k rsd7h rsd8e rsd9b rsd9o
rsd0d rsd1a rsd1n rsd2k rsd3h rsd4e rsd5b rsd5o rsd6l rsd7i rsd8f rsd9c rsd9p
rsd0e rsd1b rsd1o rsd2l rsd3i rsd4f rsd5c rsd5p rsd6m rsd7j rsd8g rsd9d
rsd0f rsd1c rsd1p rsd2m rsd3j rsd4g rsd5d rsd6a rsd6n rsd7k rsd8h rsd9e
rsd0g rsd1d rsd2a rsd2n rsd3k rsd4h rsd5e rsd6b rsd6o rsd7l rsd8i rsd9f
rsd0h rsd1e rsd2b rsd2o rsd3l rsd4i rsd5f rsd6c rsd6p rsd7m rsd8j rsd9g
rsd0i rsd1f rsd2c rsd2p rsd3m rsd4j rsd5g rsd6d rsd7a rsd7n rsd8k rsd9h
rsd0j rsd1g rsd2d rsd3a rsd3n rsd4k rsd5h rsd6e rsd7b rsd7o rsd8l rsd9i
rsd0k rsd1h rsd2e rsd3b rsd3o rsd4l rsd5i rsd6f rsd7c rsd7p rsd8m rsd9j
rsd0l rsd1i rsd2f rsd3c rsd3p rsd4m rsd5j rsd6g rsd7d rsd8a rsd8n rsd9k
rsd0m rsd1j rsd2g rsd3d rsd4a rsd4n rsd5k rsd6h rsd7e rsd8b rsd8o rsd9l
How do I decide?
__________________
OpenBSD 6.2
--------------------
The best thing in life is finding someone who knows all your mistakes and weaknesses, and yet still thinks you're completely amazing.
Reply With Quote
  #5   (View Single Post)  
Old 1 Week Ago
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 95
Default

BTW I mount my usb flash drive like this

Code:
mount /dev/sd0i /mnt
__________________
OpenBSD 6.2
--------------------
The best thing in life is finding someone who knows all your mistakes and weaknesses, and yet still thinks you're completely amazing.
Reply With Quote
  #6   (View Single Post)  
Old 1 Week Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,889
Default

Step 1. Use one of many ways to display kernel messages. Here are three:
  1. Point your workstation display to the console (alt-ctrl-F1)
  2. Use xconsole(1)
  3. use $ tail -f /var/log/messages
Step 2. Connect your USB drive.

Step 3. Watch the kernel messages as the mass storage device is assigned an sd(4) device number.

Step 4. Use that device number as discussed above.
Reply With Quote
  #7   (View Single Post)  
Old 1 Week Ago
GarryR's Avatar
GarryR GarryR is offline
Real Name: Garry Ricketson
Package Pilot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 162
Default

I find these 2 commands very use full :
Code:
sysctl hw.disknames
and
'disklabel'
Code:
man disklabel
sysctl hw.disknames will give a list :
example:
Code:
$ sysctl hw.disknames
hw.disknames=sd0:7c45abe08beb4c01,cd0:,sd1:
Then you can use 'disklabel' :
example:
Code:
disklabel sd1
"sd1" or "sd0", what ever one you want to look at.
__________________
My best friends are parrots
Reply With Quote
  #8   (View Single Post)  
Old 1 Week Ago
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 95
Default

Done. Installation complete. Thanks.
__________________
OpenBSD 6.2
--------------------
The best thing in life is finding someone who knows all your mistakes and weaknesses, and yet still thinks you're completely amazing.
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
formatting USB Flash Drive amphibious OpenBSD Installation and Upgrading 4 20th April 2017 01:49 AM
Creating USB flash drive drive image from FreeBSD disc1.iso FBSD Guides 1 10th February 2010 04:42 PM
Backup to USB flash drive giga FreeBSD General 5 8th December 2008 11:06 PM
backup drive to image file milo974 OpenBSD General 8 14th August 2008 02:01 PM
USB flash drive criglerj NetBSD General 1 26th July 2008 01:25 AM


All times are GMT. The time now is 06:54 AM.


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