How to Install linux based OS images (except Android)

How to Install linux based OS images (except Android)

2nd May 2019 0 By Tanna Techbiz LLP
Windows
Download image from http://www.banana-pi.org/downloadall.html
  1. Insert the SD card into your computer. The size of the SD should be larger than the OS image size, generally 4GB or greater. Class 4 or higher is good. (The class is a measure of data transfer speed.)
  2. Format the SD card.Then download the OS image from the Downloads web page:

    http://www.lemaker.org/resources/9-38/image_files.html
    1. Download an SD card format tool such as SD Formatter from https://www.sdcard.org/downloads/formatter_4/eula_windows/
    2. Unzip the download file and run (as Administrator) the setup.exe to install the software on your machine. Run the tool (again with Run as Administrator) from the icon it makes on your desktop.
    3. In the “Options” menu, set “FORMAT TYPE” option to QUICK, “FORMAT SIZE ADJUSTMENT” option to “ON”.
    Check that the drive letter of the SD card you have inserted matches EXACTLY the one selected by the software.
    Warning: if you don’t check this carefully, there is a danger of formatting one of your other drives accidentally. See this forum link for help if you do this. We are not responsible for any loss of data. To be safe, only have your main Windows hard drive running and with only one SD card inserted. Disconnect all other USB devices and drives.
    Click the “Format” button.
  3. Unzip the download file to get the OS image.

    To do this, right click on the file and choose “Extract all”. It should give you a file with the extension .img
    Ensure that neither the file name of the image you’re using nor the path contain any spaces (or other odd characters for that matter).
  4. Write the image file to the SD card.
    To do this, download a tool that can write images to an SD card, such as Win32 Diskimager from:
    http://sourceforge.net/projects/win32diskimager/files/Archive/
    Open the unzipped image file.
    Win32 Disk Imager.png
    Again, check and DOUBLE CHECK the drive letter is correct. See this forum link for help if you do this. Click the Write button. Wait patiently to successfully complete the writing process. Do not disturb the SD card or remove it or turn off the computer during this process. Serious damage to the card and also possibly to your computer hardware can happen if you do so.
     
    Ubuntu (Linux)
    1. Insert your SD card into your computer. The size of the SD should be larger than the OS image size, generally 4GB or greater.
    2. Format the SD card.
      1. Check the SD card node.
        sudo fdisk -l
      2. Delete all existing partitions on the SD card.
        Use the o command to delete all partitions on the SD card and then use the n command to add one new partition and use the w command to save the changes.
        sudo fdisk /dev/sdx
      3. Format all the partitions of SD card as FAT32.
        sudo mkfs.vfat /dev/sdxx
        (x should be replaced according to your SD card node as determined in the first step above)
        You can also skip this step because the write image command dd in Linux will format the SD card automatically.
    3. Download the OS image from the Downloads webpage:
      http://www.lemaker.org/index.php?m=content&c=index&a=show&catid=9&id=38
    4. Unzip the download file to get the OS image (.img)
      unzip [path]/[downloaded filename]
      If the filename extension is .tgz, run the following command.
      tar -zxvf [path]/[downloaded filename]
      Ensure that neither the file name of the image you’re using nor the path contain any spaces (or other odd characters for that matter).
    5. Write the image file to the SD card.
      1. Check the SD card node.
        sudo fdisk -l
      2. (Optional step) Verify if the hash key of the zip file is the same as shown on the downloads page.
        sha1sum [path]/[imagename]
        This will print out a long hex number which should match the “SHA-1” line for the SD image you have downloaded.
      3. Unmount all the partitions of the the SD card
        umount /dev/sdxx
      4. Write the image file to SD card.
        sudo dd bs=4M if=[path]/[imagename] of=/dev/sdx
        Wait patiently to successfully complete the writing process. Please note that the block size set to 4M will work most of the time – if not, please try 1M, although 1M will take considerably longer. You can use the command below to check progress..
        sudo pkill -USR1 -n -x dd