Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: 12.10 install with LVM on dual boot system

  1. #1
    Join Date
    Dec 2006
    Beans
    36

    12.10 install with LVM on dual boot system

    I posted this in the Security Discussion forum but didn't get any responses so I'm posting here to see if anyone knows a workaround for this.

    I'm trying to install Ubuntu 12.10 to my hard drive. I already have windows 7 installed on the drive and I play to encrypt it with TrueCrypt once I get linux working.

    I've done this before with the 12.04 version using the alternate CD but I'm having problems setting up LVM on my drive. I create a 250MB ext4 /boot partition and then create a LVM. Then in the LVM I make a / ext4 partition. The problem is that I can't split up the LVM to make a /swap.

    I was using the "something else" option in the partitioning step so that I can setup a /boot partition and not have ubuntu overwrite my MBR since I will need TrueCrypt to do that when I install it.

    I feel like there is something obvious that I am missing but I can't figure it out.

  2. #2
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: 12.10 install with LVM on dual boot system

    How are you creating the logical volume for root? Assuming you give all LVM space to a single volume group, you create the root LV in that VG but with a smaller size than the total VG size. That way you can also create the swap LV in the same VG.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  3. #3
    Join Date
    Dec 2006
    Beans
    36

    Re: 12.10 install with LVM on dual boot system

    Hey thanks for replying. Sorry about the slow response I've been very busy with work.

    I just thought I found a workaround

    Once I setup the encrypted logical volume I see it and it has one partion in it but I cannot resize that partition. I can assign it a mount point but if I do not create a swap then the installer complains about there being no swap. I just figured out that if I double click on the encrypted volume I can create a new partition table with swap, /home/ and /, but then the installer crashed while it was setting up my partition tables....

    I'm going to reboot and try again. I will edit the thread to say if it works this time. I think I may have also read something about the lack of LVM compatibility in 12.10 so we'll see.
    Attached Images Attached Images

  4. #4
    Join Date
    Feb 2013
    Beans
    8

    Re: 12.10 install with LVM on dual boot system

    I've done this before and had the same problems. I ended up installing Ununtu as the only OS - it will give you all of the proper partitioning tools then [f-disk] - segment an area for boot/recovery/sda and fresh windows 7. you'll have to back up your data obviously - but linux writes the hard drive in a way that windows can't boot properly unless it's installed second on certain laptops. try just updating your BIOS from the manufacturer first - that worked for me in one install aw well.

  5. #5
    Join Date
    Dec 2006
    Beans
    36

    Re: 12.10 install with LVM on dual boot system

    Actually, it looks like ubuntu 12.10 does not support custom LVM layouts which is a pretty big thing to be missing.

    http://www.tutonics.com/2012/11/ubun...de-part-1.html

    I'm just going to do a regular install and then set it up with LVM once I have it installed. Then I'll encrypt my windows partition with truecrypt.

  6. #6
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: 12.10 install with LVM on dual boot system

    What do you mean it doesn't support custom LVM? You can do what ever you want. Maybe it doesn't have an automated process that suits your needs, because different people have different needs so there can't be auto process for everyone, but manually you can do what you want with LVM.

    Since you also want to encrypt the disk, or only one OS, that could be an issue you have to work to solve.

    But LVM as LVM is very flexible and you can set it up how ever you want.

    For example, what do you want your custom LVM to look like?
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  7. #7
    Join Date
    Dec 2006
    Beans
    36

    Re: 12.10 install with LVM on dual boot system

    I mean that during the install you cannot setup LVM without formatting your entire drive. The install crashed while partitioning my hard drive and the website I gave says that if you do not want to install LVM on your entire drive you need to apply it afterwards.

    On a side note, it looks like something funky happened when truecrypt overwrote my MBR because I can't boot into linux (I didn't try before hand to make sure I could though....whoops). I'll sort it out this weekend. I'm hoping I don't need to install windows after installing linux because that would be a PITA.

  8. #8
    Join Date
    Jul 2005
    Beans
    2,047

    Re: 12.10 install with LVM on dual boot system

    Can we assume you tried creating the LVM and all the partitions you want ahead of time before booting the install CD? Then just choose the partitions you'd previously created as mount points?

  9. #9
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: 12.10 install with LVM on dual boot system

    Quote Originally Posted by BenWhitey View Post
    I mean that during the install you cannot setup LVM without formatting your entire drive. The install crashed while partitioning my hard drive and the website I gave says that if you do not want to install LVM on your entire drive you need to apply it afterwards.
    Of course you can. I didn't have time to go through all of the info on that website, but if they said that they are wrong.

    Now, in your case you are trying to encrypt the disk with Truecrypt which might be the issue, not LVM.

    And another important moment: the live cd doesn't contain the package lvm2 and for 12.10 there is no alternate cd as far as i know. So, installing 12.10 with LVM would go like:
    1. You boot into live mode first. Install the lvm2 package.
    2. Create the partition(s) you want to serve as physical device for LVM with Gparted or parted in terminal. It's important to mark the partition(s) as physical device for LVM when creating them. So, you don't need to overwrite the whole disk, just create any partition(s) you want.
    3. Create the VG and LVs you want.
    4. Only then start the installer with the Install icon on the desktop.
    5. Choose Something Else and in the partitions list it should show the LVs. Use them with correct mount points and that should be it.

    If you need help setting up the VG and LVs, just ask. There are number of tutorials online too, some very old.

    For 12.04, the alternate cd makes it little bit easier because it natively supports LVM, so you have to do less things manually. But it's very easily doable in 12.10 too.

    Now, all of the above affects LVM only. When trying to use encryption, how it affects the setup I have no idea. You have to investigate that.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  10. #10
    Join Date
    Dec 2006
    Beans
    36

    Re: 12.10 install with LVM on dual boot system

    Well, can't I make the argument that they are right because you have to install lvm2 separately in order for it to work since there is no alternative cd?

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •