Flash out Screenly to an SD card on Linux

The easy way

If you are not a hardcore Linux user, we strongly recommend that you use Etcher instead of the instructions below.

The video below is demonstrating how to use Etcher on macOS, but the process on Linux is more or less the same.

The hard way

Warning: The instructions below requires that you’re familiar with dd and device mappings on Linux. Unless you know what you’re doing this can cause significant data loss. Don’t proceed otherwise. You have been warned.

Below you find a complete start-to-finish guide on how to flash to flash out the latest Screenly Pro disk image on Linux. The same instructions can of course be used for Screenly OSE by just replacing the URLs below.

Please note that your device mappings may differ.

Check the status of the SD card before we begin

$ sudo fdisk -l /dev/sdc
Disk /dev/sdc: 7948 MB, 7948206080 bytes
240 heads, 32 sectors/track, 2021 cylinders, total 15523840 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
Disk identifier: 0xe9142f04 Device Boot Start End Blocks Id System
/dev/sdc1 2048 15523839 7760896 b W95 FAT32

Fetch the disk image and MD5 file

$ wget http://www.screenly.io/latest-pro
[...]
Length: 687965333 (656M) [application/zip]
Saving to: `latest-pro'
[...]
$ wget http://www.screenly.io/latest-pro.md5
[...]
Length: 66 [binary/octet-stream]
Saving to: `latest-pro.md5'
[...]

Verify the download

$ cat latest-pro.md5
f0fe81ab9337aa94febb85962cea4874  2016-03-08-Screenly_Pro_4GB.zip
$ mv latest-pro 2016-03-08-Screenly_Pro_4GB.zip
$ md5sum -c latest-pro.md5
2016-03-08-Screenly_Pro_4GB.zip: OK

Flash out the image

$ unzip -p 2016-03-08-Screenly_Pro_4GB.zip | sudo dd bs=32M of=/dev/sdc
0+34550 records in
0+34550 records out
3947888640 bytes (3.9 GB) copied, 395.227 s, 10.0 MB/s

Verify the result

$ sudo fdisk -l /dev/sdc

Disk /dev/sdc: 7948 MB, 7948206080 bytes
245 heads, 62 sectors/track, 1021 cylinders, total 15523840 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
Disk identifier: 0x00014d34

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            8192      122879       57344    c  W95 FAT32 (LBA)
/dev/sdc2          122880     7710719     3793920   83  Linux

It’s important that you now eject the card and put it back in before proceeding.

Verify the file system

$ sudo fsck.vfat /dev/sdc1
dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN
/dev/sdc1: 92 files, 3753/7161 clusters
$ sudo fsck.ext4 /dev/sdc2
e2fsck 1.42 (29-Nov-2011)
/dev/sdc2: clean, 82223/237568 files, 401880/948480 blocks
Have more questions? Submit a request

0 Comments

Article is closed for comments.