Date: Mon, 29 Oct 2007 00:03:06 +0100 From: Roland Smith <rsmith@xs4all.nl> To: Gary Kline <kline@tao.thought.org> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: slight emergency here... Message-ID: <20071028230306.GD39510@slackbox.xs4all.nl> In-Reply-To: <20071028215454.GA52631@thought.org> References: <20071028215454.GA52631@thought.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--pZs/OQEoSSbxGlYw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 28, 2007 at 01:54:54PM -0800, Gary Kline wrote: > Guys, >=20 >=20 > I think I've found the reason for the intermittent rashes. > Part of /var is bad, and fsck cannot allocate inoinfo to repair > the damage. Oops. If fsck can't fix it, that's not good. Have you tried running fsck by hand, i.e. without -p? If you run it from the console it can fix a bit more than when running in preen mode, but this may result in data loss. =20 > At any rate, how do i as root, single user, cp -rp all of /var to > elsewhere (/storage) and rmdir /var, them mkdir /var and copy > everything back?? I've forgotten the cpio magic command.=20 Make sure that the hardware isn't broken. If you have (S)ATA disks, use 'smartctl -a /dev/<yourdevice>'. The canonical way to make backups is to use dump(8). Unmount /var and use 'dump -0 -a -f <dumpfile>'.=20 But if the filesystem is really hosed, it might not be possible to copy everything. In that case make a copy with dd of the partition that /var is on so you can try to save any data that has not been backed up. Probably the safest way to go is to newfs the filesystem that /var is on and restore your latest backup. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --pZs/OQEoSSbxGlYw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHJRUqEnfvsMMhpyURAmcWAJ93k27NJBGgrbLMHsC9tMXgu1RtXgCeIxcD VJFgZkRkLb6XSjE5aiAqzxk= =pMwd -----END PGP SIGNATURE----- --pZs/OQEoSSbxGlYw--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071028230306.GD39510>