You are not logged in.

#1 2018-06-13 09:00:40

overkill22
Member
Registered: 2016-01-16
Posts: 38

Can't format SD card with anything - ADVANCED

In the past this forum (actually the old #!) was the only one that helped me solving some advanced issues. I hope this time I'll get this working since I'm losing hope.

I bought a new Sandisk SD card 64Gb, used on an Android 7.0 (marshmallow) smartphone as INTERNAL MEMORY. After one month something in the phone went wrong and there was a corrupted file. As a protection Android set the card as read-only. I already backed up all the files and now I want to use the SD card again but I'm not able to format in ANY WAY.
I tried:

sudo dd if=/dev/zero of=/dev/sdb
sudo dd if=/dev/zero of=/dev/sdb bs=512 count=1
sudo dd if=/dev/zero of=/dev/sdb bs=1M count=10
sudo dd if=/dev/urandom of=/dev/sdb bs=16M
sudo badblocks -wsv /dev/sdb
sudo mount -o remount,rw /dev/sdb1
sudo fsck /dev/sdb
sudo fsck /dev/sdb1
sudo fsck /dev/sdb2
sudo e2fsck -b 8193 /dev/sdb2
sudo e2fsck -b 32768 /dev/sdb2

parted, gparted, fsck, hdparm,I also end up trying windows to get the card formatted. All without luck.

I also tried changing the permission

sudo chmod -R 777 /dev/sdb1
sudo chmod -R 777 /dev/sdb2
sudo chmod -R 777 /dev/sdb
sudo hdparm -r 0 /dev/sdb
sudo mount -o remount,rw /dev/sdb1
sudo mount -o remount,rw /dev/sdb
sudo mount -o remount,rw /dev/sdb2

and a lot of other stuff, without luck. Please don't ask me is the lock switch is in the lock position because it is glued in UNLOCK position.

In gparted I end up seeing the two partition of Android, one of 16Mb and another one of the rest of the space.
Now for some reason I can dd only the first 4Gb of the card and on gparted I can see the card as 4Gb without a partition table but I can't format or do anything.
if I run

lsblk -o NAME,FSTYPE,MOUNTPOINT,PARTLABEL,SIZE,RO

I see the size is 64Gb but there is no FSTYPE and the RO is 0.

I really don't know what to do. I refuse to think it is broken or damaged because it isn't and it would be the second in a few months used on the same phone.

Any help is appreciated. If I have to run some commands please remember I'm not so skilled as you, so a complete command line would be appreciated (with the explanation of what it does will be even better so I learn something new).

I'm writing on this forum because I always found the BEST HELP when it comes to this advanced stuff. Thank you in advance.

Last edited by overkill22 (2018-06-13 09:05:48)

Offline

#2 2018-06-13 10:08:07

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 519

Re: Can't format SD card with anything - ADVANCED

First of all: did you insert your SD card into the slot in laptop, or are you trying to do formatting the card while it is inside phone (and the phone is connected via USB)?

AFAIK, when SDCard is inserted directly into the laptop, usually it is not /dev/sdb but something like /dev/mmcblk0 or something similar ...

If you are trying to do it through phone, I doubt it will work.

Please try this:
- before you insert SDCard into the laptop, execute

$ sudo dmesg -w

- insert the SDCard into the laptop, and examine (and possibly post) the output

Also, please post output of

$ df -h
$ lsblk

before and after SDCard is inserted into laptop.


Postpone all your duties; if you die, you won't have to do them ..

Offline

#3 2018-06-13 10:57:57

overkill22
Member
Registered: 2016-01-16
Posts: 38

Re: Can't format SD card with anything - ADVANCED

After inserting the sd car I got this

[58654.669270] usb 1-8: new high-speed USB device number 25 using xhci_hcd
[58654.812098] usb 1-8: New USB device found, idVendor=058f, idProduct=6366
[58654.812110] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[58654.812120] usb 1-8: Product: Flash Card Reader/Writer
[58654.812130] usb 1-8: Manufacturer: Generic
[58654.812139] usb 1-8: SerialNumber: 058F63666485
[58654.813491] usb-storage 1-8:1.0: USB Mass Storage device detected
[58654.814382] scsi host2: usb-storage 1-8:1.0
[58655.818543] scsi 2:0:0:0: Direct-Access     Multiple Card  Reader     1.00 PQ: 0 ANSI: 4
[58655.820249] sd 2:0:0:0: Attached scsi generic sg1 type 0
[58656.280072] sd 2:0:0:0: [sdb] 124735488 512-byte logical blocks: (63.9 GB/59.5 GiB)
[58656.282085] sd 2:0:0:0: [sdb] Write Protect is off
[58656.282099] sd 2:0:0:0: [sdb] Mode Sense: 23 00 00 00
[58656.284108] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
[58656.332344] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[58656.332358] sd 2:0:0:0: [sdb] tag#0 Sense Key : Not Ready [current] 
[58656.332386] sd 2:0:0:0: [sdb] tag#0 <<vendor>>ASC=0xff <<vendor>>ASCQ=0xff 
[58656.332400] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[58656.332407] print_req_error: I/O error, dev sdb, sector 0
[58656.332422] Buffer I/O error on dev sdb, logical block 0, async page read
[58656.333174] ldm_validate_partition_table(): Disk read failed.
[58656.333192] Dev sdb: unable to read RDB block 0
[58656.334063]  sdb: unable to read partition table
[58656.339229] sd 2:0:0:0: [sdb] Attached SCSI removable disk

Without SD:

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.9G  3.9G     0 100% /dev
tmpfs           789M   42M  747M   6% /run
/dev/sda3       9.5G  8.0G 1022M  89% /
tmpfs           3.9G   23M  3.9G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
tmpfs           3.9G  3.7M  3.9G   1% /tmp
/dev/sda4       221G  151G   59G  72% /home
/dev/sda1        99M  3.5M   96M   4% /boot/efi
cgmfs           100K     0  100K   0% /run/cgmanager/fs
tmpfs           789M   60K  788M   1% /run/user/1000
$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 238.5G  0 disk 
├─sda4   8:4    0 224.6G  0 part /home
├─sda2   8:2    0     4G  0 part [SWAP]
├─sda3   8:3    0   9.8G  0 part /
└─sda1   8:1    0   100M  0 part /boot/efi

With SD:

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.9G  3.9G     0 100% /dev
tmpfs           789M   42M  747M   6% /run
/dev/sda3       9.5G  8.0G 1022M  89% /
tmpfs           3.9G   23M  3.9G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
tmpfs           3.9G  3.7M  3.9G   1% /tmp
/dev/sda4       221G  151G   59G  72% /home
/dev/sda1        99M  3.5M   96M   4% /boot/efi
cgmfs           100K     0  100K   0% /run/cgmanager/fs
tmpfs           789M   52K  788M   1% /run/user/1000
$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sdb      8:16   1  59.5G  0 disk 
sda      8:0    0 238.5G  0 disk 
├─sda4   8:4    0 224.6G  0 part /home
├─sda2   8:2    0     4G  0 part [SWAP]
├─sda3   8:3    0   9.8G  0 part /
└─sda1   8:1    0   100M  0 part /boot/efi

I tried to format from the phone using the formatting option in the phone but it didn't work. I didn't try the SD card in the phone and the phone connected to the laptop via USB.

Last edited by overkill22 (2018-06-13 11:53:12)

Offline

#4 2018-06-13 12:05:23

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 519

Re: Can't format SD card with anything - ADVANCED

OK, what is output of

$ sudo fdisk -l /dev/sdb

(wtih SD card in computer)?


Postpone all your duties; if you die, you won't have to do them ..

Offline

#5 2018-06-13 12:08:23

sleekmason
Member
Registered: 2018-05-22
Posts: 142

Re: Can't format SD card with anything - ADVANCED

This is a known issue with sandisk 32 and 64 bit cards.   Here is just one example of many:  https://androidforums.com/threads/if-yo … ve.590944/
Generally, I have seen the samsung cards as the way to go.


"Nothing in the world can take the place of Persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination alone are omnipotent." - Calvin Coolidge

Offline

#6 2018-06-13 12:11:57

overkill22
Member
Registered: 2016-01-16
Posts: 38

Re: Can't format SD card with anything - ADVANCED

iMBeCil wrote:

OK, what is output of

$ sudo fdisk -l /dev/sdb

(wtih SD card in computer)?

yes, everything I've done via terminal is done with SD card in the computer.

Offline

#7 2018-06-13 12:17:06

overkill22
Member
Registered: 2016-01-16
Posts: 38

Re: Can't format SD card with anything - ADVANCED

sleekmason wrote:

This is a known issue with sandisk 32 and 64 bit cards.   Here is just one example of many:  https://androidforums.com/threads/if-yo … ve.590944/
Generally, I have seen the samsung cards as the way to go.

It's a problem dated 2012. Don't think is related. I think it is more about some permit that Android set on the encrypted card and now I can't modify.
But I'll keep it as very very last choice since both were Sandisk cards and they were 32 and 64Gb.

Offline

#8 2018-06-13 12:33:42

sleekmason
Member
Registered: 2018-05-22
Posts: 142

Re: Can't format SD card with anything - ADVANCED

It's a problem dated 2012. Don't think is related.

I know that cards bought in 2014-15 still had problems.  This is after Sandisk addressed the problem.  That being said, I personally have not had issues with the one I have.  Better to know the possibility than not:)

