Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jul 2011 12:59:41 -0700
From:      Chip Camden <sterling@camdensoftware.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: mount /unmount
Message-ID:  <20110704195941.GD2419@libertas.local.camdensoftware.com>
In-Reply-To: <4E1217DB.1090809@infracaninophile.co.uk>
References:  <CAOgxTUikp5XODhus35vt783s607Y%2Bz8JE3UoxL1dV8f=rS19Kw@mail.gmail.com> <4E11C059.3090708@infracaninophile.co.uk> <CAOgxTUga77i5fzOd9p%2BU%2B9fhdHdkEug2B=0BA%2BepjdR%2B_bpxJQ@mail.gmail.com> <4E1217DB.1090809@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110704195941.GD2419>