Step 5 : Flash to SD Card
In this program, you are going to learn
How to ?
Topics in this section,
Insert the SD card reader and run dmesg to find the device name.
$ sudo dmesg | tail
[sudo] password for wifi:
[13956.819387] sd 1:0:0:0: [sda] No Caching mode page found
[13956.819394] sd 1:0:0:0: [sda] Assuming drive cache: write through
[13956.819980] sd 1:0:0:1: [sdb] Media removed, stopped polling
[13956.820433] sd 1:0:0:2: [sdc] Media removed, stopped polling
[13956.820650] sd 1:0:0:1: [sdb] Attached SCSI removable disk
[13956.820901] sd 1:0:0:3: [sdd] Media removed, stopped polling
[13956.821201] sd 1:0:0:2: [sdc] Attached SCSI removable disk
[13956.821604] sd 1:0:0:3: [sdd] Attached SCSI removable disk
[13956.828315] sda:
[13956.828399] sd 1:0:0:0: [sda] Attached SCSI removable disk
Run fdisk to know the device name and its details.
$ sudo fdisk -l
Disk /dev/sda: 59.45 GiB, 63831015424 bytes, 124669952 sectors
Disk model: USB SD Reader
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: dos
Disk identifier: 0x5452574f
Extract the image using the bzip2 command.
$ cd $HOME/build/tmp/deploy/images/raspberrypi4-64
$ bzip2 -d -f core-image-base-raspberrypi3-64.wic.bz2
Flash the image to SD card.
$ sudo dd bs=4M if=core-image-base-raspberrypi3-64.wic of=/dev/sda status=progress conv=fsync