Difference between revisions of "Download and Produce a Balsa 4 gigabyte SD Card using a Linux Machine"

From LSDevLinux
Jump to: navigation, search
(Improve wording)
Line 20: Line 20:
  
 
== Download The Image Using Zsync ==
 
== Download The Image Using Zsync ==
Start a Terminal session. Change directories to where you want to download the image file. Then enter this command:
+
Start a Terminal session. Change directory to where you want to download the image file. Then enter this command:
  
  zsync http://balsa.kkoncepts.net/sites/balsa.kkoncepts.net/files/Images/balsa-1.0-lucid-beta-1-4gb.img.7z.zsync
+
  zsync <nowiki>http://balsa.kkoncepts.net/sites/balsa.kkoncepts.net/files/Images/balsa-1.0-lucid-beta-1-4gb.img.7z.zsync</nowiki>
  
 
A message may appear in Terminal: "No relevant local data found..." If you are not trying to resume an interrupted zsync download, ignore this message and let the download continue. If you DO want to resume an interrupted zsync download of this file and you see this message, type CTRL-C, check to be sure the current directory is where your interrupted download lives, then repeat the zsync command.
 
A message may appear in Terminal: "No relevant local data found..." If you are not trying to resume an interrupted zsync download, ignore this message and let the download continue. If you DO want to resume an interrupted zsync download of this file and you see this message, type CTRL-C, check to be sure the current directory is where your interrupted download lives, then repeat the zsync command.
Line 29: Line 29:
  
 
== Extract the image ==
 
== Extract the image ==
In a Terminal session, Change directories to where you downloaded the image file.
+
In a Terminal session, Change directory to where you downloaded the image file. Then type:
 
  7zr e balsa-1.0-lucid-beta-1-4gb.img.7z
 
  7zr e balsa-1.0-lucid-beta-1-4gb.img.7z
 
This will create a file named ''balsa-1.0-lucid-beta-1-4gb.img'' in that directory.
 
This will create a file named ''balsa-1.0-lucid-beta-1-4gb.img'' in that directory.
Line 37: Line 37:
  
 
Note that the above program has a bug that makes the copying very slow and may also decrease the life of the SD card.
 
Note that the above program has a bug that makes the copying very slow and may also decrease the life of the SD card.
Instead, you will want to do the following:
+
Until this is fixed, you will want to do the following instead:
 
# Find the device name of the SD card. The easiest way to do that is to plug in the SD card, and run the Disk Utility (System | Administration | Disk Utility). The device name is titled ''Device:'' and looks something like ''/dev/sdd'' or ''/dev/mmcblk0''
 
# Find the device name of the SD card. The easiest way to do that is to plug in the SD card, and run the Disk Utility (System | Administration | Disk Utility). The device name is titled ''Device:'' and looks something like ''/dev/sdd'' or ''/dev/mmcblk0''
# Open a Terminal window and cd to the directory where you have the file named ''balsa-1.0-lucid-beta-1-4gb.img''
+
# Open a Terminal window and change to the directory where you have the file named ''balsa-1.0-lucid-beta-1-4gb.img''
 
# In the following line replace ''sd-card'' with ''/dev/sdd'' or ''/dev/mmcblk0'' you found in step 1.
 
# In the following line replace ''sd-card'' with ''/dev/sdd'' or ''/dev/mmcblk0'' you found in step 1.
 
  sudo dd bs=4M if=balsa-1.0-lucid-beta-1-4gb.img of=''sd-card''
 
  sudo dd bs=4M if=balsa-1.0-lucid-beta-1-4gb.img of=''sd-card''
Line 45: Line 45:
 
When the program or command is finished, the SD card will be a Balsa SD card.
 
When the program or command is finished, the SD card will be a Balsa SD card.
  
You can use the card to set up a machine to [[Quick Start for Balsa#Setting Up a Machine to run Balsa|set up a machine to run Balsa]], either the machine you just used to produce the card or a different machine.
+
You can use the card to [[Quick Start for Balsa#Setting Up a Machine to run Balsa|set up a machine to run Balsa]], either the machine you just used to produce the card or a different machine.

Revision as of 13:26, 22 July 2011

Introduction

This page is part of the Quick Start for Balsa. It tells you how to turn an ordinary SD card into a Balsa SD card using a Linux Computer. The steps are:

  • install the programs you will need.
  • download the information (image file) for the Balsa SD card
  • extract the image (IMG) file.
  • copy it to an SD card.

This process writes over the SD card completely. Any existing data on the card will be lost.

Install the Programs You will Need

Install the following packages: p7zip zsync usb-imagewriter

You can do that using Synaptic, Ubuntu Software Center or a Terminal command:

sudo apt-get install p7zip zsync usb-imagewriter

Download The Image Using Zsync

Start a Terminal session. Change directory to where you want to download the image file. Then enter this command:

zsync http://balsa.kkoncepts.net/sites/balsa.kkoncepts.net/files/Images/balsa-1.0-lucid-beta-1-4gb.img.7z.zsync

A message may appear in Terminal: "No relevant local data found..." If you are not trying to resume an interrupted zsync download, ignore this message and let the download continue. If you DO want to resume an interrupted zsync download of this file and you see this message, type CTRL-C, check to be sure the current directory is where your interrupted download lives, then repeat the zsync command.

The image is a large file and may take some time. If you have to interrupt it, you can continue on from where it left off by re-entering the zsync command above.

Extract the image

In a Terminal session, Change directory to where you downloaded the image file. Then type:

7zr e balsa-1.0-lucid-beta-1-4gb.img.7z

This will create a file named balsa-1.0-lucid-beta-1-4gb.img in that directory.

Copy it to an SD card

Run the Imagewriter from Applications | Accessories | Imagewriter. Select the file balsa-1.0-lucid-beta-1-4gb.img and the SD card.

Note that the above program has a bug that makes the copying very slow and may also decrease the life of the SD card. Until this is fixed, you will want to do the following instead:

  1. Find the device name of the SD card. The easiest way to do that is to plug in the SD card, and run the Disk Utility (System | Administration | Disk Utility). The device name is titled Device: and looks something like /dev/sdd or /dev/mmcblk0
  2. Open a Terminal window and change to the directory where you have the file named balsa-1.0-lucid-beta-1-4gb.img
  3. In the following line replace sd-card with /dev/sdd or /dev/mmcblk0 you found in step 1.
sudo dd bs=4M if=balsa-1.0-lucid-beta-1-4gb.img of=sd-card

When the program or command is finished, the SD card will be a Balsa SD card.

You can use the card to set up a machine to run Balsa, either the machine you just used to produce the card or a different machine.