LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-11-2022, 09:10 AM   #1
paraparapa1
LQ Newbie
 
Registered: Nov 2022
Posts: 5

Rep: Reputation: 0
Can't format or repair SD card


So, my sd card stopped working today. I've been using it for a few months, installed triple-A games, and I bought it from sandisk on amazon.com, so I know it's not fake.

Problem description: doesn't show up, needs to be formatted (I'm on the steam deck (https://www.steamdeck.com/it/ this, based on arch linux) so it tells me when an sd card needs to be formatted), but the format process fails "there has been an error during format".

I've been trying a few things on windows, which didn't work:
Chkdsk: chkdsk is not supported on raw partitions error.
Delete the partition on the disk manager: cyclic redundancy check error.
Format on windows as NTFS and exFAT: fails.

Then, I deleted the partition with Gparted. Can't format it.

If I try to format it to ext4 with sudo mke2fs -t ext4 + path I found with sudo fdisk -l, it gets stuck at creating journal, then it fails. If I use sudo mkcs -I vfat + path it says invalid inode size. With -t in place of I, "partitions or virtual mappings on device not making filesystem use I to override.

On windows I can now delete the partition. I tried a utility for 32 formatting. Failed to set volume label GetLastError()=1005 no recognized filesystem.

Trying to format to NTFS or Exfat. Can't complete format...

Tried to use the fsck command on linux, but it spits this https://ibb.co/qYysW8T and I swear it's becoming a rabbit hole... -_-

Is there a way to save my sd card? It costed me 30 bucks .

All of this happened after I used some tools to convert the home partition to btrfs and also format new sd cards to btrfs, but I don't know if it has any relevance. I first used this program here https://gitlab.com/popsulfr/steamos-btrfs and succesfully converted the main partition to btrfs. I forgot that it formats new sd cards to btrfs, and then followed this guide. https://github.com/Trevo525/btrfdeck

Last edited by paraparapa1; 11-11-2022 at 09:17 AM.
 
Old 11-11-2022, 09:33 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by paraparapa1 View Post
So, my sd card stopped working today. I've been using it for a few months, installed triple-A games, and I bought it from sandisk on amazon.com, so I know it's not fake.

Problem description: doesn't show up, needs to be formatted (I'm on the steam deck (https://www.steamdeck.com/it/ this, based on arch linux) so it tells me when an sd card needs to be formatted), but the format process fails "there has been an error during format".

I've been trying a few things on windows, which didn't work:
Chkdsk: chkdsk is not supported on raw partitions error.
Delete the partition on the disk manager: cyclic redundancy check error.
Format on windows as NTFS and exFAT: fails.

Then, I deleted the partition with Gparted. Can't format it.

If I try to format it to ext4 with sudo mke2fs -t ext4 + path I found with sudo fdisk -l, it gets stuck at creating journal, then it fails. If I use sudo mkcs -I vfat + path it says invalid inode size. With -t in place of I, "partitions or virtual mappings on device not making filesystem use I to override.

On windows I can now delete the partition. I tried a utility for 32 formatting. Failed to set volume label GetLastError()=1005 no recognized filesystem.

Trying to format to NTFS or Exfat. Can't complete format...

Tried to use the fsck command on linux, but it spits this https://ibb.co/qYysW8T and I swear it's becoming a rabbit hole... -_-

Is there a way to save my sd card? It costed me 30 bucks .

All of this happened after I used some tools to convert the home partition to btrfs and also format new sd cards to btrfs, but I don't know if it has any relevance. I first used this program here https://gitlab.com/popsulfr/steamos-btrfs and succesfully converted the main partition to btrfs. I forgot that it formats new sd cards to btrfs, and then followed this guide. https://github.com/Trevo525/btrfdeck
So you had a 100% working card, then used 'some tools' to convert things/change file systems, and are surprised that it's not working now? Aside from having a flaky card (possible), there are some options for dealing with the cyclic error you're getting:
https://4ddig.tenorshare.com/hard-dr...%20CRC%20error.

You have to fix the errors you introduced first, before you can reformat.
 
Old 11-11-2022, 10:33 AM   #3
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,617

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
FYI: cards do fail. In fact, ALL cards fail, it is only a question of when, not if. It is possible that yours has failed.
 
Old 11-11-2022, 10:45 AM   #4
paraparapa1
LQ Newbie
 
Registered: Nov 2022
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
So you had a 100% working card, then used 'some tools' to convert things/change file systems, and are surprised that it's not working now? Aside from having a flaky card (possible), there are some options for dealing with the cyclic error you're getting:
https://4ddig.tenorshare.com/hard-dr...%20CRC%20error.

You have to fix the errors you introduced first, before you can reformat.
It's not like those tools are random things found on github though... but in any case, that's the point, I haven't been able to fix the errors...
The error checking tool in properties says I have to format first (said can't access disk a few minutes ago...)
CHKDSK says raw partitions are not supported.
The sd card doesn't have a windows directory, so I don't see how sfc scannow would be any useful... but I did it anyway. Didn't change anything.
 
Old 11-11-2022, 10:48 AM   #5
paraparapa1
LQ Newbie
 
Registered: Nov 2022
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by wpeckham View Post
FYI: cards do fail. In fact, ALL cards fail, it is only a question of when, not if. It is possible that yours has failed.
Yeah, but it would be kinda soon... only used it for a few months, even if I bought it a year ago. In any case, seems like amazon agreed to give me a refund, luckly. Whew...
 
Old 11-11-2022, 10:51 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by paraparapa1 View Post
It's not like those tools are random things found on github though... but in any case, that's the point, I haven't been able to fix the errors... The error checking tool in properties says I have to format first (said can't access disk a few minutes ago...)
CHKDSK says raw partitions are not supported.
The sd card doesn't have a windows directory, so I don't see how sfc scannow would be any useful... but I did it anyway. Didn't change anything.
...and the cyclic error is what you have to fix. There are many possible solutions which you can find. And as said, the card could be bad, or you did some unrecoverable damage to it by doing whatever it was you were trying to do. There were several things suggested, and we don't know what you did/tried. Cards go bad, and depending on the number of read/write cycles they can age VERY quickly.

More suggestions, and you can find many more yourself with a brief Internet search: https://appuals.com/fix-data-error-c...undancy-check/
 
Old 11-11-2022, 10:52 AM   #7
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,110
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
do a sudo fdisk -l or sudo parted -l to see if the operating even sees them 1st.

Then reboot if the cards are seen and look in bios that things are kosher.

The reboot also helps the operating system resee the card and makes it possible to format it as fat32.

Edit: Usually I blow away everything by making a msdos drive out of it using the device tab in gparted.
Let it finish.

Then pick new when done. Format it as fat32 and work from there later on.

Last edited by rokytnji; 11-11-2022 at 10:57 AM.
 
Old 11-11-2022, 10:59 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
7 posts? There was only one needed.

If you have write errord on an sdcard, REPLACE IT. Things only get worse.
 
Old 11-11-2022, 03:17 PM   #9
paraparapa1
LQ Newbie
 
Registered: Nov 2022
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by business_kid View Post
7 posts? There was only one needed.

If you have write errord on an sdcard, REPLACE IT. Things only get worse.
Yeah, about that... sorry for wasting you guys' time, but I found an sd card that costs less than what I paid for, and Amazon agreed to give me a refund if I send the item back. Maybe it's more wise of me to not fix the thing... assuming it's even possible and it's not just died. I heard sd cards die more quickly if you play AAA games on them...
 
Old 11-12-2022, 07:55 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
SDcards can only perform a low number or write cycles. So before you reacxh for fsck, the cartd is knackered.

Mark this solved then.
 
Old 11-12-2022, 11:33 AM   #11
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 480

Rep: Reputation: 179Reputation: 179
If looking for better durability, I'd suggest an external SSD drive. Better fit I think.
 
1 members found this post helpful.
Old 11-12-2022, 01:21 PM   #12
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,617

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Quote:
Originally Posted by rclark View Post
If looking for better durability, I'd suggest an external SSD drive. Better fit I think.
I second.
SSD external is getting cheap.
I went through several SD cards loading different distributions on a Pinebook Pro (Great fun!). I did have some good brands devices fail after a few uses. They are not really made to host and OS, although they ARE getting better. An SSD is actually MADE for this stuff!
 
Old 11-12-2022, 02:34 PM   #13
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Does anyone know
  1. The best brand to buy these days?
  2. The best filesystem to use when I have a choice?
  3. Good mount options?
 
Old 11-12-2022, 06:06 PM   #14
paraparapa1
LQ Newbie
 
Registered: Nov 2022
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by wpeckham View Post
I second.
SSD external is getting cheap.
I went through several SD cards loading different distributions on a Pinebook Pro (Great fun!). I did have some good brands devices fail after a few uses. They are not really made to host and OS, although they ARE getting better. An SSD is actually MADE for this stuff!
Just for clarity, the pc I'm referring to is a hybrid between a handheld gaming console and a pc, so there's an integrated sd card slot for extra space. The internal disk is an emmc the size of a 2230 nvme ssd, or a 2230 ssd depending on the version you're getting. I'm not using the sd card for the OS... At this point though, maybe I'd save money by buying one o' those 2230s and changing the internal drive for a bigger one, even if they're overpriced as heck...

Last edited by paraparapa1; 11-12-2022 at 06:09 PM.
 
Old 11-13-2022, 04:33 AM   #15
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by paraparapa1 View Post
Just for clarity, the pc I'm referring to is a hybrid between a handheld gaming console and a pc, so there's an integrated sd card slot for extra space. The internal disk is an emmc the size of a 2230 nvme ssd, or a 2230 ssd depending on the version you're getting. I'm not using the sd card for the OS... At this point though, maybe I'd save money by buying one o' those 2230s and changing the internal drive for a bigger one, even if they're overpriced as heck...
It wouldn't be too bad for a write-once-read-many OS. It would be really awful for anything that saves regularly - cache, save games, ramdisk, etc. The nvme is a better bet.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Boot repair won't repair boot on my weird machine DoctorWizard Linux - Hardware 10 04-30-2022 07:29 PM
LXer: Boot Repair Tool - Repair The Most Boot Related Problems LXer Syndicated Linux News 0 06-21-2017 09:49 PM
Message: A database connection error has been detected, we are attempting to repair the server, if the repair does not resolve the issue, pl deva420patra Linux - Server 4 11-23-2016 07:40 AM
boot repair log, easy A :) started to format /sd/sb2 mistake /sd/sb1 damage to boot markmat Linux - Newbie 4 09-09-2015 02:31 AM
I need a Linux OS other than Ubuntu which has a repair disk or repair software jhmac77 Linux - Newbie 1 03-17-2008 07:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12: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