|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
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 Thanks! |
|
|||
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. |
|
|||
It might serve some purpose for others if you were to describe both the solution & how it was determined.
|
|
|||
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? |
Thread Tools | |
Display Modes | |
|
|