Generally I would use gparted to format any partition/card/stick.  Change devices at the top right corner in the program.  Gparted is already part of the BunsenLabs install.


"Nothing in the world can take the place of Persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination alone are omnipotent." - Calvin Coolidge

Offline

#9 2018-06-13 12:42:44

overkill22
Member
Registered: 2016-01-16
Posts: 38

Re: Can't format SD card with anything - ADVANCED

sleekmason wrote:

It's a problem dated 2012. Don't think is related.

I know that cards bought in 2014-15 still had problems.  This is after Sandisk addressed the problem.  That being said, I personally have not had issues with the one I have.  Better to know the possibility than not:)

Generally I would use gparted to format any partition/card/stick.  Change devices at the top right corner in the program.  Gparted is already part of the BunsenLabs install.

I bought this in Jan 2018. However 2 cards from Sandisk get spoiled after a "normal" application crash is not normal. I've already contacted them for a replacement but I'm still pissed off at this and I want to get through and make this SD card working again.

Gparted is not able to format the card, it gives an error. I tried also with dd and other without luck.

Offline

#10 2018-06-13 12:46:24

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 519

Re: Can't format SD card with anything - ADVANCED

overkill22 wrote:
iMBeCil wrote:

OK, what is output of

$ sudo fdisk -l /dev/sdb

