title: SD card data sometimes NOT seen on PC when connected in USB mass storage mode (via phone)
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/10643476/sdcard-content-exist-but-cant-see-them">SDCard content exist but cant see them</a>  </p>
  </blockquote>
  
  
  
  <p>Phone running Linux Kernel(2.6.31) with SD card inserted. </p>
  
  <p>[ISSUE] When data is written to SD card (write syscall) the write returns successfully. However, when the card (via phone) is accessed as a mass storage device on PC, the data is not seen.</p>
  
  <p>Only after physically removing the card and reinserting it and then accessing it on PC as a mass storage device will show the data that was written.
  Tried fsync() after writing the data. Still it wont show. </p>
  
  <p>Is the kernel maintaining a cache before writing the data to SD card? If so, how do I make sure it is flushed to the SD card?</p>
  
  <p>[edit] removed tag MMC</p>