debwin29

Debian Debian is one of a handful of Linux distributions with support for setting up LVM, the Linux Logical Volume Manager. LVM brings a level of flexibility to disk management on Linux that is not possible with the traditional disk partitioning scheme. If your favorite Linux distribution supports LVM, I’ll always recommend that you use it instead of the traditional disk partitioning scheme. There is no real downside to it.

If you opt for LVM on Debian 6 (Debian 6 review), the installer will allocate all available disk space to the partitions and Logical Volumes, leaving nothing to add other Logical Volumes if you ever need to. This article gives a very detailed step-by-step guide on proper LVM configuration on Debian 6. It is mostly intended for those new to the concept of volume management (on Linux).

Note: This article assumes installation on a computer with a single hard disk. A follow up article will show how to add extra disk(s) to the system, if the original disk becomes full.

Setting up LVM on any Linux distribution involves four steps:

  1. Create a non-LVM partition for /boot.
  2. Initialize the remaining free space of use by LVM. In LVM jargon, this free space is called a Physical Volume (PV).
  3. Create a Volume Group (VG). A VG is a virtual container for one or more PVs. The disk space available on a VG is the sum of the disk space of each member PV. If a VG runs out of disk space, you can attached a new hard disk to the system and add it to the VG.
  4. Carve out Logical Volumes (LV) from the VG. An LV is LVM’s equivalent of a disk partition. Like a VG, you can add or reduce the size of an LV. Lets say, for example, that you have an LV of size 20 GB, mounted at /home, And lets assume that the LV has run out of space, or is about to. You can grow the LV, provided that there is free space on the VG. And you can do this online, that is, while the computer is running, and without having to unmount the volume.
Related Post:  ProtonMail and Subrosa: Encrypted communication for the privacy-conscious

To begin, you just need to download a suitable installation image. Debian 6 installation and disk partitioning guide will give you an idea which one to download. My suggestion is to use a netinst image. Boot your computer using the installation image and let’s get started.

The default installation method on Debian 6 is via an ncurses-based interface. I prefer the graphical interface. It’s a bit easier.
deblvm

Note: Using the default or choosing the “Graphical install” option on the boot screen will lead to the installation of a GNOME-based system. If you would rather install a system based on KDE. LXDE, or Xfce, choose “Advanced options,” and on the screen that comes after that, chose “Order desktops.”

Related Post:  A Guide to DRM-Free Living

A bunch of images that are not directly related to disk partitioning have been omitted from this tutorial. So, we cut to the step where disk partitioning starts.

The option to choose at this step is “Manual.” That is the only option that will allow to accomplish our objective, which is install a system using just a fraction of the available disk space. Continue.
deblvm1

Select the disk(s) you want to use. Keep in mind that this tutorial assumes installation on a single disk. Continue.
debwin4

If the disk has been initialized, you will see something just like the one in the image below. If it has not, you will get another screen requesting permission to initialized it. Select the free space, then Continue.
debwin6

Select the option as shown to start creating partitions. The goal here is to create a traditional partition for /boot, then create three logical volumes for /, swap, and /home. You can create more partitions, but for a desktop system, these will do. Continue.
debwin7

By default the /boot partition on Debian 6 is allocated about 250 MB. Most Linux distributions use 500 MB. I think 250 MB will do just fine. Continue.
debwin8

The default here is Primary. No problem with that. Continue.
debwin9

Stick with the default. Continue.
debwin10

Share:

Share on facebook
Facebook
Share on twitter
Twitter
Share on pinterest
Pinterest
Share on linkedin
LinkedIn

Hola! Did you notice that LinuxBSDos.com no longer runs network ads?  Yep, no more ads from the usual suspects that track you across the Internet.  But since  I still need to pay to keep the site running, feel free to make a small donation by PayPal.

Subscribe for updates. Trust me, no spam!

Mailchimp Signup Form

Sponsored links

1. Attend Algorithm Conference, a top AI and ML event for 2020.
2. Reasons to use control panel for your server.
3. DHgate Computers Electronics, Cell Phones & more.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest

On social media
Via my newsletter
Mailchimp Signup Form

Partner links

1. Attend Algorithm Conference, a top AI and ML event for 2021.
2. Reasons to use control panel for your server.
3. DHgate Computers Electronics, Cell Phones & more.
Hacking, pentesting distributions

Linux Distributions for Hacking

Experts use these Linux distributions for hacking, digital forensics, and pentesting.

Categories
Archives

The authors of these books are confirmed to speak during

Algorithm Conference

T-minus AI

Author was the first chairperson of AI for the U.S. Air Force.

The case for killer robots

Author is the Director of the Center for Natural and Artificial Intelligence.

Why greatness cannot be planned

Author works on AI safety as a Senior Research Scientist at Uber AI Labs.

Anastasia Marchenkova

An invitation from Anastasia Marchenkova

Hya, after stints as a quantum researcher at Georgia Tech Quantum Optics & Quantum Telecom Lab, and the University of Maryland Joint Quantum Institute, I’m now working on superconducting qubit quantum processors at Bleximo. I’ll be speaking during Algorithm Conference in Austin, Texas, July 16 – 18, 2020. Meet me there and let’s chat about progress and hype in quantum computing.