SD Card detect issue 60 GB card is detecting only 12 GB

Getting this error

~# sudo mkfs.ext4 /dev/mmcblk1
mke2fs 1.44.1 (24-Mar-2018)
Discarding device blocks: done
Warning: could not erase sector 2: Input/output error
Creating filesystem with 15449600 4k blocks and 3866624 inodes
Filesystem UUID: 65eea666-0f26-4559-9ca4-04371acbba8c
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424

Allocating group tables: done
Warning: could not read block 0: Input/output error
Warning: could not erase sector 0: Input/output error
Writing inode tables: done
ext2fs_mkdir: Input/output error while creating root dir

Kernel log
6025.780199] sdhci: ===========================================
[ 6025.788744] mmcblk1: error -84 transferring data, sector 123596677, nr 3, cmd response 0x900, card status 0x0
[ 6025.794499] mmc1: Data end bit error
[ 6025.794500] sdhci: =========== REGISTER DUMP (mmc1)===========
[ 6025.794503] sdhci: Sys addr: 0x00000008 | Version: 0x00000505
[ 6025.794505] sdhci: Blk size: 0x00007200 | Blk cnt: 0x00000000
[ 6025.794508] sdhci: Argument: 0x075def86 | Trn mode: 0x00000013
[ 6025.794510] sdhci: Present: 0x01bb0000 | Host ctl: 0x00000013
[ 6025.794513] sdhci: Power: 0x00000001 | Blk gap: 0x00000000
[ 6025.794515] sdhci: Wake-up: 0x00000000 | Clock: 0x00000007
[ 6025.794518] sdhci: Timeout: 0x00000008 | Int stat: 0x00000000
[ 6025.794520] sdhci: Int enab: 0x02ff008b | Sig enab: 0x02fc008b
[ 6025.794523] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
[ 6025.794526] sdhci: Caps: 0x3f6cd08c | Caps_1: 0x18002f73
[ 6025.794528] sdhci: Cmd: 0x0000113a | Max curr: 0x00000000
[ 6025.794529] sdhci: Host ctl2: 0x00003000
[ 6025.794535] sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x00000000ffefe410
[ 6025.794552] sdhci: ===========================================
[ 6025.803388] mmcblk1: error -84 transferring data, sector 123596678, nr 2, cmd response 0x900, card status 0x0
[ 6025.809124] mmc1: Data end bit error
[ 6025.809125] sdhci: =========== REGISTER DUMP (mmc1)===========
[ 6025.809128] sdhci: Sys addr: 0x00000008 | Version: 0x00000505
[ 6025.809130] sdhci: Blk size: 0x00007200 | Blk cnt: 0x00000000
[ 6025.809133] sdhci: Argument: 0x075def87 | Trn mode: 0x00000013
[ 6025.809136] sdhci: Present: 0x01bb0000 | Host ctl: 0x00000013
[ 6025.809138] sdhci: Power: 0x00000001 | Blk gap: 0x00000000
[ 6025.809141] sdhci: Wake-up: 0x00000000 | Clock: 0x00000007
[ 6025.809143] sdhci: Timeout: 0x00000008 | Int stat: 0x00000000
[ 6025.809146] sdhci: Int enab: 0x02ff008b | Sig enab: 0x02fc008b
[ 6025.809148] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
[ 6025.809151] sdhci: Caps: 0x3f6cd08c | Caps_1: 0x18002f73
[ 6025.809153] sdhci: Cmd: 0x0000113a | Max curr: 0x00000000
[ 6025.809155] sdhci: Host ctl2: 0x00003000
[ 6025.809160] sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x00000000ffefe410
[ 6025.809178] sdhci: ===========================================
[ 6025.817718] mmcblk1: error -84 transferring data, sector 123596679, nr 1, cmd response 0x900, card status 0x0

Hey there @nitin.gupta981, can you share which Jetson/Drive device you are using here so I can redirect you to the appropriate forums?

Thanks!

Hi Markus ,
Thank you for quick reply
Platform :- JETSON XAVIER NX
SSD:- nvidia card

Ok, if it is the internal flash memory than it might be a Hardware fault. But I leave it to the experts to assess that.

Thanks!

You are trying to make a filesystem on the whole EMMC or SD card. You are usually not supposed to do that. EMMC and SD cards have a partition table. The internal EMMC usually has about 20 partitions, a data sd card usually has only one entry. The partition you are putting the filesystem on is /dev/mmcblk(m)p(n) where (m) is the device number (0…1) and (n) is the partition number (1…). In your case this may be /dev/mmcblk1p1. You create partition tables and partitions with fdisk.

Thank you for the reply .
Initially tried to check if sdcard is mounting

lsblk /dev/mmcblk1

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk1 179:128 0 59G 0 disk
Since it was not mounted so tried to mount /dev/mmcblk1 /media/sdcard which gave same error. after that tried the fdisk -l utility but I/o error in opening the /dev/mmcblk1 …

so went ahead and tried to format . looks like nothing is working on this card.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.