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 6th October 2009
plexter plexter is offline
Shell Scout
 
Join Date: May 2008
Posts: 124
Thanked 0 Times in 0 Posts
Exclamation OpenBSD Crashed **HELP**

Hi all,

Came home to find one of my BSD firewalls to be dead after a power failure.

I hoping this is recoverable. However I seem to be having trouble finding the information I need. (maybe I'm searching for the wrong thing?)

I get booted into single user mode when starting the system.

df only sees /

I do not have anything else no /etc ...etc

thus fsck does not work as I get the error

Code:
fstab: /etc/fstab: no such file or directory
fsck: Can't open checklist file: /etc/fstab
Can anyone assist with restoring my partitions, or am I doomed for re: installation?

Thanks!
Reply With Quote
  #2   (View Single Post)  
Old 7th October 2009
plexter plexter is offline
Shell Scout
 
Join Date: May 2008
Posts: 124
Thanked 0 Times in 0 Posts
Default

Okay never mind. I've figured it out. Feel a little silly.. but anyway working.

Feel free to delete this topic as it serves no purpose.
Reply With Quote
  #3   (View Single Post)  
Old 7th October 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,930
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by plexter View Post
Feel free to delete this topic as it serves no purpose.
It might serve some purpose for others if you were to describe both the solution & how it was determined.
Reply With Quote
  #4   (View Single Post)  
Old 7th October 2009
plexter plexter is offline
Shell Scout
 
Join Date: May 2008
Posts: 124
Thanked 0 Times in 0 Posts
Default

Well the problem was probably more to do with my own fault. The power going off was more I coincidence I think. :P

Basically a while ago I had run out of space on / (I never realized you can't adjust this if you have no un-partitioned space)

Figured I would move /etc which was storing a lot of space to /usr/etc and then I ln -s /usr/etc/ /etc and all seemed peachy.

I thought I had rebooted since then however. Perhaps it was a mix of the crash and the move.

In any case upon return from the power going off my system could no longer find /etc which would be required to boot for /etc/fstab...etc. Nor did I have access to it as it was on /usr which was not mounted.

From memory what I did to solve this was:

1. "guess" at which partition was my /usr luckily it was my last one "g" in my case. I mounted it "mount -t ffs /dev/sd0g /usr" --I imagine there are better ways than guessing?

2. Once I had /usr which contained my /etc I moved the large files out of /usr/etc and moved /usr/etc back to /etc

3. ran mount -a (mounts all partions)
4. ran fsck -y (checks and cleans)
5. ln -s the large files still on my /usr/... which would not effect booting.

All seems to be working now.

Note to self... don't move /etc again!

Comments?
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


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