How to install Raspbian on the Raspberry Pi
Please share with your friends...
  • 1
  • 1
  •  
  •  
  • 1
  • 1
  •  
  •  
  •  
  •  
    4
    Shares


⇐ BackPageNext ⇒

Linux Tex   Linux

The following instructions explain how to install the Raspbian image on a storage device from Linux without the need for any additional software.

  1. To determine what devices are currently mounted, run the following command:
    df -h
  2. Plug the storage device into your computer, either directly, or using an adapter if required.
  3. To determine the name of your storage device, re-run the same command:
    df -h

    The command will produce output similar to the following:

    Filesystem      Size  Used Avail Use% Mounted on
    rootfs          232G  2.4G  220G   2% /
    /dev/root       232G  2.4G  220G   2% /
    devtmpfs        460M     0  460M   0% /dev
    tmpfs            93M  236K   93M   1% /run
    tmpfs           5.0M     0  5.0M   0% /run/lock
    tmpfs           186M     0  186M   0% /run/shm
    /dev/mmcblk0p1  7.4G   19M  7.4G   1% /boot

    The new device that has appeared is your storage device. The left column gives the device name; it will be listed as similar to /dev/mmcblk0p1 or /dev/sdd1. The last several characters (p1 or 1 respectively) are the partition number, but as we want to write to the whole storage device and not just one partition, we need to remove those characters from the name – getting, for example, /dev/mmcblk0 or /dev/sdd as the device for the whole storage device.

    Note: A storage device can appear more than once in the output of df; it will do this if you have previously written a Raspberry Pi image to this storage device because the Raspberry Pi images have more than one partition.
  4. Now that you’ve noted what the device name is, you need to unmount it so that other files can’t be read or written to the storage device while you are writing the Raspbian image.
    sudo umount /dev/mmcblk0p1
  5. Replace /dev/mmcblk0p1 with the device name you identified above (including the partition number).
    If your storage device shows up more than once in the output of df, you will need to unmount each additional partition as well.
  6. Begin writing the image to the storage device using the following command:
    sudo dd bs=4M if=raspbian.img of=/dev/<device>

    Replace raspbian.img with the path and name of the extracted image file, and /dev/<device> with the device name of the storage device on your system.
    The command will produce output similar to the following:

    781+1 records in
    781+1 records out
    3276800000 bytes (3.3 GB) copied, 77 s, 42 MB/s

    Please note that block size set to 4M will work most of the time; if not, please try 1M, although this will take considerably longer.

  7. Once imaging is complete, remove the storage device from your computer and plug it back it to your Raspberry Pi.
  8. Power on your Raspberry Pi, and assuming has gone well, Raspbian will boot from your storage device!

Next, install the latest Raspbian Updates.

⇐ BackPageNext ⇒

How to install Raspbian on the Raspberry Pi

Please share with your friends...
  • 1
  • 1
  •  
  •  
  • 1
  • 1
  •  
  •  
  •  
  •  
    4
    Shares
Tagged on:                                 

Leave a Reply

Your email address will not be published. Required fields are marked *