OESF Portables Forum

General Forums => General Discussion => Topic started by: projekt on August 30, 2004, 06:35:41 pm

Title: Quick question about rm -rf on SD card
Post by: projekt on August 30, 2004, 06:35:41 pm
I have a sandisk 256 SD card. I noticed when using rm -rf on some of my folders I received something like this in return...

# rm -rf include
rm: unable to stat `include/rpcsvc/bootparam.h': Input/output error
rm: unable to stat `include/rpcsvc/bootparam_prot.x': Input/output error
rm: unable to stat `include/rpcsvc/key_prot.x': Input/output error
rm: unable to stat `include/rpcsvc/klm_prot.x': Input/output error
rm: unable to stat `include/rpcsvc/nfs_prot.x': Input/output error
rm: unable to remove `include/rpcsvc': Directory not empty
rm: unable to stat `include/asm/arch/SA-1111.h': Input/output error
rm: unable to remove `include/asm/arch': Directory not empty
rm: unable to remove `include/asm': Directory not empty
rm: unable to remove `include': Directory not empty


I don't know much about how the Zaurus deals with SD.  I am guessing this might be a normal problem or is it possible to remove these useless directories via other means?
Title: Quick question about rm -rf on SD card
Post by: corster on August 30, 2004, 06:54:25 pm
I have had long standing issues with my sandisk SD card. The file system keeps getting corrupted. I am in the process of trying new things to see if I can fix it, but I will probably end up getting a different card anyway.

-cor-
Title: Quick question about rm -rf on SD card
Post by: rgrep on August 31, 2004, 02:03:23 am
I had a lot of trouble with filesystem corruption and I/O errors on a 256MB SanDisk SD card.  The cause turned out to be badblocks on the card.  It took me a while to realise I could do a badblock scan of the card, like you would for a hard disk.

See this post (https://www.oesf.org/forums/index.php?showtopic=5772&view=findpost&p=36023) for instructions on doing a scan.  If you do find you have bad blocks let me know and I can post instructions on partitioning your card to avoid them.  However if your card is still under warranty then you should just return it and buy another card (or a different brand).

I used my refund from SanDisk to buy a 512MB Kingston SD and haven't had any more problems.  I now badblock scan every new card I buy and return them if they have any problems.