As a first step when preparing a development environment for the Raspberry Pi one must prepare an operating system on which all the development software will be running. For the course at UCC we will use the latest Ubuntu Linux system, which we install on a bootable external USB hard drive. Before starting system installation the 64bit version of the Ubuntu desktop system (ubuntu-16.04.1-desktop-amd64.iso at the time of writing) is downloaded from ubuntu.com/download and transferred to a DVD or installed on a USB memory stick. If you have a running Ubuntu system then this can easily be accomplished with the usb-creator-gtk program.
The DVD or memory stick contains a live Ubuntu system which can be used to get acquainted with Ubuntu without touching the operating system currently running on the computer. Once we get to grips with the new system we install it onto an external USB hard drive.
Before installing the system I prepared the partition layout on the USB drive using gparted a GUI style partition editor available on the installation DVD or memory stick.Alternatively you may user the command line program gdisk. Be sure that you are using the correct disk! Otherwise you may overwrite your existing OS! I check in /dev before:
As you can see, I have /dev/sda, which is the internal drive, /dev/sdb which is the installation USB memory stick and finally /dev/sdc, the USB hard disk, onto which I want to install my new Ubuntu system.
Today there are 2 different ways to boot the systemClicking the “install Ubuntu” button on the desktop or rebooting the DVD or memory stick and selecting “Installation” instead of “Live system” starts the installation.
After clicking continue we should get the window shown above. I selected to update immediately and to install third party software. Do not install Ubuntu alongside e.g. Windows and clearly don't erase the disk and install but select the something else option. This brings up the Installation Type window. If you started from a new disk (as I did), first create a new partition table partitioning the USB disk (1TB) as shown below: Use the partition layout created earlier and just tell the installer which file system you want to install on which partition. Make sure that all partitions (except the swap partition) are newly formatted as ext4 file systems. In the Installation Type window, selecting a partition (in my case e.g. /dev/sdc1 because the USB drive is seen as /dev/sdc) and clicking Change brings up the window above on which you can select the mount point (/dev/sdc1 is the root partition), the file system type and if the partition must be formatted or not. Be sure to select your USB hard drive as disk on which the boot loader will be installed (/dev/sdc in my case). Before clicking install be absolutely sure that the disk you are installing to is the fresh USB hard disk. Check also that the boot loader goes onto the USB drive and NOT onto /dev/sda. If you get it wrong, you might kill your Windows system that might be installed e.g. on your internal hard disk. If the boot loader goes onto the wrong drive your Windows system may not boot any more.I | Attachment | History | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|---|
png | disks.png | r1 | manage | 11.7 K | 2017-01-03 - 16:48 | UnknownUser | attached disks |
png | gdisk.png | r1 | manage | 81.3 K | 2017-01-03 - 16:54 | UnknownUser | partition layout ass seen with gdisk |
png | gparted.png | r1 | manage | 72.8 K | 2017-01-03 - 16:31 | UnknownUser | partition layout |