mount /unmount

Matthew Seaman m.seaman at infracaninophile.co.uk
Mon Jul 4 19:43:44 UTC 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-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 at infracaninophile.co.uk               Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20110704/4dd0eb4f/signature.pgp


More information about the freebsd-questions mailing list