| 
	|||||||
![]()  | 
            
        
    
| 
             | 
        Thread Tools | Search this Thread | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 Connoisseur 
			
			![]() ![]() ![]() Posts: 52 
				Karma: 216 
				Join Date: Apr 2010 
				
				
				
				Device: PRS-T1 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Log files disappearing after SD card unmount (buggy sync?), anyone seen this before?
			 
			
			
			I've encountered something very strange... as a result, I don't really know what question to ask exactly, other than: has anyone else seen this before? 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Basically, I mount the SD card on /tmp/sd_card like so: Code: 
	mkdir -p /tmp/sd_card mount -t vfat -o noatime,nodiratime,iocharset=utf8,shortname=winnt /dev/sdmscard/sdmsa1 /tmp/sd_card Code: 
	#!/bin/sh PATH="/usr/local/bin:/usr/bin:/sbin:/bin:/usr/local/sony/bin:/usr/sbin" LD_LIBRARY_PATH="/opt/sony/ebook/application:/lib:/usr/lib:/usr/local/sony/lib:/opt/sony/ebook/lib" SD_CARD=/tmp/sd_card SD=$SD_CARD/reader OUT=$SD_CARD/reader_out export OUT SD # working directory WD=$SD LOG=$OUT/main.log export WD LOG # Add our bin and lib on the SD reader PATH="$WD/bin:$PATH" LD_LIBRARY_PATH="$WD/lib:$LD_LIBRARY_PATH" export PATH LD_LIBRARY_PATH mkdir -p $OUT echo main.sh begins > $LOG $WD/programs/fb >> $LOG 2>&1 echo main.sh ends >> $LOG sync sync return 0 Code: 
	sync umount /tmp/sd_card Code: 
	cp $LOG /dev/null This also does not happen if I put the log under the /tmp filesystem and copy it across after main.sh finishes running. Surely all relevant file buffers should be flushed upon a umount, but even if not, I call sync multiple times, only to get ignored. Grr. If I can't figure this out I will reformat the SD card into ext2 rather than vfat, as it seems I've got a working ext2 filesystem driver installed on my reader now... maybe the problems will go away then. My instinct tells me that the proprietary MS/SD card driver by SONY may well be buggy. Unfortunately, it's closed source, so I can't really confirm that. Any ideas? This is the last roadblock to my being able to run programs off the SD card in a stable fashion  
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 PRS+ author 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,637 
				Karma: 2446233 
				Join Date: Dec 2007 
				
				
				
				Device: Sony PRS-300, 505, 600, 650, 950 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Xaphiosis 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I used to log stuff to SD card (for a couple of days) on 505 from tinyhttp.sh and didn't have any problems with it (not even calling sync). This is the command I've used: Code: 
	mount -t vfat -o utf8 -o shortname=mixed /dev/sdmscard/r5c807a1 /opt/mnt/sd  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Connoisseur 
			
			![]() ![]() ![]() Posts: 52 
				Karma: 216 
				Join Date: Apr 2010 
				
				
				
				Device: PRS-T1 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Hmm. The only two things that are different is my mount target is in under /tmp while yours is under /opt, which shouldn't matter, and I use winnt (which I pulled out of sony's .so files) rather than 'mixed'. I'll try your settings and see if that helps. Still looks like a bug in SONY's driver or the VFAT filesystem driver for that kernel version. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Thanks for your input kartu! Knowing it used to work on the 505 is useful knowledge  
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Disappearing txt files?!? | JaneFancher | Sigil | 2 | 06-26-2010 03:55 PM | 
| Automatic sync to a memory card (reader) | klikklak | Calibre | 3 | 03-27-2010 12:42 AM | 
| Disappearing files | Argel | Calibre | 8 | 02-14-2010 11:42 PM | 
| Files disappearing! | The CB | Calibre | 2 | 08-11-2009 07:23 PM |