Creating a Disk Image on Linux Using DD

Channel:
Subscribers:
14,400
Published on ● Video Link: https://www.youtube.com/watch?v=kpQ4y1YmCbo



Duration: 1:51
1,332 views
12


#DiskImage #DD #SDCard

Full steps can be found at https://i12bretro.github.io/tutorials/0525.html

--------------------------------------------------------------------
Things You Will Need
--------------------------------------------------------------------
   - A USB flash drive  https://amzn.to/3wkR5ju |  https://amzn.to/3qkrJ1p |  https://amzn.to/3Nhu9b9
   - Or microSD card  https://amzn.to/36CpShC |  https://amzn.to/3JqyxSP
 
--------------------------------------------------------------------
Creating An Image
--------------------------------------------------------------------
   01. Insert the SD card or USB flash drive to make an image of
   02. Run the following commands in a terminal window:
         # list out disks
         sudo fdisk -l
         # run the following to create a .img, replace sdb with the correct source disk
         sudo dd if=/dev/sdb of=~/flashstorage.img status=progress
         # run the following to create a compressed img, replace sdb with the correct source disk
         sudo dd if=/dev/sdb status=progress | gzip -c ≫~/flashstorage.img.gz
 
--------------------------------------------------------------------
Restoring An Image
--------------------------------------------------------------------
   01. Insert the SD card or USB flash drive to make an image of
   02. Run the following commands in a terminal window:
         # list out disks
         sudo fdisk -l
         # run the following to restore an .img to the target device
         # replace sdb with the correct source disk
         # MAKE ABSOLUTELY CERTAIN THE OUTPUT TARGET IS CORRECT
         # OR YOU COULD POTENTIAL DAMAGE YOUR OS
         # restore img
         sudo dd if=~/flashstorage.img of=/dev/sdb bs=4M status=progress
         # restore gzipped img
         gunzip -c ~/flashstorage.img.gz | sudo dd of=/dev/sdb bs=4M status=progress
 


### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro







Tags:
Create SD Card Image
Create Disk Image
SD Cards
Raspberry Pi
Single Board Computer
SBC
Image
.img
DD
Linux
Debian
DD Command
DD Image
How To
Tutorial
i12bretro