How Do I Find Find?
jerrymc at msu.edu
Tue Mar 13 00:38:04 UTC 2007
On Mon, Mar 12, 2007 at 10:52:28AM -0700, Drew Jenkins wrote:
> I built a home server to prepare to build a new production server. Well, the latter is built out, but when I went back to the former, it said there was a problem with my last shutdown (which I don't remember) and went into single user mode. I went to run a "find" and it complained it couldn't find the "find" command! I thought, what the heck, no great loss, I'll just rebuild this machine. But after re-installing FBSD, it *still* can't find the "find" command! Now I'm worried! It wasn't in /usr/bin/ What happened to this installation??
That is because the file systems are not mounted in single user by
default. You need to do it by hand.
Here is a good sequence to use if you boot to single user.
fsck -p does a preen on file systems
mount -u / Gets root remounted to read/write
mount -a mounts everything else normally mounted
swapon -a starts using swap
Then you should be able to do any local thing (no network is up yet).
A couple of things might prevent this from going well if some thing got
smutched or if some part of the system is failing - rare but happens.
It is possible the fsck might fail and you have to repeat it a couple
of times to get it to complete. Do it and say 'y' to anything it wants to do.
If a file system is failing, you might no be able to mount it. Hopefully
it won't be / or /usr or it will be hard to recover.
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions