Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Jul 2011 20:43:23 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        tethys ocean <tethys.ocean@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: mount /unmount
Message-ID:  <4E1217DB.1090809@infracaninophile.co.uk>
In-Reply-To: <CAOgxTUga77i5fzOd9p%2BU%2B9fhdHdkEug2B=0BA%2BepjdR%2B_bpxJQ@mail.gmail.com>
References:  <CAOgxTUikp5XODhus35vt783s607Y%2Bz8JE3UoxL1dV8f=rS19Kw@mail.gmail.com> <4E11C059.3090708@infracaninophile.co.uk> <CAOgxTUga77i5fzOd9p%2BU%2B9fhdHdkEug2B=0BA%2BepjdR%2B_bpxJQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig81A417D03DA005E951662DC8
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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

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.

So don't do that.

	Cheers,

	Matthew

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


--------------enig81A417D03DA005E951662DC8
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4SF+IACgkQ8Mjk52CukIx+XACgjqGCxbZtQvU1zt13rrBYEOMT
EREAnjpj7abxJXlJCm9wDLP7tBHCqqEw
=hOdF
-----END PGP SIGNATURE-----

--------------enig81A417D03DA005E951662DC8--



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