SD card disappears after restart TX1 + Jetpack 4.5.1

Hello everyone,
I am using auvidea J140 TX1 with Jetpack 4.5.1. I would like to use sdcard to store some data. I installed SanDisk mircoSD 64GB and format as ext4 and configure to be mounted on the start. I used disks app for it.
But after restart Jetson board, the ext4 partion is no more visible. Everything what I see in disks is SD card with “32MB Unknown”. If I take the card out and put in back, it gets mounted proparly again.

I searched in internet but can not find any related issues.

Thank you in advance!

PS: I forgot to say, I tested the card on my Ubuntu Host PC. It has no defects and can be mounted on start.
Even more I tested Jetson with two identical sd cards, same issue with both.

When it is working, what device does it show up as? I will assume “/dev/mmcblk1”, but if it is something else, adjust. When it is working, what do you see from:

lsblk -f /dev/mmcblk1
sudo gdisk -l /dev/mmcblk1
dmesg | grep -i 'mmcblk1'

If you can, monitor “dmesg --follow” as you plug the device in to get it working again from the non-working state, and post log. If at all possible, while it is not working, repeat the above commands and post the results.

Hello linuxdev,

thank you for your reply!

after the start of jetson board sd card shows up as “/dev/mmcblk2” and partion is “32MB Unknown”.

After starting jetson board the output of commands:

lsblk -f /dev/mmcblk2
NAME    FSTYPE LABEL UUID MOUNTPOINT
mmcblk2            

sudo gdisk -l /dev/mmcblk2
[sudo] password for rh5: 
GPT fdisk (gdisk) version 1.0.3

Partition table scan:
  MBR: not present
  BSD: not present
  APM: not present
  GPT: not present

