mount /unmount

Chip Camden sterling at camdensoftware.com
Mon Jul 4 19:59:47 UTC 2011


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

I presume you meant to say "on a mounted partition"...?

-- 
.O. | Sterling (Chip) Camden      | http://camdensoftware.com
..O | sterling at camdensoftware.com | http://chipsquips.com
OOO | 2048R/D6DBAF91              | http://chipstips.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20110704/2b649332/attachment.pgp


More information about the freebsd-questions mailing list