Author Topic: Quick question about rm -rf on SD card  (Read 2728 times)

projekt

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Quick question about rm -rf on SD card
« 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?

corster

  • Newbie
  • *
  • Posts: 38
    • View Profile
Quick question about rm -rf on SD card
« Reply #1 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-

rgrep

  • Full Member
  • ***
  • Posts: 149
    • View Profile
Quick question about rm -rf on SD card
« Reply #2 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 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.
[img]https://www.oesf.org/forums/style_emoticons/default/smile.gif\" border=\"0\" class=\"linked-sig-image\" /] Has: Dynamism C760 / Linksys WCF12 WiFi / Kingston 512MB SD
[img]https://www.oesf.org/forums/style_emoticons/default/biggrin.gif\" border=\"0\" class=\"linked-sig-image\" /] Loves: pdaXrom / Warwalking
[img]https://www.oesf.org/forums/style_emoticons/default/sad.gif\" border=\"0\" class=\"linked-sig-image\" /] Hates: NetGear MA701 WiFi / SanDisk 256MB SD / C760 Charging Faults