Page 1 of 1

LVM install option

Posted: Tue May 15, 2012 2:29 pm
by powerhouse
LMDE 12 doesn't have an LVM option for partitioning. I tried Fedora 16 and 17 which both have LVM as an option, but Fedora is terrible and, that is my opinion, just for geeks - nothing worked "out of the box".

It would be great to add LVM as an option to the installer.

I installed it now on regular partitions, and added LVM support. Now how do I move my ext4 partitions to LVM?

Any advice?

EDIT: It turned out all my problems with installing Linux (and later on Windows 7) were hardware related. See my last post in the thread. Sorry for flaming any Linux distribution when the problems had clearly nothing to do with the distribution itself.

Re: LVM install option

Posted: Tue May 15, 2012 4:16 pm
by zerozero

Re: LVM install option

Posted: Tue May 15, 2012 4:45 pm
by powerhouse
I tried that already, but my result was a somewhat broken system. It would boot alright into the desktop, but then things didn't work as expected. The particular issue was with Mate (I think LMDE 12 Cinnamon/Mate installs with Mate as default?).

Anyway, when the How-To got to this:

"Because the mint user was removed, GDM automatic login will be broken. Unless you want to see a blank screen with only the busy spinner when you boot, be sure to complete this step. Open /etc/gdm3/daemon.conf with vi or nano and replace

I was at a loss since there was no such file. Any suggestions?

Re: LVM install option

