[KLUG Members] mount and umount

Adam Tauno Williams adam at morrison-ind.com
Thu Jan 19 13:23:24 EST 2006


On Thu, 2006-01-19 at 12:56 -0500, Eric Beversluis wrote:
> On Thu, 2006-01-19 at 12:14 -0500, Michael Lueck wrote:
> > On Thu, 19 Jan 2006 12:04:03 -0500, Eric Beversluis wrote:
> > 
> > >What is "sync"?
> > 
> > Commits work to the physical disks... kind of a flush kind of an idea.
> > 
> > Sounds like here in lies the problem, hua?! LOL ;-) ALWAYS sync after you are
> > done umount'ing.
> > 
> AFTER unmounting? What gets written to where then if the filesystem in
> question is already unmounted?

Writes actually go to the DEVICE, the filesystem is just a concept.
Although I think the unmount operation should cause a sync to occur - I
though that was normal behaviour on  current kernels.   Or you can just
mount it with the "sync" option ("-o sync") and file operations will be
done syncronously - slower, but safer.  When SuSe automounts my USB
drive it sets it as "sync" so that I can pretty much unplug it whilly
nilly.

awilliam at aleph:~> mount
/dev/hda3 on / type xfs (rw)
/dev/hda1 on /boot type ext3 (rw,acl,user_xattr)
/dev/sda1 on /media/usbdisk type subfs (rw,nosuid,nodev,sync,fs=xfs) <<<
USB Drive

> just the command 'sync'? Or options?

No options.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.kalamazoolinux.org/pipermail/members/attachments/20060119/caa2fa70/attachment.bin


More information about the Members mailing list