This guide will show you how to install the Logical Volume Management gui from Fedora Core 8 rpm on your Ubuntu desktop. I prefer this gui over evmsgui because its alot more user friendly and gives you good information about your drives/volumes.
Before you begin here are some general note on LVM:
-For your system to work entirely on LVM you have to make a install using the alternate installation CD which will give you the option to install using LVM.
-If you have installed Ubuntu using LVM and you want to resize you root partition (or any system partition) you will have to boot using the Desktop live-cd and run the gui from there. You can grab both files attached to this post that contains everything needed to install and run system-config-lvm in a livecd session. Just extract the content, put it in the same folder as the .deb and run lvmgui-livecd-install.sh to get everything up and running.
****WARNING****
The GUI applies all settings instantly. Always be sure of what you do and double check before doing it. Its really easy to intialise the wrong drive and lose hours of work.
First of all we want to get the alien package to convert the rpm package to a .deb :
Code:
sudo apt-get install alien
Then we need the system-config-lvm rpm package from Fedora :
Code:
wget download.fedora.redhat.com/pub/fedora/linux/releases/8/Everything/i386/os/Packages/system-config-lvm-1.1.1-2.0.fc8.noarch.rpm
Next we will convert the .rpm package to .deb package (you will see alot of warning, you can ignore them) :
Code:
sudo alien system-config-lvm-1.1.1-2.0.fc8.noarch.rpm
Now we want to install our new deb package :
*For some reason alien changes the version number from 1.1.1-2 to 1.1.1-3 when creating the package
Code:
sudo dpkg -i system-config-lvm_1.1.1-3_all.deb
system-config-lvm needs the python interpreter and looks for it under the name /usr/bin/python2 but on Ubuntu 8.04 python is named /usr/bin/python2.5 so you need to create a link to python2.5 and name it python2
Code:
sudo ln -s /usr/bin/python2.5 /usr/bin/python2
Now if everything is alright you can start system-config-lvm (with sudo) and start managing your volumes.
Code:
sudo system-config-lvm &
On a final note here are the instruction to make the shortcut "Logical Volume Management" under System -> Administration work and lauch system-config-lvm properly.
1- Go to System -> Preference -> Main Menu
2- Find the "Logical Volume Management" and right click on it and open properties.
3- Change the command field to this: gksu system-config-lvm
4- Close everything and use your brand new shortcut!
****WARNING****
The GUI applies all settings instantly. Always be sure of what you do and double check before doing it. Its really easy to intialise the wrong drive and lose hours of work.
I hope this guide will help you.
EDIT: Changed system-config-lvm version from 1.0.18-1.2.FC5 to 1.1.1-2.0.FC8 and updated the whole guide to reflect this change, I also removed/updated the parts for Dapper to Hardy. I also added instruction to make the menu shortcut work and general notes on LVM.
Bookmarks