Posted: Tue May 15, 2012 4:49 pm
by zerozero
this last respin replaced gdm3 with mdm as login manager (i must confess i didn't read the howto in detail) anyway you have to make that amendment (at least)

Re: LVM install option

Posted: Tue May 15, 2012 5:12 pm
by powerhouse
Thanks zz. I followed your link and gather that this is what I need to do (I shamelessly copy from another post):

"edit (as root)

and underneath
Add the next lines:

Code: Select all

where username is your name

To stop auto login just change the true to false."

Re: LVM install option

Posted: Tue May 15, 2012 5:17 pm
by powerhouse
cc: If I follow your advice, it means I need to completely reinstall the system (phew, once more). Isn't there an easier way to just copy my installed / and /home to the LVs I've prepared? Or take a snapshot (can that be done with regular ext4 partitions) and adjust/update grub2?

Re: LVM install option

Posted: Tue May 15, 2012 5:33 pm
by zerozero
from the top of my head, give this a try. wayne knows what he's talking about.

Re: LVM install option

Posted: Thu May 17, 2012 4:53 am
by Zikco
I just finished a similar exercise today.

I moved the whole system from a small HDD to a larger one, including slotting a separate partition into /home.
I don't know if this works for you, but here goes.

1. Using gparted, I followed most of the instructions from the "Cloning the O.S." part of this post: ... 11#p574273
After that, I had trouble with logging in, so I went on to:

2. I booted up a Live (DVD) disc and copied my ./home directories to their new home using

Code: Select all

sudo cp -r --copy-contents -p /media/oldhome /media/newhome
After a reboot, my system's up and running on the new HDD with no problems (yet). :)

It sounds like you need to do something similar to item number 2.

Hope this helps.

Edit: fixed typos
Edit2: clarified the Live disc type

Re: LVM install option

Posted: Fri May 18, 2012 5:47 pm
by powerhouse
Hello Zikco: Thanks for the help. Yes, I thought along the same line, using cp -r ... to copy the partitions. However, I plan to use the live USB to do that, in order not to copy a running file system.

Next step is chroot, edit the fstab and grub files to point to the new locations, and update-grup to build a new grub boot menu.

But first I need to figure out some Xen related stuff (unrelated to this issue).

Re: LVM install option

Posted: Sat May 19, 2012 9:46 am
by Zikco
Glad to be able to help. :D
powerhouse wrote:...However, I plan to use the live USB to do that...
That's what I meant by Live disc. A Live USB/DVD disc. I used a Live DVD.

Maybe I should rephrase that for future reference. :P

Re: LVM install option

Posted: Sat Jun 09, 2012 7:58 am
by powerhouse
Just an update, so that others reading this don't come to the wrong conclusions:

I eventually discovered hardware problems related to either the motherboard or the RAM, or the BIOS setup. My RAM didn't play well in the default configuration of the motherboard. The PC is now with the shop where I bought it and they are running extensive tests to locate the issue.

My conclusion: Despite vendor assurances about compatibility etc., my hardware is still pretty much bleeding edge and may cause unpleasant surprises (like instability, boot failures, corrupted files and file systems, etc.). For reference, I tried to install Windows 7 64 bit Ultimate which ran the installer fine but quit at the first reboot.

My advise with this kind of hardware (see my signature below) is this:

1. Don't even think about installing your OS right away! Download and run some stress test software for a couple of days, including RAM tests. In my case, the RAM test would sometimes pass without issues, but sometimes show random errors.
2. Make sure everything is installed properly, in particular the CPU and the heat sink/fans. Insufficient cooling can fry your hardware/CPU during the stress test!!! Also check that the fans are connected to the right headers! Someone reported that he connected the CPU fan to a diagnostic header on an Asus Rampage Extreme board which has a diagnostic header next to the fan headers and that diag. header was marked "CPU fan" (the marking referred to the headers on the left, not the diag header above the marking).
2. Before running any test, check your BIOS configuration! By default, the Asus Sabertooth X79 disables XMP. However, XMP must be enabled for my DDR3-1600 memory sticks to work properly. The more memory sticks you have, the more likely it is that you have to adjust voltages like VCCSA to work with the memory. Search the Internet for your RAM sticks and BIOS settings. ONLY CHANGE THE VOLTAGES ETC. WHEN THERE IS A REASON TO DO SO (e.g. memory errors or boot freezes), or when the RAM / MB manufacturer clearly advises to do so. Increasing voltages means more power consumption and increased temperatures.
3. Different motherboard BIOS releases play differently - the latest release may not always be the most stable for your system. Again, such information can be found on the Internet (I found some good advise on Tomshardware).
4. If you run into RAM errors, you may need to run the stress test plus memory test on each single DIMM module individually to isolate a bad stick (in my case with 8 sticks it takes a long time).
5. Once you can rule out any motherboard / RAM / CPU / power supply / cooling issues that should show up during a stress test / memory test over several days, go ahead with the installation.
6. Sometimes the SSD itself or the attachment of HD / SSD to the SATA connectors can make the difference between successful OS boot and failure. Some suggest to use the 6th SATA 3GB header to connect the DVD, and the SATA 6GB header for the SSD or HD, but again in some cases only the 1st SATA 3GB header would work for the SSD or HD. Go figure.
7. Modern motherboards have several SATA controllers (Intel, Marvell, etc.). Start with the Intel SATA ports for the boot disk / SSD, unless you found evidence that the others may work as well or better with your boot disk. In my case Asus denotes the Marvell SATA connectors as "data disks" and discourages their use for boot disks.

About memory:
I think it wasn't a good idea to buy 8x4GB RAM sticks. Sure its nice to have 32GB memory and I do have some use for it, but the trouble of testing it and making it work can be counterproductive.
With these boards and processors, memory settings can be very finicky. In general it is suggested to run the memory at its advertised clock speed, so my DDR3-1600 should run on 1600MHz, not at the motherboard default of 1333MHz. XMP enabled should make sure it runs as advertised, BUT your milage may vary.
Moreover, a fully populated memory bank often requires fine-tuning to ensure sufficient power supply to the modules during boot and later during operation (yes, there are specific BIOS settings for the boot phase). Stick with manufacturer and XMP settings unless advised otherwise by competent people who have used the same motherboard AND exactly the same RAM kits.
Mixing different RAM modules, or even the same RAM modules from two kits, is strongly discouraged. RAM kits are matched and supposedly tested to work together. I've bought one 32GB RAM kit and it's enough trouble to get this work. There are plenty of reports from people who have tried to expand their RAM by adding another kit of the same brand and specs (for example two kits of 4x4GB). Some or lucky, but it seems many aren't.
Just because a motherboard comes with 8 DIMM slots and their specs say that 64GB are supported doesn't mean much. In retrospect, I would now have bought a 4x4GB kit giving me 16GB, and wait a year or two until there is enough real-life evidence that higher memory configurations actually work out of the box.

Sorry for taking the thread totally off-topic, but I've done serious injustice to the Linux distributions I tried when in fact all my problems originated in hardware issues.

Re: LVM install option

Posted: Mon Jul 16, 2012 11:01 am
by powerhouse
zerozero wrote:from the top of my head, give this a try. wayne knows what he's talking about.
Wayne suggests using gparted to clone partitions. That wouldn't work with LVM since gparted doesn't support logical volumes, as far as I know.

Re: LVM install option

Posted: Thu Jul 26, 2012 3:26 am
by powerhouse
In answer to my own question on installing Linux Mint on LVM, I've written a tutorial. It can be found here:

The tutorial is about installing Linux Mint 13 Maya 64 bit onto LVM formatted / and /home partitions. I haven't tried it with LMDE, but I see no apparent reason why it shouldn't work with LMDE. If anyone tried the tutorial with LMDE, please report in the how-to section.