Posts Tagged ‘Debian’

A quick initiation to the Debian package construction

Thursday, December 22nd, 2011

While attenting at this year’s RMLL conferences, I had the opportunity to listen to a great presentation of the APT package management system by Lucas Nussbaum. I then had the idea to create this post as a quick reference on how to quickly build someone’s first Debian package.

You are kindly invited to take a glance at the complete presentation hosted here if you want to learn more about this exciting part of the Debian systems.

Your first Debian package

First, you will need to pull all the required dependencies required to build any package – please ensure that you have some deb-src entries in your sources.list (using Synaptic or your good old fashioned CLI editor) or else you will get a “E: You must put some ‘source’ URIs in your sources.list” error.

apt-get update
apt-get install build-essential devscripts debhelper

(more…)

Mounting partitions stored in a logical volume (or a disk image)

Thursday, April 7th, 2011

With the increased use of virtualization has come the increased use of disk images (.iso, .vmdl, .qcow2, .vdi, etc) and LVM’s logical volumes (LV), as dedicated storage for Virtual Machines (VM). Frequently, when setting up a VM, several partitions are created within these disk images.

So, you end up with a machine (the virtualization host), usually installed across several partitions, one of which contains a filesystem containing a disk image or an LVM physical volume with some logical volumes, which in turn contain some more partitions, maybe containing a simple filesystem, or again containing a LVM or RAID volume, that again contains more partitions, etc. If this reminds you of Inception, then you already realize how hard it might be if you want to access on of those interior partitions directly from the host. However, sometimes you need to do just that, be it for disaster recovery or just plain backups.

This post show the method I successfully used to access such partitions. I had to find this out quickly recently, and couldn’t find any one blog post that covered this steps, so here it comes.

(more…)