Download and Produce a Balsa Precise SD Card using a Linux Machine

Introduction

This page is a portion 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:

  • Step 1. Install the programs you will need.
  • Step 2. Download the image file for the Balsa SD card.
  • Step 3. Extract the image (.img) file using 7zr.
  • Step 4. Copy the image to an SD card. This action writes over the SD card completely. Any existing data on the card will be lost.

The downloads for this are about 1,100 megabytes of data.

Step 1. Install the Programs You will Need

Install the following packages: p7zip zsync

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

sudo apt-get install p7zip zsync

If you are running Ubuntu Oneiric (11.10) or later, also install Imagewriter. The name of its package is: usb-imagewriter

sudo apt-get install usb-imagewriter

Step 2. Download The Image Using Zsync

Start a Terminal session. Change directories 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-precise-1.7-beta-2-8gb.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.

Step 3. Extract the image

In a Terminal session, Change directories to where you downloaded the image file.

7zr e balsa-precise-1.7-beta-2-8gb.img.7z

This will create a file named balsa-precise-1.7-beta-2-8gb.img in that directory.

Step 4. Copy it to a USB SD card

If you are running Ubuntu and if the SD card reader is recognized as a USB device, run the Imagewriter program. Select the file balsa-precise-1.7-beta-2-8gb.img and the SD card.

When Imagewriter 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.

If the SD card reader is not recogized as a USB device, you can use the dd command documented in the next section.

Alternate Step 4. Copy it to a non-USB SD card reader

Use the dd program to copy the image to the SD card:

  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 or use the program search capability). The device name is titled Device: and looks something like /dev/sdd or /dev/mmcblk0
  2. Open a Terminal window and cd to the directory where you have the file named balsa-precise-1.7-beta-2-8gb.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-precise-1.7-beta-2-8gb.img of=sd-card

The dd utility will silently copy the file to the SD card. If you want to see a progress bar, you can use the ddrescue (from the gddrescue package) instead.

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 set up a machine to run Balsa, either the machine you just used to produce the card or a different machine.

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

using a 16GB SD or USB stick?

How can I use a 16GB SD or USB stick? Is there an easy way to expand the device to use the whole thing, instead of just the first 8GB? For example, can I just expand the partition with gparted?

thanks,

iveand

RE: using a 16GB SD or USB stick?

How can I use a 16GB SD or USB stick?
As you note Balsa will only use the first 8 gigs of the Balsa device. However this is not currently a major limitation, because it stores the user data on the host machine's hard disk. With a Windows host, it's limited to 1 gigabyte.
Most of the programs bundled with Balsa have small data files, so this limitation is not a problem in a typical Balsa system.
Is there an easy way to expand the device to use the whole thing, instead of just the first 8GB?
You can't expand the device while you are running Balsa from it. You can put a partition using gparted on the blank space after the 8 gigabyte partition. This partition would be accessible.
Future versions of Balsa are planned that will back up the user's data onto the Balsa device. When this is implemented there might be some advantage in a larger BalsaRoot partition

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.