(wtih SD card in computer)?

yes, everything I've done via terminal is done with SD card in the computer.

Please, read what I have wrote ...


Postpone all your duties; if you die, you won't have to do them ..

Offline

#11 2018-06-13 12:50:01

sleekmason
Member
Registered: 2018-05-22
Posts: 142

Re: Can't format SD card with anything - ADVANCED

...and I want to get through and make this SD card working again.

Can't hurt trying. and Nope, it's not normal, but still indicative when coupled with all the problems others have had.  That sucks!

Gparted is not able to format the card, it gives an error. I tried also with dd and other without luck.

If gparted can't format your card after being unmounted, I would think it's toast. But hell, somebody will probably surprise us all with an easy fix.


"Nothing in the world can take the place of Persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination alone are omnipotent." - Calvin Coolidge

Offline

#12 2018-06-13 12:52:47

overkill22
Member
Registered: 2016-01-16
Posts: 38

Re: Can't format SD card with anything - ADVANCED

iMBeCil wrote:

OK, what is output of

$ sudo fdisk -l /dev/sdb

(wtih SD card in computer)?

I misread the message earlier. Here's the output. I don't know why now there is a 3.8Gb partition

Disk /dev/sdb: 3.8 GiB, 4103131136 bytes, 8013928 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xd662db28

Device     Boot Start     End Sectors  Size Id Type
/dev/sdb1        2048 8013823 8011776  3.8G 83 Linux

Offline

#13 2018-06-13 12:57:22

overkill22
Member
Registered: 2016-01-16
Posts: 38

Re: Can't format SD card with anything - ADVANCED

I did again the command and now I have another result, same as yesterday

$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sdb      8:16   1  59.5G  0 disk 
├─sdb2   8:18   1  59.5G  0 part 
└─sdb1   8:17   1    16M  0 part 
sda      8:0    0 238.5G  0 disk 
├─sda4   8:4    0 224.6G  0 part /home
├─sda2   8:2    0     4G  0 part [SWAP]
├─sda3   8:3    0   9.8G  0 part /
└─sda1   8:1    0   100M  0 part /boot/efi

Offline

#14 2018-06-13 13:02:32

overkill22
Member
Registered: 2016-01-16
Posts: 38

Re: Can't format SD card with anything - ADVANCED

overkill22 wrote:

I did again the command and now I have another result, same as yesterday

$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sdb      8:16   1  59.5G  0 disk 
├─sdb2   8:18   1  59.5G  0 part 
└─sdb1   8:17   1    16M  0 part 
sda      8:0    0 238.5G  0 disk 
├─sda4   8:4    0 224.6G  0 part /home
├─sda2   8:2    0     4G  0 part [SWAP]
├─sda3   8:3    0   9.8G  0 part /
└─sda1   8:1    0   100M  0 part /boot/efi

But in gparted I see only an unallocated partition of 3.82Gb.
I try to create a new partition fat32, the operation is succesful, but when I close the message window, gparted refresh and I see the same 3.82Gb partition that now is with exfat file system and the warning triangle beside.

Offline

#15 2018-06-13 13:17:00

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 519

Re: Can't format SD card with anything - ADVANCED

^Perhaps, the problem is that kernel is not informed of the SD card partitions in a timely manner.

I have seen people doing:
1) inserting SD card --> no partitions
2) execute '$ sudo partprobe /dev/sdb' # <-- this will inform kernel about partition table
3) now, partitions are visible

Yet, it usually means that something is wrong with the hardware (either SD card, or your SD card reader).

-----------------------------------------

Anyway, instead of using gparted, try to use fdisk:

$ sudo fdisk /dev/sdb  # please, be careful, the 'fdisk' is very dangerous command

The 'fdisk' prompt will appear. You can:
- press 'm' to see the help
- verify partition table with 'v'
- see information about partitions with 'i'
- delete existing partition with 'd'
- create new partition with 'n'
...and so on.

At the end, 'save' all changes by pressing 'w'.

Also, at the very beginning, it might be a good idea to create a fresh (new) DOS partition table with 'o'.

And then, after you are finished with the 'fdisk' (press 'w', then 'q'), you must format this partition. For formatting, you can use gparted, or some of 'mkfs.{ext4,fat,...}' terminal programs (please, see help for details).

Perhaps, it can 'revive' your SD card.

NOTE: Please, BE CAREFUL with the fdisk the command, and device you are trying to partition!

Last edited by iMBeCil (2018-06-13 13:19:32)


Postpone all your duties; if you die, you won't have to do them ..

Offline

#16 2018-06-13 13:29:31

overkill22
Member
Registered: 2016-01-16
Posts: 38

Re: Can't format SD card with anything - ADVANCED

iMBeCil wrote:

^Perhaps, the problem is that kernel is not informed of the SD card partitions in a timely manner.

I have seen people doing:
1) inserting SD card --> no partitions
2) execute '$ sudo partprobe /dev/sdb' # <-- this will inform kernel about partition table
3) now, partitions are visible

Yet, it usually means that something is wrong with the hardware (either SD card, or your SD card reader).

-----------------------------------------

Anyway, instead of using gparted, try to use fdisk:

$ sudo fdisk /dev/sdb  # please, be careful, the 'fdisk' is very dangerous command

The 'fdisk' prompt will appear. You can:
- press 'm' to see the help
- verify partition table with 'v'
- see information about partitions with 'i'
- delete existing partition with 'd'
- create new partition with 'n'
...and so on.

At the end, 'save' all changes by pressing 'w'.

Also, at the very beginning, it might be a good idea to create a fresh (new) DOS partition table with 'o'.

And then, after you are finished with the 'fdisk' (press 'w', then 'q'), you must format this partition. For formatting, you can use gparted, or some of 'mkfs.{ext4,fat,...}' terminal programs (please, see help for details).

Perhaps, it can 'revive' your SD card.