Creating new GPT entries.
Disk /dev/mmcblk2: 62688 sectors, 30.6 MiB
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 0E13ED91-4807-4019-9841-7D235A6178F0
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 62654
Partitions will be aligned on 2048-sector boundaries
Total free space is 62621 sectors (30.6 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name

dmesg | grep -i 'mmcblk2'
[    1.364119] mmcblk2: mmc2:d555 SD032 30.6 MiB 

— After unplug and plug the sd card the output of commands:

dmesg --follow

[  359.219800] mmc2: Disabling vmmc regulator
[  359.219929] mmc2: card d555 removed
[  360.200522] mmc2: Enabling vmmc regulator
[  360.645741] mmc2: hw tuning done ...
[  360.645776] mmc2: new ultra high speed SDR104 SDXC card at address aaaa
[  360.648632] mmcblk2: mmc2:aaaa SN64G 59.5 GiB 
[  360.656337]  mmcblk2: p1
[  360.919372] EXT4-fs (mmcblk2p1): mounted filesystem with ordered data mode. Opts: (null)
[  363.202039] tegra_soctherm 700e2000.soctherm: soctherm: trip temperature -2147483647 forced to -127000

lsblk -f /dev/mmcblk2
NAME        FSTYPE LABEL UUID                                 MOUNTPOINT
mmcblk2                                                       
└─mmcblk2p1 ext4         d27f4ac6-2bf2-4814-a412-9f194249edd7 /media/rh5/d27f4ac6-2bf2-4814-a412-9f19

    sudo gdisk -l /dev/mmcblk2
GPT fdisk (gdisk) version 1.0.3

Partition table scan:
  MBR: not present
  BSD: not present
  APM: not present
  GPT: not present

Creating new GPT entries.
Disk /dev/mmcblk2: 124735488 sectors, 59.5 GiB
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 5E721BCB-8186-4066-88D9-C5711A2CB13E
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 124735454
Partitions will be aligned on 2048-sector boundaries
Total free space is 124735421 sectors (59.5 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name

dmesg | grep -i 'mmcblk2'
[    1.364119] mmcblk2: mmc2:d555 SD032 30.6 MiB 
[  360.648632] mmcblk2: mmc2:aaaa SN64G 59.5 GiB 
[  360.656337]  mmcblk2: p1
[  360.919372] EXT4-fs (mmcblk2p1): mounted filesystem with ordered data mode. Opts: (null)

sudo parted /dev/mmcblk2
GNU Parted 3.2
Using /dev/mmcblk2
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: SD SN64G (sd/mmc)
Disk /dev/mmcblk2: 63,9GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags: 

Number  Start  End     Size    File system  Flags
 1      0,00B  63,9GB  63,9GB  ext4

This is a rather surprising set of results. I say this because after unplug/replug, when it works, gdisk still does not see partitions, nor even that it is GPT partitioned. Even so, the lsblk -f just before this does see the ext4 partition. Perhaps the partition disappeared between commands.

What is your exact command for partitioning and formatting? I’m wondering if there is some issue with the tools used, although if that were the case I wouldn’t expect unplug/replug to change the result unless the result depended on different drivers which were not present during the initial boot (very unlikely).

@linuxdev
I tried both Disks App from Ubuntu und cmd command.

I just repeated the setup and made some images. Even I did the same configuration before, I become different result. Now the GTD is recognised correctly. But anyway there is a problem with automounting after the restart. It shows 32MB Unknown.

After start in Disks the sd card is recognised as:

After unplug and plug in, the sd card is recognised as:

The confugartion of sd card partition:

Formating:

Done:

After it, the output of commands looks like:

lsblk -f /dev/mmcblk2
NAME        FSTYPE LABEL   UUID                                 MOUNTPOINT
mmcblk2                                                         
└─mmcblk2p1 ext4   sd_card c05c235d-fbf9-4474-876c-7ac3b07cc72c 

sudo gdisk -l /dev/mmcblk2
GPT fdisk (gdisk) version 1.0.3

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/mmcblk2: 124735488 sectors, 59.5 GiB
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): F70C748E-A865-427C-B3E1-E820BB6EE3C4
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 124735454
Partitions will be aligned on 2048-sector boundaries
Total free space is 4029 sectors (2.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048       124733439   59.5 GiB    8300  primary


sudo parted /dev/mmcblk2
GNU Parted 3.2
Using /dev/mmcblk2
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                            
Model: SD SN64G (sd/mmc)
Disk /dev/mmcblk2: 63,9GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name     Flags
 1      1049kB  63,9GB  63,9GB  ext4         primary

(parted)                                             

Setup automount:


AFTER RESTART:

Replug the sd card it works again.

The output of /etc/fstab

# /etc/fstab: static file system information.
#
# These are the filesystems that are always mounted on boot, you can
# override any of these by copying the appropriate line from this file into
# /etc/fstab and tweaking it as you see fit.  See fstab(5).
#
# <file system> <mount point>             <type>          <options>                               <dump> <pass>
/dev/root            /                     ext4           defaults                                     0 1
/dev/disk/by-id/mmc-SN64G_0x7057b946-part1 /mnt/mmc-SN64G_0x7057b946-part1 auto nosuid,nodev,nofail,x-gvfs-show 0 0

Here is dmesg output after restart. The /dev/mmcblk2 device (sd card) is recognised as
[ 1.379982] mmcblk2: mmc2:d555 SD032 30.6 MiB

 dmesg | grep mmcbl
[    0.000000] Kernel command line: tegraid=21.1.2.0.0 ddr_die=2048M@2048M ddr_die=2048M@4096M section=256M memtype=0 vpr_resize usb_port_owner_info=0 lane_owner_info=0 emc_max_dvfs=0 touch_id=0@63 video=tegrafb no_console_suspend=1 console=ttyS0,115200n8 debug_uartport=lsport,4 earlyprintk=uart8250-32bit,0x70006000 maxcpus=4 usbcore.old_scheme_first=1 lp0_vec=0x1000@0xff780000 core_edp_mv=1075 core_edp_ma=4000 gpt tegra_fbmem2=0x800000@0x92cb5000 is_hdmi_initialised=1  root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 sdhci_tegra.en_boot_part_access=1 quiet root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 sdhci_tegra.en_boot_part_access=1 
[    1.379982] mmcblk2: mmc2:d555 SD032 30.6 MiB 
[    1.403077] mmcblk0: mmc0:0001 016G32 14.7 GiB 
[    1.403335] mmcblk0boot0: mmc0:0001 016G32 partition 1 4.00 MiB
[    1.403524] mmcblk0boot1: mmc0:0001 016G32 partition 2 4.00 MiB
[    1.407762] mmcblk0rpmb: mmc0:0001 016G32 partition 3 4.00 MiB
[    1.410382]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22
[    1.428834] mmcblk mmc2:d555: Card claimed for testing.
[    1.428842] mmcblk mmc0:0001: Card claimed for testing.
[    1.458735] Root device found: mmcblk0p1
[    1.459983] Found dev node: /dev/mmcblk0p1
[    1.521133] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
[    1.522742] Rootfs mounted over mmcblk0p1
[    1.930688] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)

The above tells me this should probably work. I am thinking of this now as a hardware issue (perhaps just signal quality, not necessarily outright failure). Do you have another brand of SD card you can try? Or at least a different SD card, even if it is the same brand?

Sorry for late reply. I tested other card, and it works!!! :)
Before I tried two cards from Samsung microSD 64 Gb. With both of them I had a problem on Auvidea J140 TX1.

Now I am using Samsung micro SDHC 32 GB and there is no issue anymore.

Thank you a lot for your help!

an update:

I tested EvoPlus 64Gb von Samsung (mircoSDXC UHS-I Card). It works too.

it seems it was a problem particulary with Symsung microSD SanDisk Extreme A2 64Gb.