Please help a Linux novice

How can I code the if= parameter for the dd command, relative to the SD card ?
The fdisk -l command has this output, where the eMMS module is listed, but apparently not the SD card…

Linux newbee here…

root@rock-5a:/home/adb# fdisk -l
Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/mmcblk1: 29.72 GiB, 31914983424 bytes, 62333952 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: gpt
Disk identifier: 95B45AC5-B653-4F31-B5ED-1A29701398D1

Device Start End Sectors Size Type
/dev/mmcblk1p1 32768 65535 32768 16M Microsoft basic data
/dev/mmcblk1p2 65536 62333918 62268383 29.7G EFI System

Disk /dev/zram0: 3.88 GiB, 4165701632 bytes, 1017017 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

You have the SD card listed there (/dev/mmcblk1). Unless this is the eMMC… In this case, the memory card would be /dev/mmcblk0.
Try doing lsblk instead of fdisk -l.
You can enclose multiline output in three “`” characters to make it more readable (the grey monospaced characters). Do you want to copy from or to the SD card?

Thanks. Yes, I have an eMMC chip under the Rocka 5A board, and it looks like mmcblk1 does refer to it.
I don’t see an mmcblk0 listed in the output of fdisk -l …
What I would like to do is to completely copy the contents of the SD card to the eMMC chip.

lsblk - what is the output?

My error…the eMMC module wasn’t seated correctly.
This is the output of lsblk.
Could you now please suggest the correct format of the dd command to copy all the contents of the SD card into the eMMC ?
Thanks

Hmm.

You can use sudo dd if=/dev/mmcblk1 of=/dev/mmcblk0 status=progress conv=noerror,sync bs=16M. But you will need to do it after resizing the root partition (/) to something smaller than 28.9 GB. This should be done externally as you’d need to first unmount the partition (and you can’t unmount the root fs). If you have no Linux installed, just do it on a PC using a liveUSB of Ubuntu or something - use gparted or Gnome Disks.
When you make the partition smaller, you can use that command.
Afterwards, also externally (I think) you will need to repair the GPT as it normally saves a backup partition table to the last block (which wouldn’t be copied to the eMMC in your case because it won’t fit). This can be done using gdisk (best to run it right after the dd command as you will be booted from the SD card then). It should automatically detect the there is no backup table and suggest fixing. Then you can remove the SD card and boot from the eMMC.

Thanks indeed. I have a PC with a dual boot Windows 10 / Linux LMDE, so I will use it for what you suggest. It looks like it would be wise, given my scarce familiarity with Linux, to make a copy of the SD card on a second one, just in case…
The major problem I see with Linux is the difficulty to find information a the level of tutorials…
Every document I find seems to have as prerequisite a deep knowledge of Linux…