Installing Ubuntu 15.04

Slashdot it! Delicious Share on Facebook Tweet! Digg!

Ubuntu Flying Solo

Installing Ubuntu by itself takes up the entire hard disk and writes all files into the /dev/sda1 primary partition. Also, the Ubuntu install creates the /dev/sda2 extended partition and, within it, the /dev/sda5 logical partition that houses the swap area (see the "Hard Drives in Ubuntu" box). The swap area includes the swap file that takes over when working memory is overloaded, although writing to the swap area is noticeably slower than direct access to main memory.

Hard Drives in Ubuntu

Ubuntu names device files on hard drives according to a particular schema: /dev/sda is the first detected hard drive, with /dev/sda1 its primary partition (/dev/sda2 through /dev/sda4 are the three other primary partitions). The /dev/sda5 device is the first logical partition located in the (/dev/sda2 extended partition. Windows should always be located in the first primary partition (/dev/sda1 ), and generally also in /dev/sda2 . If you plug a USB stick or external hard drive in the USB slot, these external storage devices are listed as /dev/sdb , with everything else following the same schema. Using the sudo fdisk -l command, you can get an overview of the available hard disk and USB memory and the partitions and filesystems within them.

Ubuntu Neighbors

Windows often takes up the entire hard drive instead. If you want to install Ubuntu alongside Windows, you must shrink the Windows partition and completely defrag it, as described in the "Windows and Ubuntu" box. Ubuntu 15.04 then invokes the GRUB 2 bootloader, which boots both systems and can handle new computers supporting secure boot.

Windows and Ubuntu

Windows likes to save its files across the entire hard disk. By defragging the Windows partition, you arrange the scattered file fragments in a contiguous region. You can then shrink the partition without destroying any installed programs. In Windows 7, you can start the defragging with Start | Programs | Accessories | System Tools . In Windows 8, use the search option to look for the defrag program. If you freshly installed Windows, a program called chkdisk routinely looks for damages to the partition, and then Windows can boot normally.

After defragging, you can begin shrinking the Windows partition. At the bottom of the Start menu, type hard and click Create and format hard drive partition . Window XP and Vista have similar functions.

Next, select the Windows partition you want to shrink. Right-click and choose Shrink Volume , enter a desired value in the Total size after shrink in MB field and click Shrink , and restart Windows.

In any case, after you install Ubuntu and restart Windows, Windows resorts to chkdisk to check for possible damages. The system then restarts the computer again before starting up normally. Wubi [2], the tool to install Ubuntu on Windows, is included with Ubuntu 15.04, and you will be able to use it up to Windows 7. Wubi only works with Windows 8 if the machine uses the old BIOS firmware and the hybrid sleep option is disabled.

Installing Windows after Ubuntu is so complicated that we don't recommend you do it. But, if you do plan to do so, choose creating a manual partition in the Ubuntu installer (as described in the "DIY Ubuntu" box) while reserving an empty /dev/sda1 partition for Windows.

DIY Ubuntu

If you want to maintain some control over the installation, you can select the Something else option, although this process requires some knowledge of the Ubuntu hard drive structure (see the "Hard Drives in Ubuntu" box). Ideally, you would place at least two logical partitions for Ubuntu on an empty hard drive: a swap partition (/dev/sda5 ) and a partition for the root directory that is at least 4.9GB (/dev/sda6 ).

Optionally, add an extra partition for the /home directory (/dev/sda7 ) that gives you enough space for all your files. This partitioning has the advantage that you can install Ubuntu again later without losing your user data. Add the new partitions using Add . For the / and /home directories, selecting the Ext4 filesystem is best.

Buy this article as PDF

Express-Checkout as PDF

Pages: 4

Price $0.99
(incl. VAT)

Buy Ubuntu User

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Installing Ubuntu 15.04

    Ubuntu 15.04 offers nearly no changes to the installation process. But, just in case you are new to Ubuntu, we'll walk you through upgrading or installing the latest release.

  • Installing Ubuntu 14.10

    Ubuntu 14.10 offers nearly no changes to the installation process. But, just in case you are new to Ubuntu, we'll walk you through upgrading or installing the latest release.

  • Installing Ubuntu 14.04

    Ubuntu 14.04 offers some changes to the installation process. We'll walk you through upgrading or installing the latest release.

  • Installing Ubuntu 13.10

    Ubuntu 13.10 offers some changes to the installation process. We'll walk you through upgrading or installing the latest release.

  • Installing Ubuntu 13.10

    Ubuntu 13.10 offers some changes to the installation process. We'll walk you through upgrading or installing the latest release.