Skip to content

Instantly share code, notes, and snippets.

@carlcrott
Created December 1, 2012 10:17
Show Gist options
  • Save carlcrott/4181405 to your computer and use it in GitHub Desktop.
Save carlcrott/4181405 to your computer and use it in GitHub Desktop.
Install process for OS on RaspberryPi
# download OS Raspbian “wheezy”
$ wget http://downloads.raspberrypi.org/images/raspbian/2012-10-28-wheezy-raspbian/2012-10-28-wheezy-raspbian.zip
# verify SHA == "3ee33a94079de631dee606aebd655664035756be"
$ sha1sum 2012-10-28-wheezy-raspbian.zip
# find where the SD card is mounted
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 393G 251G 123G 68% /
none 3.9G 320K 3.9G 1% /dev
none 3.9G 6.0M 3.9G 1% /dev/shm
none 3.9G 120K 3.9G 1% /var/run
none 3.9G 0 3.9G 0% /var/lock
none 3.9G 0 3.9G 0% /lib/init/rw
/dev/sdb1 15G 9.7G 5.2G 66% /media/6563-3063
$ umount /dev/sdb1 # unmount the card ... so we can write to it
# verify that dd is installed
$ dd --help
### BIG FUCKING WARNING ###
# get the mount path correct or you'll overwrite all your system files ( nub )
# use dd to push the image onto the card
$ sudo dd bs=4M if=~/2012-10-28-wheezy-raspbian.img of=/dev/sdb1
[sudo] password for thrive:
462+1 records in
462+1 records out
1939865600 bytes (1.9 GB) copied, 382.709 s, 5.1 MB/s
# successful!
# ensure write cache is flushed and that it is safe to unmount your SD card
$ sync
#### Re-mounting it
# find where the 15.9 GB card is
$ sudo fdisk -l
# setup a mount point
$ sudo mkdir /media/raspberrypi
# mount
$ sudo mount /dev/sdb /media/raspberrypi
$ cd /media/raspberrypi && dd bs=4M if=~/2012-10-28-wheezy-raspbian.img of=/dev/sdb1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment