Find the answer to your Linux question:
Results 1 to 9 of 9
Hi all, Ubuntu 12.04 desktop 64 bit Performed following steps to reinstall Ubuntu 1) Download "ubuntu-12.04.1-alternate-amd64.iso" and burned it on USB drive/stick 2) Booted up the PC with the said ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778

    Installation problem on LVM


    Hi all,

    Ubuntu 12.04 desktop 64 bit

    Performed following steps to reinstall Ubuntu

    1)
    Download "ubuntu-12.04.1-alternate-amd64.iso" and burned it on USB drive/stick

    2)
    Booted up the PC with the said drive/stick. Deleted old partitions and created new partitions with LVM /root. Installation went through without problem

    3)
    Started Ubuntun 12.04 desktop. Ran "sudo apt-get update && sudo apt-get upgrade

    4)
    On terminal

    $ sudo fdisk -l
    Code:
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000bfde6
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048      585727      291840   83  Linux
    /dev/sda2          587774   154882047    77147137    5  Extended
    /dev/sda3       154882048   156835839      976896   82  Linux swap / Solaris
    /dev/sda5          587776   154882047    77147136   83  Linux
    $ sudo apt-get install lvm2

    $ sudo vgchange -a y
    Code:
      No volume groups found
    Pls help. TIA

    B.R.
    satimis

  2. #2
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    881
    So, type
    mount
    to show where your file systems are mounted.

    To see your volume groups, type
    vgscan

    To see your lv's, type
    lvscan

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778
    I followed;
    HowTo: Setup Ubuntu Desktop with LVM Partitions
    https://help.ubuntu.com/community/UbuntuDesktopLVM

    to install Ubuntu. But it didn't start two options of "Try Ubuntu" and "Install Ubuntu"

    Then I continued the installation without manual and came to the result as posted previously. Ubuntu was installed in about half space of the HD leaving the rest space for another Linux OS.

    I made another round installing Ubuntu on the complete space of the HD. Then I was allowed to create LVM.

    $ sudo fdisk -l
    Code:
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000948c6
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048      499711      248832   83  Linux
    /dev/sda2          501758   312580095   156039169    5  Extended
    /dev/sda5          501760   312580095   156039168   8e  Linux LVM
    
    Disk /dev/mapper/lvm-root: 70.7 GB, 70678216704 bytes
    255 heads, 63 sectors/track, 8592 cylinders, total 138043392 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000
    
    Disk /dev/mapper/lvm-root doesn't contain a valid partition table
    
    Disk /dev/mapper/lvm-swap_1: 8317 MB, 8317304832 bytes
    255 heads, 63 sectors/track, 1011 cylinders, total 16244736 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000
    
    Disk /dev/mapper/lvm-swap_1 doesn't contain a valid partition table
    But still there is problem on "Disk /dev/mapper/lvm-root doesn't contain a valid partition table"

    I think I have to use "ubuntu-12.04.1-desktop-amd64.iso" NOT "ubuntu-12.04.1-alternate-amd64.iso" The former would start two options of "Try Ubuntu" and "Install Ubuntu"

  4. #4
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    881
    Quote Originally Posted by satimis View Post
    But still there is problem on "Disk /dev/mapper/lvm-root doesn't contain a valid partition table"
    That is normal. It's not a problem.

    Is there an issue you're having with the actual operation of the system?

  5. #5
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778
    Quote Originally Posted by mizzle View Post
    That is normal. It's not a problem.

    Is there an issue you're having with the actual operation of the system?
    No. What I need is to install a dual boot system, Ubuntu and Fedora.

    My target is testing Cloud, OpenStack and oVirt. Ubuntu for testing OpenStack and Fedora for oVirt. It took me couple days on installing these 2 systems

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    There is nothing wrong with Alternate installation image. It has text based installer and it doesn't give Live mode option.

    Didn't you select LVM in Partition Section during installation? All installers give an option to manage partitions before install starts.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778
    Quote Originally Posted by devils casper View Post
    - snip -

    Didn't you select LVM in Partition Section during installation? All installers give an option to manage partitions before install starts.
    From my recollection:
    - I can't create LVM partitions first. Because I can't assign /root on it.
    - Nor can I partition the HD first to install Ubuntu. I have to create Logical Volume Group first from there installing Ubuntu to take up the complete HD

    Another problem of unknown cause is;

    Root password didn't work after installation. I have to start "recovery" mode and dropped to root shell to run;

    # mount -rw -o remount /
    # passwd root

    I use the same root password through out all OS under testing for years.

  8. #8
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778
    Another problem surfaces on installing Fedora 17 as dual boot. There is no spare space.

    see photo attached.

    Neither I can resize Ubuntu with the device provided by the installer.

    I have to follow the steps on;
    Dualboot on lvm with luks
    fedora - Dualboot on lvm with luks - Super User

    Is there an easy way? Otherwise I prefer going back to physical partitioning without LVM

    TIA

    B.R.
    satimis

  9. #9
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778
    Another problem surfaces on installing Fedora 17 as dual boot. There is no spare space.

    see photo attached.

    Neither I can resize Ubuntu with the device provided by the installer.

    I have to follow the steps on;
    Dualboot on lvm with luks
    fedora - Dualboot on lvm with luks - Super User

    Is there an easy way? Otherwise I prefer going back to physical partitioning without LVM

    TIA

    B.R.
    satimis
    Attached Images Attached Images

Posting Permissions

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