You are not logged in.

#1 2024-07-11 08:49:13

Anony324
Member
Registered: 2023-07-11
Posts: 17

Unable to format my SD-Card

I have a SD-Card lying around

I wanna format it for my personal use so i tried formatting it and could not do it and saw it has a write protection so i removed it so i changed it

sudo hdparm -r0 /dev/sdb1

/dev/sdb1:
setting readonly to 0 (off)
readonly      =  0 (off)


still i could not format it
for formatting i am using Disk's by gnome i get a error

Error synchronizing after initial wipe: Timed out waiting for object (udisks-error-quark, 0)

Tried Gparted and its also not working tried to change to ext4 format
but saw something there when i checked the details of it, it was showing

Warning
Unable to read the contents of this file system!
Because of this some operations may be unavailable.
The cause might be a missing software package.
The following list of software packages is required for fat32 file system support:  dosfstools, mtools.


currently the card is in fat32 format

Last edited by Anony324 (2024-07-11 08:51:35)

Offline

#2 2024-07-11 08:57:20

stas-t
Member
Registered: 2019-05-21
Posts: 8

Re: Unable to format my SD-Card

You have the answer in the warning you see smile
Install dosfstools and mtools:

sudo pacman -S dosfstools mtools

You need at least dosfstools to format the partitions/device in fat32 because it has the required binary: /usr/bin/mkfs.vfat

Offline

#3 2024-07-11 09:18:11

Anony324
Member
Registered: 2023-07-11
Posts: 17

Re: Unable to format my SD-Card

I have installed both dosfstools mtools but still i am not able to format my sdcard
@stas-t

Offline

#4 2024-07-11 11:39:56

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Unable to format my SD-Card

Please run this command in a terminal as the root user and share the full output:

mkfs.vfat /dev/sdb1

Thanks.


Jin, Jîyan, Azadî

Offline

#5 2024-07-11 12:37:06

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 74,731

Re: Unable to format my SD-Card

Error synchronizing after initial wipe

Can you read/write other cards in the same reader?
Can you read/write the concerned card in other readers (on other hosts)?

Online

#6 2024-07-14 02:42:20

Anony324
Member
Registered: 2023-07-11
Posts: 17

Re: Unable to format my SD-Card

no i cannot

Offline

#7 2024-07-14 05:53:23

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 74,731

Re: Unable to format my SD-Card

You cannot "what" and "why", there're two questions and if the answer is just "I don't have another card or reader" that's also pointless.
There's a good chance the card is simply dead.

Online

#8 2024-07-14 07:48:46

Anony324
Member
Registered: 2023-07-11
Posts: 17

Re: Unable to format my SD-Card

I am only able to read the card from the card reader and another card reader
The card works on another hosts and is able to read but cannot write both in my linux machine as well as in my another windows machine
My main reader works fine i have bunch of another card for other purpose it works fine and another card reader works but this card it is not able to write it can only read this card ( this card does not have a lock switch)

Offline

#9 2024-07-14 07:51:19

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 74,731

Re: Unable to format my SD-Card

this card does not have a lock switch

Is this actually some garden varienty SD card or some speciality? Have you ever been able to write it?

Online

#10 2024-07-17 09:28:54

Anony324
Member
Registered: 2023-07-11
Posts: 17

Re: Unable to format my SD-Card

I haven't wrote anything in it
It was a sd-card from my online class which have prerecorded classes

Offline

#11 2024-07-17 11:52:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 74,731

Re: Unable to format my SD-Card

There's a good chance the card defaults to read-only

this card does not have a lock switch

What does that look like? Is there a notch? Does it help if you tape that off?
https://i.sstatic.net/jr0Ms.jpg

Online

Board footer

Powered by FluxBB