Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th September 2010
tenderoni tenderoni is offline
New User
Join Date: Sep 2010
Location: PNW
Posts: 3
Default Missing drive in /dev, but shows in dmesg

Hi, I have a big pile of 1U boxes that are getting OpenBSD and I have run into a weird problem that is probably easily explained by someone who is more current with OpenBSD than me!

I boot a 4.7 install CD (or tftp) and dmesg shows sd0 and sd1 -- the 2 32G Corsair SSDs I have -- and I usually like to dd them first thing:

dd if=/dev/zero of=/dev/rsd0c bs=1024000

And this works fine for sd0, but /dev/rsd1c doesn't exist. In fact, nothing related to sd1 exists in /dev. But it was in the dmesg.

What am I missing? It's annoying to boot into a Debian rescue disc just to dd since it sees the drives as sda and sdb and can dd without any problems.

After the install, sd1 works fine and is used to complete a software RAID1 which goes off without a hitch. I don't think there are hardware problems.

Reply With Quote
  #2   (View Single Post)  
Old 25th September 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223

OpenBSD doesn't have a dynamic devfs, the contents of /dev are generated by a script in the same directory (MAKEDEV), only a few devices have nodes created by default.

Simply create the device nodes yourself manually, the following should work:
# cd /dev; /bin/sh MAKEDEV sd1

It does seem strange to only have device files for a single sd(4) device, I'm not sure why that is the case.. is this OpenBSD/i386 or perhaps some other supported platform?
Reply With Quote
  #3   (View Single Post)  
Old 25th September 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
Join Date: May 2008
Location: USA
Posts: 6,221

The ramdisk kernel does not have the complete set of devs, due to lack of RAM space. The install/upgrade scripts will MAKEDEV what is needed, but if you are doing something else with bsd.rd, best to create just the devices you need.

Another option can be found in my .sig, below.
Reply With Quote
  #4   (View Single Post)  
Old 27th September 2010
tenderoni tenderoni is offline
New User
Join Date: Sep 2010
Location: PNW
Posts: 3

Thanks! Forgot about MAKEDEV. That works great and I can stop using my Debian CD to dd.

These are dual core 64bit Intel Atom machines with 2xSSDs (in software RAID1) and will be doing much OpenBSD based routing after seeing what Cisco wants for licenses. Pf rocks, as it has for at least a decade when I last used it, and the whole ipsec/openvpn setup is sweet. Got all my networks talking without even breaking a sweat.
Reply With Quote

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
Researcher shows how to strike back at web assailants J65nko News 0 17th June 2010 11:23 PM
Why tcpdump sometimes drops packets, mangles DNS and shows bad checksums J65nko Guides 4 15th January 2010 11:55 PM
How to: DMESG Monitoring damien-NF FreeBSD Installation and Upgrading 2 4th August 2009 11:30 PM
Missing hard drive space. df and du can't agree tsan FreeBSD General 2 30th July 2008 09:08 PM
Properly sending dmesg to dmesg@ twisted_steel OpenBSD General 5 27th July 2008 02:43 PM

All times are GMT. The time now is 05:40 AM.

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