Live GIS Disc Quick Start for USB

From OSGeo
Revision as of 01:06, 5 October 2012 by Wiki-HamishBowman (talk | contribs) (→‎Build from OSGeo Live DVD or USB: Persistant install with a 4gb USB drive (sp?))
Jump to navigation Jump to search

OSGeo-Live can be installed on a USB drive. This will boot faster than the DVD.

Requirements

Build from OSGeo Live DVD or USB

  • Run an OSGeo-Live DVD
  • Download the mini iso to your computer's hard drive.
  • Insert USB
  • Start the Startup Disk Creator tool:
  • XFCE (e.g. OSGeo Live)
Applications → System → Startup Disk Creator
  • Browse to select the mini iso from your hard drive.
    • Alternate method to launch from command line and already select the target iso
usb-creator-gtk -i osgeo-live-mini-5.0.iso 
  • Then choose your USB drive from the list, select "Documents stored in extra space" and set the size slider to its maximum, and click "Make startup disk". This tool wants your USB drive to start with an empty FAT32 partition.
  • Restart your PC and set your BIOS or Boot Menu to boot from the USB device, save your changes and reboot

Persistant install with a 4gb USB drive

The USB System Disk Creator tool that comes with Ubuntu 12.04 has a minimum persistent disk size of 1024 megabytes. Since the OSGeo Live iso (mini) takes 3.2gb of the available 3.7gb vFAT partition on a 4gb USB drive, we only have 545 megabytes free and the "Select persistence size" slider remains greyed out. We will have to edit the hardcoded limit down to 256 mb. Note that the persistent space records any change to the base iso, and so fills up rather quickly (about 170mb will be used almost immediately). By only giving it half the recommended free space (545 instead of 1024 mb) you'll need to be judicious in your changes to the base system. For example, installing software updates may eat all the space you have. Note that due to the limitations of the vFAT partition format you are also limited to a maximum persistent size of 4GB. On a 8gb USB drive this will mean that there will be a few hundred MB free on the drive, you can use System → Gparted to create a new EXT3 or EXT4 partition in the free space to make it usable.

The fix:

edit /lib/python2.7/dist-packages/usbcreator/misc.py and on line 22 change MIN_PERSISTENCE = 1024 to 256. You will have to be the super user to do this, so sudo is needed:
sudo nano /lib/python2.7/dist-packages/usbcreator/misc.py

After that, you can install OSGeo Live 6.0 on a 4GB USB drive, with persistence.

Build OSGeo-Live USB from Windows

Either

  1. Boot from a OSGeo-Live or Ubuntu/Xubuntu DVD, and then build a USB using the ubuntu method.

or

Note: this method does not create a persistence space, so the live usb will 'forget' changes or settings you made.
  1. Download an OSGeo-Live ISO
  2. Run the Rufus formatter and bootable USB drive creator
  3. Select device and enable 'Create a bootable disk using:' and select the iso image downloaded above with the button on the right, click Start

Hint: Make sure the computer you want to boot the USB stick on has booting from the USB device enables. If not go into the BIOS change the boot settings, save your changes and reboot.

Note: We have previously had success building with the PenDriveLinux USB Installer, however as of OSGeo-Live 5.5, we have been unable to get it working.

Build OSGeo-Live USB from other Linux

Ubuntu

  • Use the same instructions as building from Live DVD or Live USB, adjustements noted below. Ubuntu version must be the same or newer than the one OSGeo-Live is built with.
    • For OSGeo Live 6.0 you need Ubuntu 12.04 or newer
    • For OSGeo Live 5.0/5.5 you need Ubuntu 11.04 or newer
    • For OSGeo Live 4.0/4.5 you need Ubuntu 10.04 or newer
  • Gnome: From the main Ubuntu menu select:
System → Administration → Startup Disk Creator
  • Unity: Use Dash to search for and launch Startup Disk Creator
  • Browse to select the mini iso from your hard drive.
    • Alternate method to launch from command line and already select the target iso
usb-creator-gtk -i osgeo-live-mini-5.0.iso 
  • KDE : ?
    • Alternate method to launch from command line and already select the target iso
usb-creator-kde -i osgeo-live-mini-5.0.iso

Debian

Fedora

Alternate method for Mac,Linux or Windows


Set BIOS boot order:

  • Most computers are not set to boot from USB by default.
  • To achieve this, boot your computer, and hit the appropriate key when prompted to go into the BIOS (usually by pressing the <Delete> key or a <Function Key> or similar).
  • Select to boot from the USB device.
  • Note, that for some computers you will need to have the USB inserted into the computer in order to select it.
  • Note also, the USB is often listed under hard drives rather than removable devices.

Run

  • Reboot computer with new BIOS boot order set.
  • You should boot up into an Xubuntu system, with Geospatial applications installed.
  • If you find yourself at a pretty login page simply press return or wait for the countdown to timeout.
  • Try the many applications from the "GeoSpatial" menu.

Known issues:

  • Mac computers will not boot from this USB, please use the LiveDVD

Mac Bootable USB

See Also

For further options, see PenDriveLinux.com