Pi set up 2

Once we have prepared our target file system, then we can write the image,  download the latest image from the Raspberry Pi website downloads page to a logical location on your computer and unzip archive file so you can see the raw .img file

so in my case I have


Make sure the disk is inserted,  and we can use sudo fdisk -l to list the current file systems attached to the computer

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   176319941    88158947   83  Linux
/dev/sda2       176320510   488396799   156038145    5  Extended
/dev/sda5       484730880   488396799     1832960   82  Linux swap / Solaris
/dev/sda6       176320512   484730879   154205184   83  Linux
Partition table entries are not in disk order
Disk /dev/sdb: 15.7 GB, 15707668480 bytes
255 heads, 63 sectors/track, 1909 cylinders, total 30679040 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: 0x0002c262
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048    30679039    15338496    c  W95 FAT32 (LBA)

so we can see this that the 16gb file system is /dev/sdb1

We can now use this information to write to the sd card using the instructions I found at :

Getting Started with Raspberry Pi: Installing Raspbian

taking the example from the website

sudo dd bs=1M if=2012-12-16-wheezy-raspbian.img of=/dev/rdisk4

we can now apply our own information to this

so from xterm cd to the directory the image file is in :

sudo dd invokes dd as root

bs=1M  = sets block size to 1 Megabyte (this is optional) also note the case, some tutorials had 1m which produced an error.

if=2014-06-20-wheezy-raspbian.img sets the input file to that of the image file

of=/dev/sdb1 = write to device /dev/sdb1

This should write the image to the file system, it may take a while so if you see no activity this is normal.

if you run sudo kill -USR1 `pgrep ^dd`

From a 2nd terminal window you should be able to monitor progress.

The output (similar to below) will appear in the terminal window where you executed the dd command

1219985+0 records in
1219985+0 records out
624632320 bytes (625 MB) copied, 383.039 s, 1.6 MB/s

Keep issuing the above command

For the record

-rw-r–r– 1 psutton psutton 2.8G Jun 20 11:17 2014-06-20-wheezy-raspbian.img

gives you the file size of the image so from this you can calculate the progress percentage if you even want to do that.