Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 90804

Summary: /etc/asound.state gets corrupted on shutdown on laptop with disk with 8MB cache
Product: Gentoo Linux Reporter: Ladislav Tomes <latomes>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ladislav Tomes 2005-04-28 17:51:36 UTC
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.
Comment 1 SpanKY gentoo-dev 2005-04-28 18:46:23 UTC
i doubt it ... gentoo init scripts run 'sync' many times before shutting down ... just read the tail end of halt.sh
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-18 06:25:08 UTC
Can't reproduce, as Mike said, the shutdown process calls sync to make sure that nothing gets lost.