unmounting a filesystem safely that doesn't exist anymore

Björn König bkoenig at cs.tu-berlin.de
Mon Jun 12 07:45:43 UTC 2006


Peter Jeremy schrieb:
> On Sat, 2006-Jun-10 19:40:41 +0200, Bjrn Knig wrote:
> 
>>I did a mistake: I unplugged my digital camera accidentally before I 
>>unmounted the filesystem. *doh* This happens very often, because I'm 
>>very scatterbrained. =)
> 
> 
> Your best solution may be to use mtools (ports/emulators/mtools) rather
> than mounting the filesystem.
> 
> 
>>changed ad hoc. I just want to know if somebody knows a workaround or 
>>small trick that prevents the other filesystems from being unclean on 
>>next boot-up.
> 
> 
> The only way to do this is to have all the other filesystems mounted
> read-only.  The "filesystem clean" flag is part of the superblock and
> is cleared when a filesystem is mounted.  It will be set only if the
> filesystem is cleanly unmounted.

Thank you very much for these information. They help me a lot.

Björn

P.S. I get the feeling questions@ would had been a better place for my 
question. ;-)


More information about the freebsd-stable mailing list