December 17, 2017, 06:01:36 AM

News : LinuxSolved.com Linux Help Community Forum..


Poll

Sd card is getting corrupted????

driver problem
1 (100%)
kernel problem
0 (0%)

Total Members Voted: 1

Author Topic: SD card partition corrupted  (Read 1576 times)

Offline durgaprasad

  • New Member
  • Posts: 1
SD card partition corrupted
« on: November 11, 2009, 12:38:22 PM »
Hi all,
I have an transcend sd card in my embedded device.when i am running an application to test the sd card the sd card gets corrupted once in 100 times or less...
My sd card test application shall mount the sd card writes the 1 kb file to sd card and unmount the sd card and again mount the sd card reads the 1 kb file and compare with file written into sd card and unmounts the sd card.The sequence of steps is as follows:-
mount /dev/mmcblk1 /mnt/sd
write the 1 kb file
umount /mnt/sd

mount /dev/mmcblk1 /mnt/sd
read the 1 kb file and compares
umount /mnt/sd

if i perform the above test and power off and power on the embedded device and perform the test again if we do like this for 40-50 time the partition of the sd card is getting corrupted and i am not able access the content of the sd card either in linux or windows pc...I need to format the sdcard to access it again...

I would like to find a solution for why the card is getting corrupted...


Thanks in Advance...