LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-18-2024, 10:51 PM   #1
joboy
Member
 
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 655

Rep: Reputation: 7
Why my SD card on cell phone keeps corrupting ?


I've got an annoying problem with cell phones, not only one but on different phones with different SD cards. The photos keep corrupting whenever I transfer them between internal storage or PC via card reader, mostly part of the photo can't be displayed. I've not done that with more than a few photos with USB coz it's too slow, was it the no. of photos matter ? but when I do backup it's always large no. of files to handle, or was Linux handling FAT32 not reliable ? the 256G card was formatted on the phone, or was it JPG has no error correction ? That's the reason why I don't want to use SD card on SBC like the Pi as system drive, USB flash is the better choice if not emmc or m.2
 
Old 02-19-2024, 01:52 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,852

Rep: Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310
It may depend on you. SD cards (and any other storage devices) should be umounted or ejected if you want to remove them. Otherwise the content can be corrupted.
 
Old 02-19-2024, 03:56 AM   #3
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,493

Rep: Reputation: Disabled
The phone may be using different sized sectors, format it in Linux, & see if the phone can read it.
 
Old 02-19-2024, 09:49 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,852

Rep: Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310
Quote:
Originally Posted by fatmac View Post
The phone may be using different sized sectors, format it in Linux, & see if the phone can read it.
I used to format it in the phone or camera, linux usually can read anything. But anyway, good idea.

Last edited by pan64; 02-19-2024 at 10:58 AM.
 
Old 02-19-2024, 10:00 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,705

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
I would assume a fairly modern phone would format a card using exFAT. As stated if the phone is still powered on you would need to unmount or eject the drive. If the phone is buffering writes you might be pulling the card during a write operation. If you are using a really old card reader it might not support large capacity memory cards.
 
Old 02-20-2024, 12:20 AM   #6
joboy
Member
 
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 655

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by michaelk View Post
I would assume a fairly modern phone would format a card using exFAT. As stated if the phone is still powered on you would need to unmount or eject the drive. If the phone is buffering writes you might be pulling the card during a write operation. If you are using a really old card reader it might not support large capacity memory cards.

Yes it's buffering, too much buffering to make you think the card is fast. I admitted I did not always play nice with the card, but I will check the CPU and drive activities to see if the system is busy writing before pull the card, and sometimes it does not allow me to pull the card said its still in use, but I don't see the PC is doing anything, so that I will pull the card.
That lead to other problem, the photo app on phone delayed action due to the slow card, it took ages to show my photos, and when I delete or rename one it said done, but it was still in the queue, since I did not see it done so I do it again, and removed some photos that I want to keep, I think this is particular troublesome on Android !
 
Old 02-21-2024, 09:20 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
I do not know what to say because in the last 10 years i have NEVER had a issue
 
Old 02-21-2024, 11:27 PM   #8
joboy
Member
 
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 655

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by John VV View Post
I do not know what to say because in the last 10 years i have NEVER had a issue

I got few bad SD in couple years, also got some bad full size SD for cameras. The most reliable way to transfer phone's photos is still using the phone itself or via USB, although slow it will take care of everything. I've 70G of photos and data on the SD, and I copy them to SSD via USB that's not too slow I can get up to 30Mb/s, but when I write back to SD via USB I can only get 1/10 the speed, so I took my risk to copy via card reader. I can slowly get up to 10Mb/s in an hr. and 2.5hrs. to complete the transfer, this time I waited enough time to make sure the writing is completed before eject. I don't understand why SBC like the Pi designed to use SD as system drive, we could use adapter for emmc/m.2 etc. of course, but the SD is removable, the contacts may not be reliable as other media types just to say the least.
 
Old 02-21-2024, 11:52 PM   #9
joboy
Member
 
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 655

Original Poster
Rep: Reputation: 7
I have not tried any of such "endurance card", anyone ?

https://www.youtube.com/watch?v=dFt0Nafx_Pw

Heat was one of the causes of failure, especially when copying large files on a slow card
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Raspberry Pi2 keeps crashing and corrupting disk enine Slackware - ARM 14 05-14-2015 06:15 PM
why did I lose my table cell lines format when I changed the cell 1sweetwater! Linux - Software 1 12-03-2014 04:06 PM
Why does open office put lines into adjacent cell when I am splitting one cell 1sweetwater! Linux - Software 1 12-03-2014 01:36 PM
My Linux installation keeps corrupting Nabeel Linux - Newbie 10 11-13-2009 09:43 AM
Why k3b is corrupting my CDs in Slackware 10.2? manishsingh4u Linux - Software 8 07-09-2006 02:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration