DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 4th September 2008
diw's Avatar
diw diw is offline
Port Guard
 
Join Date: Jul 2008
Posts: 45
Thanked 2 Times in 2 Posts
Default Adding drives annoys OpenBSD.

Hiya.

I have OpenBSD installed on a drive on my machine. It uses the whole drive.
It is master drive on second IDE channel.
The only other drive was a DVD as slave on secondary.

I added a couple of NTFS drives to the first IDE controller.
Now when I boot I get:

Automatic boot in progress: starting file system checks
Can't open /dev/rwd0a: Device not configured
CAN'T CHECK FILE SYSTEM.
/dev/rwd0a: UNEXPECTED CONSISTENCY; RUN fsck_ffs MANUALLY.
Automatic file system check failed; help!

And then option to spawn a shell.

Any advice?

Best wishes.
Reply With Quote
  #2   (View Single Post)  
Old 4th September 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

The topic is misleading, it sounds to me like you installed the disks and forgot to check the order in which they were detected.

In any case, you should always add a single device at a time... compare dmesg output with and without the drive, you might have to edit /etc/fstab.
Reply With Quote
  #3   (View Single Post)  
Old 4th September 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,886
Thanked 214 Times in 189 Posts
Default

Device numbers are assigned in order, during startup probe. When you installed the OS, you only had a single drive, it was assigned drive #0. You have since added two new drives ... but they are on the first IDE channel, and are found by the probe first. They are assigned drive #0 and #1, now, and your original drive is drive #2 (wd2). From my perspective, you have three choices:
  1. Move cables, and make your original drive the master of the first IDE channel, so it is assigned drive #0 again. You will need to change the boot sequence in your BIOS to match, of course.
  2. Boot in single user mode and edit /etc/fstab, changing all wd0 references to wd2.
  3. Give up and reinstall.
I'd recommend either option 1 or option 2.
Reply With Quote
  #4   (View Single Post)  
Old 4th September 2008
diw's Avatar
diw diw is offline
Port Guard
 
Join Date: Jul 2008
Posts: 45
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by jggimi View Post
Device numbers are assigned in order, during startup probe. When you installed the OS, you only had a single drive, it was assigned drive #0. You have since added two new drives ... but they are on the first IDE channel, and are found by the probe first. They are assigned drive #0 and #1, now, and your original drive is drive #2 (wd2). From my perspective, you have three choices:
  1. Move cables, and make your original drive the master of the first IDE channel, so it is assigned drive #0 again. You will need to change the boot sequence in your BIOS to match, of course.
  2. Boot in single user mode and edit /etc/fstab, changing all wd0 references to wd2.
  3. Give up and reinstall.
I'd recommend either option 1 or option 2.
I think option 2. Sounds like a simple fix.
BTW, I have one of those BIOSes that allow choosing a boot drive on the fly.

Best wishes.
Reply With Quote
  #5   (View Single Post)  
Old 4th September 2008
diw's Avatar
diw diw is offline
Port Guard
 
Join Date: Jul 2008
Posts: 45
Thanked 2 Times in 2 Posts
Thumbs up

That seems to have done the trick.
Took all of a minute. Well, perhaps part of a minute. :]

Best wishes.
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
Adding apps to an obscure OpenBSD based distro insomniadmx OpenBSD Packages and Ports 4 14th April 2009 12:10 PM
Adding a separate /home JMJ_coder NetBSD General 2 29th August 2008 10:45 AM
Adding Additional Video Card JMJ_coder General software and network 0 19th July 2008 07:16 PM
Having trouble adding 7.0 to GRUB 0.97 Arenlor FreeBSD General 4 26th June 2008 01:02 AM
Adding multiple lines into file c0mrade Programming 4 7th June 2008 11:03 PM


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


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