View Single Post
  #4   (View Single Post)  
Old 7th October 2009
plexter plexter is offline
Shell Scout
 
Join Date: May 2008
Posts: 124
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