NOTE: Please, BE CAREFUL with the fdisk the command, and device you are trying to partition!


Nothing with fdisk
insert the card > fdisk > press v > Remaining 104 unallocated 512-byte sectors.

press i

Selected partition 1
         Device: /dev/sdb1
          Start: 2048
            End: 8013823
        Sectors: 8011776
      Cylinders: 62593
           Size: 3.8G
             Id: 83
           Type: Linux
    Start-C/H/S: 16/1/0
      End-C/H/S: 1023/32/3

press o then w > redo fdisk > press v > Remaining 8013927 unallocated 512-byte sectors.

Still trying to format doesn't work, gparted see the same partition, partprobe doesn't change anything.

Is it possible that the hardware is good but somehow the read-only permission is still there? Is there a way to brute force this permission?

Offline

#17 2018-06-13 13:35:31

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 519

Re: Can't format SD card with anything - ADVANCED

^I really don't know how to remove read-only (if this is the case).

However, googling "sd card android read-only" gives plenty of links. If you can access MSWin10 machine, it is worth to try for example this.

EDIT: Also, did you try to 'CHECK' the device/paritions with the gparted? You first unmount partitions, and then you select 'Partition|Check'. Some people claim that it resolved their issues with the sdcards ...

Last edited by iMBeCil (2018-06-13 13:41:30)


Postpone all your duties; if you die, you won't have to do them ..

Offline

#18 2018-06-13 14:12:10

overkill22
Member
Registered: 2016-01-16
Posts: 38

Re: Can't format SD card with anything - ADVANCED

iMBeCil wrote:

^I really don't know how to remove read-only (if this is the case).

However, googling "sd card android read-only" gives plenty of links. If you can access MSWin10 machine, it is worth to try for example this.

EDIT: Also, did you try to 'CHECK' the device/paritions with the gparted? You first unmount partitions, and then you select 'Partition|Check'. Some people claim that it resolved their issues with the sdcards ...

Yes, I tried almost all the links and possibilities. Even with windows I used all the different solutions for change the readonly, also modify regedit.

On gparted the check options is always grayed out with the partition mounted and unmounted.

I rebooted the laptop and this is what I see (same as usual).

fs6m2bd.jpg

Offline

#19 2018-06-13 14:20:05

overkill22
Member
Registered: 2016-01-16
Posts: 38

Re: Can't format SD card with anything - ADVANCED

iMBeCil wrote:

^I really don't know how to remove read-only (if this is the case).

However, googling "sd card android read-only" gives plenty of links. If you can access MSWin10 machine, it is worth to try for example this.

EDIT: Also, did you try to 'CHECK' the device/paritions with the gparted? You first unmount partitions, and then you select 'Partition|Check'. Some people claim that it resolved their issues with the sdcards ...

I'm doing fdisk again, getting different results:

Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): v
No errors detected.
Header version: 1.0
Using 2 out of 128 partitions.
A total of 2014 free sectors is available in 1 segment.

Command (m for help): i
Partition number (1,2, default 2): 1

         Device: /dev/sdb1
          Start: 2048
            End: 34815
        Sectors: 32768
           Size: 16M
           Type: unknown
      Type-UUID: 19A710A2-B3CA-11E4-B026-10604B889DCF
           UUID: 5B2B4A4A-5152-422B-85F7-663AC9F2284A
           Name: android_meta

Command (m for help): i
Partition number (1,2, default 2): 2

         Device: /dev/sdb2
          Start: 34816
            End: 124735454
        Sectors: 124700639
           Size: 59.5G
           Type: unknown
      Type-UUID: 193D1EA4-B3CA-11E4-B075-10604B889DCF
           UUID: 1D720FAA-E717-8139-DEA5-725904DDE9ED
           Name: android_expand

Command (m for help): d
Partition number (1,2, default 2): 1

Partition 1 has been deleted.

Command (m for help): d
Selected partition 2
Partition 2 has been deleted.

Command (m for help): o

Created a new DOS disklabel with disk identifier 0x751b80bf.

Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 
First sector (2048-124735487, default 2048): 
Last sector, +sectors or +size{K,M,G,T,P} (2048-124735487, default 124735487): 

Created a new partition 1 of type 'Linux' and of size 59.5 GiB.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

