Step Four • LVM (part 2)

8. Choosing file system & mount points


8. File system and mount points

Choosing file system and mount points.

The 6 volumes in this overview are lacking a file system and a mount point. The partition settings must be completed now.

Overview

Using your keyboard's arrow keys, select the 2nd line of the first volume, that is, lvhome:

lvhome

Hit Enter. Pay attention to the line Use as: do not use:

Do not use

With Use as: do not use selected, hit Enter. There are several options:

Ext3

Select Ext3 journaling file system and hit Enter. You'll get your choice confirmed:

Confirmed

Pay attention to the volume you're adjusting. It's lvhome, as you can read in the first line on your screen. Now you'll have to select the right mount point.

Mount point

Select Mount point: none and hit Enter. Your new options are:

Home

You were working on the home volume, remember? (If you're in doubt, hit the Tab key to select <Go Back>, then Enter, to verify.)

Using your keyboard's arrow keys, select /home and hit Enter. If you've done it right, you'll see:

Verification

Compare the above picture with what you see on your own screen: the first line holds lvhome, file system is Ext3 and the mount point is /home. If that's what you've got, we're happy and ready with this partition.

Done

With Done setting up the partition selected, hit Enter. As you see, lvhome has been assigned to mount point /home. This means that, once the system has been setup, you'll find a directory there called home.

Overview

Select the 2nd line of lvroot:

lvroot

Hit Enter and you'll get the setup screen for lvroot:

lvroot

With Use as: do not use selected, hit Enter. You already know this one:

Ext3

With Ext3 journaling file system selected, hit Enter. As you see, lvroot now uses the Ext3 journaling file system.

Mount point

With Mount point: none selected, hit Enter. Next you'll see the mount point selection screen:

root

The root partition is marked by only a slash /. With this very root line selected, hit Enter.

Done

As you see, lvroot now uses the Ext3 file system and mount point /.

With Done setting up the partition selected, hit Enter.

Overview

Above you see the overview again. Now, set up lvsrv the same way as lvhome and lvroot before, choosing file system Ext3 and mount point /srv.

When you're done with lvsrv, we'll do something different for lvswap.

lvswap

With the 2nd line of lvswap selected, hit Enter. You'll see a familiar screen:

Use as

With Use as: do not use selected, hit Enter. This time we need a different option:

Swap area

With swap area selected, hit Enter.

Done

Since lvswap is now indeed used as swap area, select Done ... and hit Enter.

There are 2 volumes left, lvusr and lvvar. Both use file system Ext3, their mount points are /usr and /var.

AttentionYour PC remembers the last file option you chose, which was swap area. Be sure to select Ext3 for lvusr and lvvar.

When you're done, you'll see the file system types and mount points in the overview.

Overview

Use your keyboard's arrow keys to scroll down.

Finish

Select Finish partitioning and write schanges to disk and hit Enter.

Overview

Use the Tab or left arrow key to select <Yes> and hit Enter.

Formatting

Your PC will start formatting the partitions and install the base system. On to the next page.

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