Raspberry Pi 3 + Kodi

This post is for all those people who, like me forget to write this stuff down.

Just purchased another Raspberry Pi 3 and am wanting to turn it into a media center, so I purchased the following:

and here are my specs:

  • Intel i7 (8 cores) + Ubuntu 15.04 (64bit) + 16GiB RAM

I will be running the following commands on my Ubuntu box to prepare the SD card for the Raspberry Pi.

So the first thing I want to do it backup the SD card that came with the CanaKit.

  1. we are looking for the SD card within our system

    $ sudo fdisk -l
    .
    .
    .
    Disk /dev/sdg: 14.7 GiB, 15716057088 bytes, 30695424 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
    Disklabel type: dos
    Disk identifier: 0xd0ab1579

    Device Boot Start End Sectors Size Id Type
    /dev/sdg1 8192 30695423 30687232 14.6G c W95 FAT32 (LBA)

  2. Highlighted in red is the device I am looking for /dev/sdg1 , now I can unmount.

    $ sudo unmount /dev/sdg1

  3. And now backup as an image

          $ sudo dd if=/dev/sdg1 of=/media/user/Drive/pi3_noobs_2017.img bs=4M

30687232+0 records in
30687232+0 records out
15711862784 bytes (16 GB) copied, 1263.58 s, 12.4 MB/s

 

To restore, assuming the SD card is /dev/sdg1 again, use the following command:

  • $ sudo dd if=/media/user/Drive/pi3_noobs_2017.img of=/dev/sdg1 bs=4M

Side-related-note: this might work as well for backup…

  • cat /dev/sdg1/ > /media/user/Drive/pi3_noobs_2017.img

 

I have found a x-plaform tool called https://etcher.io/ that appears to work like a charm and has a status bar that kicks in after about a minute or two.etcher_4_ubuntu

Really easy to use.  Select the image you want to use, then select the target drive, then press “Flash!”.  Supports Linux, Mac, and even Windows… some are even portable pkgs.

 

Anyways, download your favorite flavor of media center that RasPi3 can support and flash the SD card with it.  I am currently using an 8GB media center image and takes about 15 minutes to flash.

Enjoy!

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s