But it didn't change anything.

Offline

#20 2018-06-13 14:28:27

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 519

Re: Can't format SD card with anything - ADVANCED

Sorry it doesn't work.

At this point I'm out of ideas.
Except, possibly to change partition types of the existing partition to Linux partition.
Or, perhaps, press 'o', then 'w', then remove SD card ... and then reinsert card and then create partitions?

Maybe, the SD card really is damaged?

Sorry I couldn't help, perhaps someone more knowledgeable will step in ...


Postpone all your duties; if you die, you won't have to do them ..

Offline

#21 2018-06-13 14:32:56

overkill22
Member
Registered: 2016-01-16
Posts: 38

Re: Can't format SD card with anything - ADVANCED

iMBeCil wrote:

Sorry it doesn't work.

At this point I'm out of ideas.
Except, possibly to change partition types of the existing partition to Linux partition.
Or, perhaps, press 'o', then 'w', then remove SD card ... and then reinsert card and then create partitions?

Maybe, the SD card really is damaged?

Sorry I couldn't help, perhaps someone more knowledgeable will step in ...

I don't think the card is damaged, I had access to all the data and then somehow formatted.
I think is something like permission or maybe MBR or stuff like that (but I don't know what I'm talking about)

With fdisk I tried to do the separate processed but it doesn't work.

It's like if the read-only permission set from Android is unbreakable.

Offline

#22 2018-06-13 15:01:48

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 519

Re: Can't format SD card with anything - ADVANCED

Just a general info ... sdtool. Unfortunaltely, works only for SD cards which connect as /dev/mmcblk* (not via USB).

Perhaps, try another computer with different card reader?

(Also, the first partition might be some read-only block, with certain software which enables 'peculiar' (custom/intended) behaviour like protecting SD card with read-only mode.)

EDIT: also sdlocker-tiny. I wasn't aware of those details on SD cards ... especially that the write-protect slider does nothing, i.e. it is up to application to honor (or not) this slider.

Last edited by iMBeCil (2018-06-13 15:10:05)


Postpone all your duties; if you die, you won't have to do them ..

Offline

#23 2018-06-13 15:11:43

overkill22
Member
Registered: 2016-01-16
Posts: 38

Re: Can't format SD card with anything - ADVANCED

iMBeCil wrote:

Just a general info ... sdtool. Unfortunaltely, works only for SD cards which connect as /dev/mmcblk* (not via USB).

Perhaps, try another computer with different card reader?

(Also, the first partition might be some read-only block, with certain software which enables 'peculiar' (custom/intended) behaviour like protecting SD card with read-only mode.)

EDIT: also sdlocker-tiny. I wasn't aware of those details on SD cards ... especially that the write-protect slider does nothing, i.e. it is up to application to honor (or not) this switch.

I "like" this. I really think this is the issue. And I refuse to think it is unfixable.

Second link is really interesting. However I don't know from where to start. As hardware I have only laptops at my dispostal. One linux, one Windows 10, and another that probably is Vista or Windows 8 or some other crap.

any suggestion how to proceed with sdtool?

Offline

#24 2018-06-13 17:14:02

hhh
That's easy!
Registered: 2015-09-17
Posts: 6,091
Website

Re: Can't format SD card with anything - ADVANCED

Moderator note... we've been trying to get on top of the forum organization with the release of Helium, unstickying threads, updating tutorials, etc...

This discussion has, IMO, moved past a "Basic Help" question, I'm moving the thread to "Kernel & Hardware". A redirect link will remain in the Help forum.

Thanks for your understanding!

Online

#25 2018-06-13 17:16:30

overkill22
Member
Registered: 2016-01-16
Posts: 38

Re: Can't format SD card with anything - ADVANCED

hhh wrote:

Moderator note... we've been trying to get on top of the forum organization with the release of Helium, unstickying threads, updating tutorials, etc...

This discussion has, IMO, moved past a "Basic Help" question, I'm moving the thread to "Kernel & Hardware". A redirect link will remain in the Help forum.

Thanks for your understanding!


yes thank you!
I was unsure to open over there at the beginning, I knew already that was not a simple task ahaha...

Thank you so much smile

Offline

Board footer

Powered by FluxBB