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
[-- Attachment #1 --]
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-user
>> > mode, then definitely fsck any partitions before trying to mount them.
>> >
> *I guess If I can do fsck without unmount partition I can lost all my data
> 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
--
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
[-- Attachment #2 --]
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E1217DB.1090809>
