Date: Fri, 28 Nov 2008 16:35:28 +0100 From: Ivan Voras <ivoras@freebsd.org> To: freebsd-questions@freebsd.org Subject: Re: repair v.7 installation Message-ID: <ggp340$19f$1@ger.gmane.org> In-Reply-To: <492FFDF8.1020705@videotron.ca> References: <492FFDF8.1020705@videotron.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
PJ wrote:
> I believe that my installation should be salvageable but I do not know
> how to phrase my search question.
> Here is the problem:
> Apparently due to some connector problem in the computer one or some
> files were damaged. I ran a regenerating program on the disk and all
> sectors are readable.
> How can I locate the problem files and repair or reinstall them without
> damaging other files?
Try reading all the files on the drive, something like
> find / -exec cat "{}" > /dev/null ";"
See if any files error out.
> From trying to boot the system, it appears that the problem is related
> to the login files: I boot to safe mode and get the logon prompt which
> is not accepted. I then get to the single user mode and can read the
Boot to a single-user mode and see if /etc/passwd and /etc/master.passwd
are ok. If so, regenerate the databases (easiest way is to run vipw).
> contents of the root (top or main) directory and subdirectories.
> The command "df" returns "-70016" under Avail and "104%" under Capacity,
> Mounted on / .
This doesn't necessarily mean there's an error. If you filled the file
system past its reserved space limit, it's normal to get negative
available bytes and over 100% usage. See also if you have a /lost+found
directory.
> Or is it possible to reinstall the system from the installation CD? I
> would like to avoid having to reinstall all the programs that run on
> this local development server - Apache, Samba, Cups, php, pstgresql, etc.
It is possible, with care, to reinstall the system from the CD media,
and keep all user settings. /usr/local/* will not be touched in any case
when performing an upgrade.
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJMA/AldnAQVacBcgRAtxMAKCpERhbvToJv0ufp/QSpq4H+m6YYQCdHofE
SjW4t7HZU+v+1JlWShOdLUM=
=U0WT
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ggp340$19f$1>
