Results 1 to 5 of 5
guys i was once told that after i create a new partition, i should also make use of sync.. i found very few info on google. . .cn somebody explain ...
- 12-14-2005 #1Linux Newbie
- Join Date
- Nov 2005
- Location
- Philippines
- Posts
- 198
what is SYNC? ? ?
guys i was once told that after i create a new partition, i should also make use of sync.. i found very few info on google. . .cn somebody explain to me wat does SYNC do? ? thanks
P4 1.8, 1G DDR ram, 64mb GF2 MX400, 80G WD and 40G Maxtor, ECS mobo. Playing XP,Slack 12.0 and Vector Linux 5.8 GOLD, STD 6.0 Zenwalk 4.6.1, OpenBSD 3.9
- 12-14-2005 #2Just Joined!
- Join Date
- Aug 2005
- Location
- Berkshire, UK
- Posts
- 80
Flushes the buffers so that the disk has a fully up-to-date version of any changes made to it.
- 12-14-2005 #3Linux Newbie
- Join Date
- Nov 2005
- Location
- Philippines
- Posts
- 198
so considering i have created the new partition USING CFDISK.. when and where i would type sync? ?
P4 1.8, 1G DDR ram, 64mb GF2 MX400, 80G WD and 40G Maxtor, ECS mobo. Playing XP,Slack 12.0 and Vector Linux 5.8 GOLD, STD 6.0 Zenwalk 4.6.1, OpenBSD 3.9
- 12-14-2005 #4
sync just forces the file system buffers to flush. it should be synced automatically every n seconds (depends on FS and configs I'd guess) and on umounting.
So, simle answer, when you need to make sure that all disk writes are commited - eg, before doing something that possibly could crash the kernel (like forcefully unloading kernel modules).Regards Scienitca (registered user #335819 - http://counter.li.org )
--
A master is nothing more than a student who knows something of which he can teach to other students.
- 12-16-2005 #5
You could specify it in /etc/fstab as an filesystem option. Very handy for floppy drives and usbsticks which can be ejected/pulled of unexpectedly.
I\'m so tired .....
#200472


Reply With Quote
