Randomly but frequently on regular shutdown of laptop using HD with 8MB cache, /etc/asound.state gets corrupted (truncated incomplete file). SAVE_ON_STOP="on" is set in /etc/init.d/alsasound, root is JFS fs, mounted with "sync" option. I have reproduced error several times, allways after shutdown, never during normal operation. I did not noticed any other file corruption. Slackware shutdown script used to wait (1 second or so) to allow laptop harddisks to flush cache and finish syncing before powering down machine. I wonder if Gentoo power down/reboot is too fast for some disks. Reproducible: Sometimes Steps to Reproduce: 1. 2. 3.
i doubt it ... gentoo init scripts run 'sync' many times before shutting down ... just read the tail end of halt.sh
Can't reproduce, as Mike said, the shutdown process calls sync to make sure that nothing gets lost.