1

I have a weired scenario on a Production unit. There is a SD card on the unit. I can create a file in the SD card and it shows that the newly created file exists there. I can do read/write operation on that file also. But when the unit is rebooted, this newly created file does not exists anymore. During unit boot-up, there are few SD card checks done by which it appears that there were some SD card issue and it got recovered.
Is there any way I can check whether the newly created file is saved or not? I need to make sure that the new file actually saved and it exists there even after the unit reboot.

[Edited] Is this SD card is really Bad? I have also tried to delete an old-existing file and do a unmount/mount of the SD card. But deleted file again appeared after remount.

  • What kind of Unit you are talking about? Are you able to issue mount/umount commands? – Winnie Tigger Sep 5 '18 at 5:41
  • Yes, mount command works and shows the SD card as Rad/Write. Unit is a home security device, – Ravi Sep 5 '18 at 5:42
  • What happens if you unmount the SD instead of a reboot? Will the file be there after mounting the SD again? – Winnie Tigger Sep 5 '18 at 5:47
  • Created a new file, did unmount and mount again. New file does not exists after mount. – Ravi Sep 5 '18 at 7:28
  • Thats odd. Can you please try to do the following? mount sd-card then create a new file. After that use the command sync. Than do the umount/mount again to see what happened. – Winnie Tigger Sep 5 '18 at 10:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.