Step Two • Partitions

5. Partitions scheme

  1. Partitioning method: Manual
  2. VMWare

6. Physical partitions

  1. Create a boot partition
  2. Create a physical volume for LVM
5. Partition scheme

5a. Partitioning method: Manual

We need our web server to suit our webby needs. Using the arrow keys on the keyboard we navigate to Manual if you didn't do that already:

Manual

After hitting Enter you'll most likely see a screen with a line holding the words FREE SPACE:

Free space

The disk as shown above has only 8.6 GB of free space, because it’s on a virtual machine. On these pages we further assume that you have at least 40 GB of free space.

If you see a picture similar to the one above, with a line indicating FREE SPACE, click here to jump to step 6.

5b. VMware

You could, for example if you were using VMware, be looking at a screen without a free space indication:

VMware

If you see something like the above screen, hit Enter.

In the next screen, use your left arrow key to select <Yes> and hit Enter.

Create
6. Creating physical partitions

6a. Create a boot partition

Now, we are looking at a screen with a FREE SPACE line:

Free space

With the FREE SPACE line selected, hit Enter and you'll see:

Create new partition

We are going to create the first one of two primary partitions. With Create a new partition selected, hit Enter.

Partition size

First we create a small boot partition. Minimal required space is 100 Mb. Minimal, so let's make it 200 Mb. Type 200M and hit Enter. (If your disk is very small, type 100M.)

You'll be offered the choice between a primary or a logical partition:

Boot partition

Choose Primary and hit Enter.

Beginning

For your PC booting is always the first thing to do. With Beginning selected, hit Enter.

The default mount point is root (just a /). For the boot partition we need mount point /boot.

Boot mount

With Mount point selected, hit Enter.

/Boot

Select /boot and hit Enter. Next, you'll get a confirmation:

Confirmation

We're ready with the boot partition. Move to Done setting up the partition:

Done

... and hit Enter.

6b. Create a physical volume for LVM

As you see, we have a boot partition now. There is still a lot of free space:

Boot ready

Now we'll create another primary partition. With FREE SPACE selected, hit Enter. You'll see:

Create new

With Create a new partition selected, hit Enter.

Size

We're going to use all the free space that was left. Compare the maximum size in the first text line on your screen (on this page it's only 8.5 GB but probably you have got a lot more) to the figure in the blue text field. They should be the same, that is: maximum. If yes, leave it as it is. If no, type max to give the new partition all available space. Hit Enter. You'll see:

Primary

Then, with Primary selected, hit Enter.

Use as

With Use as selected, hit Enter. You'll see a list of options:

Physical LVM

With physical volume for LVM selected, hit Enter. This is what you'll see:

Use as physical

Use as: physical volume for LVM, that's what we want. Move to Done setting up the partition:

Done

... and hit Enter.

As you see, we've got 2 primary partitions now:

Two partitions

Let's move on to the next page to configure the Logical Volume Manager.

Drag this box to where you want it
vi | shell
command action command action
su become superuser rm foo delete file foo
ls show files & directories rmdir foo delete directory foo
ls -a show invisible items too rm -rf foo delete dir foo + content
ls -l show long names chmod change permissions
ls -la show long and invisible chmod 755 foo set 755 for foo
cd change directories vi /etc/foo open file foo in vi
cd / go to root directory apt-get install get and install application
cd /etc go to etc via root tar -xzvf extract zip file
cd /tmp go to temp via root exit finish terminal session
/etc/init.d/restart apache2 restart the Apache server
/etc/init.d/status apache2 show if the Apache server is running
shutdown -h now shutdown the system immediately
shutdown -r shutdown and reboot the system
vi | shell
<= keyboard hits => action
  i   insert (start editing)
  arrows   move around
  backspace   delete to the left
  delete   delete to the right
  esc   stop editing
esc :w enter stop editing, save changes and keep vi open
esc :wq enter stop editing, save changes and exit vi
esc :q enter stop editing, exit vi without saving

Assistance

vi & shell

Contact