Clone USB stick or sd card

All the adventures with the PI
Post Reply
User avatar
Mike R
Site Admin
Posts: 70
Joined: Fri Jan 24, 2020 3:40 am

Clone USB stick or sd card

Post by Mike R »

The command is

Code: Select all

sudo dd if=/path/of/stick of-=/path/to/place/file.iso
This creates an burnable iso file which is an exact copy - same size as usb stick or device - for use later if needed.
Other useful commands are

Code: Select all

lsblk
giving you mount points of the drives
and

Code: Select all

$ dmesg | grep -i usb
$ dmesg | grep -i 'attached'
to list attached devices
You Wouldn't Believe How Hard I Have to Work to be Lazy
Post Reply