From owner-freebsd-questions@FreeBSD.ORG Mon Jul 4 19:59:47 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56AC41065670 for ; Mon, 4 Jul 2011 19:59:47 +0000 (UTC) (envelope-from sterling@camdensoftware.com) Received: from wh1.interactivevillages.com (ca.2e.7bae.static.theplanet.com [174.123.46.202]) by mx1.freebsd.org (Postfix) with ESMTP id 1DE178FC13 for ; Mon, 4 Jul 2011 19:59:46 +0000 (UTC) Received: from 184-78-197-203.war.clearwire-wmx.net ([184.78.197.203] helo=_HOSTNAME_) by wh1.interactivevillages.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1QdpJ1-0004jK-Js for freebsd-questions@freebsd.org; Mon, 04 Jul 2011 12:59:20 -0700 Received: by _HOSTNAME_ (sSMTP sendmail emulation); Mon, 04 Jul 2011 12:59:41 -0700 Date: Mon, 4 Jul 2011 12:59:41 -0700 From: Chip Camden To: freebsd-questions@freebsd.org Message-ID: <20110704195941.GD2419@libertas.local.camdensoftware.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <4E11C059.3090708@infracaninophile.co.uk> <4E1217DB.1090809@infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LTeJQqWS0MN7I/qa" Content-Disposition: inline In-Reply-To: <4E1217DB.1090809@infracaninophile.co.uk> User-Agent: Mutt/1.4.2.3i Company: Camden Software Consulting URL: http://camdensoftware.com X-PGP-Key: http://pgp.mit.edu:11371/pks/lookup?search=0xD6DBAF91 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - wh1.interactivevillages.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - camdensoftware.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: mount /unmount X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2011 19:59:47 -0000 --LTeJQqWS0MN7I/qa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoth Matthew Seaman on Monday, 04 July 2011: > On 04/07/2011 15:53, tethys ocean wrote: > >> If a partition was not unmounted cleanly (eg. the machine crashed, or > >> > the power was cut off suddenly) then fsck(8) should be used to check= and > >> > fix any problems on the filesystem. If you've booted into single-us= er > >> > mode, then definitely fsck any partitions before trying to mount the= m. > >> > > > *I guess If I can do fsck without unmount partition I can lost all my d= ata > > isn't it?* >=20 > fsck on an unmounted partition will change on-disk data structures in > ways that the kernel doesn't expect. So, yes, one consequence is that > you can lose or corrupt data. You probably wouldn't lose everything in > the partition -- but you would tend to cause corruption predominantly in > files that are more actively used. >=20 > So don't do that. >=20 > Cheers, >=20 > Matthew >=20 > --=20 > Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard > Flat 3 > PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate > JID: matthew@infracaninophile.co.uk Kent, CT11 9PW >=20 I presume you meant to say "on a mounted partition"...? --=20 =2EO. | Sterling (Chip) Camden | http://camdensoftware.com =2E.O | sterling@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com --LTeJQqWS0MN7I/qa Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQEcBAEBAgAGBQJOEhutAAoJEIpckszW26+RehkH/1YDRqlox6zSIi4gManxrIWS iWO31i+DPpFIqx2/2F9CZhSQdGMNaabGPYW12An0VVHOK6Vsb5Xq0Kx59ykqFO0c KXDcsOo/FLKbiLB8/7yuO5iHqc7y4voo3UCts+U0nlBE9zhXQLlL6zuxQ3c/HJuH gTiaHVfm+JgXsqLcsfU0M9bldQjH3HFnpqPyjC4tvwxkNpKRBBwmVhgXF3OI6OSe l/dhGNH2lJN0kERmYb/W9/2F4gpxa3I3TJwDzSQwD3BoMQR1qVUT2178O57Jf1GE L1JukF1d9u0owtCnmwZ1LPpaJRESikWoL1+pduBgZR2E7Wrk/vOlNHUGveLwNZs= =+8uz -----END PGP SIGNATURE----- --LTeJQqWS0MN7I/qa--