How to clone bootable memory card with partitions (i.e., exact copy)

I need help with cloning SD card of a Jetson Nano. I have searched in many threads, but I couldn’t find a proper solution. Any script or tool which works will be very helpful to me and others.

Also changing the MAC address on every boot or if we get a permanent solution it would be better.

Thank You.

Anyways, I know how to do it now.

cloning can be done by using ubuntu disk clone feature and the MAC ID issue seems to be there for only some defective units. So basically the MAC is obtained from EEPROM which is unique for all devices.

Thank You. Hope someone finds this useful.