Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 41

Thread: Boot fails LVM encryption

  1. #11
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Boot fails LVM encryption

    Actually that looks good it says partition 1. Different versions of grub have somewhat different info from boot script.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  2. #12
    Join Date
    Jun 2005
    Location
    /world/OldEurope
    Beans
    184
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Boot fails LVM encryption

    Quote Originally Posted by oldfred View Post
    Actually that looks good it says partition 1. Different versions of grub have somewhat different info from boot script.
    Yeah, but that was the old state before my attempts trying to 'fix' the boot. Now it says:
    Code:
    Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of 
        the same hard drive for core.img. core.img is at this location and looks 
        for ?? on this drive.
    Do you suggest to somehow install Grub2 (v1.97-1.98) to see if the information will become like this again?
    Code:
    Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector 
        1 of the same hard drive for core.img. core.img is at this location and 
        looks in partition 1 for /grub.
    Last edited by elektronaut; March 12th, 2013 at 01:33 PM.

  3. #13
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Boot fails LVM encryption

    Do all this with encryption mounted.

    If you just uninstalled grub-efi, you may not have reinstalled grub-pc?

    # purge old and reinstall new to sda
    sudo apt-get purge grub grub-pc grub-common grub-efi
    sudo mv /boot/grub /boot/grub_backup
    sudo mkdir /boot/grub
    sudo apt-get install grub-pc grub-common
    sudo grub-install --recheck /dev/sda
    sudo update-grub

    If it gives an error on grub-efi not installed it is just that you already deleted it.

    You do not have to chroot if already into your install. But I do not think this includes the extra steps to also mount the lmv.
    chroot & grub uninstall & reinstall -drs305
    http://ubuntuforums.org/showthread.php?t=1581099
    Last edited by oldfred; March 12th, 2013 at 02:27 PM.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #14
    Join Date
    Jun 2005
    Location
    /world/OldEurope
    Beans
    184
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Boot fails LVM encryption

    OK, I followed your advice and executed these steps:
    Quote Originally Posted by oldfred View Post
    sudo apt-get purge grub grub-pc grub-common grub-efi
    sudo mv /boot/grub /boot/grub_backup
    sudo mkdir /boot/grub
    sudo apt-get install grub-pc grub-common
    sudo grub-install --recheck /dev/sda
    sudo update-grub
    But I don't understand what I should do with this information:
    You do not have to chroot if already into your install. But I do not think this includes the extra steps to also mount the lmv.
    chroot & grub uninstall & reinstall -drs305
    http://ubuntuforums.org/showthread.php?t=1581099
    LVM is mounted, even if the boot info script output might suggest otherwise. The system is running and I can use all LV's. Alas, it seems that the output of boot info script didn't change:

    Code:
                      Boot Info Script 0.60    from 17 May 2011
    
    
    ============================= Boot Info Summary: ===============================
    
     => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of 
        the same hard drive for core.img. core.img is at this location and looks 
        for ?? on this drive.
     => No boot loader is installed in the MBR of /dev/sdb.
    
    sda1: __________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  
        Boot files:        /grub/grub.cfg /grub/core.img
    
    sda2: __________________________________________________________________________
    
        File system:       crypto_LUKS
        Boot sector type:  Unknown
        Boot sector info:  
    
    sdb1: __________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  
        Boot files:        
    
    sdb3: __________________________________________________________________________
    
        File system:       hfsplus
        Boot sector type:  -
        Boot sector info:  
        Operating System:  
        Boot files:        
    
    sdb4: __________________________________________________________________________
    
        File system:       vfat
        Boot sector type:  Unknown
        Boot sector info:   According to the info in the boot sector, sdb4 starts 
                           at sector -875547592. But according to the info from 
                           fdisk, sdb4 starts at sector 3419419704.
        Operating System:  
        Boot files:        
    
    vg01-root': ____________________________________________________________________
    
        File system:       
        Boot sector type:  Unknown
        Boot sector info:  
        Mounting failed:   mount: unknown filesystem type ''
    
    vg01-usr': _____________________________________________________________________
    
        File system:       
        Boot sector type:  Unknown
        Boot sector info:  
        Mounting failed:   mount: unknown filesystem type ''
    mount: unknown filesystem type ''
    
    vg01-var': _____________________________________________________________________
    
        File system:       
        Boot sector type:  Unknown
        Boot sector info:  
        Mounting failed:   mount: unknown filesystem type ''
    mount: unknown filesystem type ''
    mount: unknown filesystem type ''
    
    vg01-tmp': _____________________________________________________________________
    
        File system:       
        Boot sector type:  Unknown
        Boot sector info:  
        Mounting failed:   mount: unknown filesystem type ''
    mount: unknown filesystem type ''
    mount: unknown filesystem type ''
    mount: unknown filesystem type ''
    
    vg01-home': ____________________________________________________________________
    
        File system:       
        Boot sector type:  Unknown
        Boot sector info:  
        Mounting failed:   mount: unknown filesystem type ''
    mount: unknown filesystem type ''
    mount: unknown filesystem type ''
    mount: unknown filesystem type ''
    mount: unknown filesystem type ''
    
    vg01-swap': ____________________________________________________________________
    
        File system:       
        Boot sector type:  Unknown
        Boot sector info:  
        Mounting failed:   mount: unknown filesystem type ''
    mount: unknown filesystem type ''
    mount: unknown filesystem type ''
    mount: unknown filesystem type ''
    mount: unknown filesystem type ''
    mount: unknown filesystem type ''
    
    ============================ Drive/Partition Info: =============================
    
    Drive: sda _____________________________________________________________________
    
    Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot  Start Sector    End Sector  # of Sectors  Id System
    
    /dev/sda1               2,048       976,895       974,848  83 Linux
    /dev/sda2    *        976,896 1,953,523,711 1,952,546,816  83 Linux
    
    
    Drive: sdb _____________________________________________________________________
    
    Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
    255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot  Start Sector    End Sector  # of Sectors  Id System
    
    /dev/sdb1                   1 3,907,029,167 3,907,029,167  ee GPT
    
    
    GUID Partition Table detected.
    
    Partition    Start Sector    End Sector  # of Sectors System
    /dev/sdb1              34 1,953,793,169 1,953,793,136 Data partition (Windows/Linux)
    /dev/sdb3   1,953,796,784 3,419,419,703 1,465,622,920 Hierarchical File System Plus (HFS+) partition (Mac OS X)
    /dev/sdb4   3,419,419,704 3,907,024,064   487,604,361 Data partition (Windows/Linux)
    
    "blkid" output: ________________________________________________________________
    
    Device           UUID                                   TYPE       LABEL
    
    /dev/mapper/sda2_crypt xeVilN-lEBw-sTMF-e6Kt-DxYG-qByW-Kz8Qr5 LVM2_member 
    /dev/mapper/vg01-home 7d7a7c88-799c-42af-add6-f221e5db5e9a   ext4       
    /dev/mapper/vg01-root 740ff707-6cb2-4424-9ccf-955866171404   ext4       
    /dev/mapper/vg01-swap a412acb0-bfae-4768-9129-21bc5479c53c   swap       
    /dev/mapper/vg01-tmp ad8c13f5-3bed-4434-b3c9-3f357db9f743   ext4       
    /dev/mapper/vg01-usr 0b595bbc-4de1-4705-bd27-19b741e80998   ext4       
    /dev/mapper/vg01-var fc822b3e-d393-4f65-bb65-cd5278e30140   ext4       
    /dev/sda1        ea3b7965-277e-4d9e-9a08-5a271f967422   ext4       
    /dev/sda2        f7b214f1-6371-4465-abfa-3c3cb0f3c6a0   crypto_LUKS 
    /dev/sdb1        a4652f1f-d0a8-4ecd-9f09-11d689ef342e   ext4       linux
    /dev/sdb3        9f7e12c6-20cb-3a59-8ba0-5761a24b2217   hfsplus    osx
    /dev/sdb4        68F2-15DF                              vfat       FAT32
    
    ========================= "ls -R /dev/mapper/" output: =========================
    
    /dev/mapper:
    control
    sda2_crypt
    vg01-home
    vg01-root
    vg01-swap
    vg01-tmp
    vg01-usr
    vg01-var
    
    ================================ Mount points: =================================
    
    Device           Mount_Point              Type       Options
    
    /dev/mapper/vg01-home /home                    ext4       (rw,usrquota,grpquota,acl,user_xattr)
    /dev/mapper/vg01-root /                        ext4       (rw,errors=remount-ro,acl,user_xattr)
    /dev/mapper/vg01-tmp /tmp                     ext4       (rw,acl,user_xattr)
    /dev/mapper/vg01-usr /usr                     ext4       (rw,acl,user_xattr)
    /dev/mapper/vg01-var /var                     ext4       (rw,acl,user_xattr)
    /dev/sda1        /boot                    ext4       (rw,acl,user_xattr)
    /dev/sdb1        /mnt/2tb-linux           ext4       (rw,noexec,nosuid,nodev,acl,user_xattr)
    
    
    ============================= sda1/grub/grub.cfg: ==============================
    
    --------------------------------------------------------------------------------
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
      set have_grubenv=true
      load_env
    fi
    set default="0"
    if [ "${prev_saved_entry}" ]; then
      set saved_entry="${prev_saved_entry}"
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi
    
    function savedefault {
      if [ -z "${boot_once}" ]; then
        saved_entry="${chosen}"
        save_env saved_entry
      fi
    }
    
    function recordfail {
      set recordfail=1
      if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
    }
    
    function load_video {
      insmod vbe
      insmod vga
      insmod video_bochs
      insmod video_cirrus
    }
    
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos1)'
    search --no-floppy --fs-uuid --set=root ea3b7965-277e-4d9e-9a08-5a271f967422
    if loadfont /grub/unicode.pf2 ; then
      set gfxmode=auto
      load_video
      insmod gfxterm
      insmod part_msdos
      insmod ext2
      set root='(hd0,msdos1)'
      search --no-floppy --fs-uuid --set=root ea3b7965-277e-4d9e-9a08-5a271f967422
      set locale_dir=($root)/grub/locale
      set lang=en_US
      insmod gettext
    fi
    terminal_output gfxterm
    if [ "${recordfail}" = 1 ]; then
      set timeout=-1
    else
      set timeout=10
    fi
    ### END /etc/grub.d/00_header ###
    
    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/light-gray
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    function gfxmode {
    	set gfxpayload="${1}"
    	if [ "${1}" = "keep" ]; then
    		set vt_handoff=vt.handoff=7
    	else
    		set vt_handoff=
    	fi
    }
    if [ "${recordfail}" != 1 ]; then
      if [ -e ${prefix}/gfxblacklist.txt ]; then
        if hwmatch ${prefix}/gfxblacklist.txt 3; then
          if [ ${match} = 0 ]; then
            set linux_gfx_mode=keep
          else
            set linux_gfx_mode=text
          fi
        else
          set linux_gfx_mode=text
        fi
      else
        set linux_gfx_mode=keep
      fi
    else
      set linux_gfx_mode=text
    fi
    export linux_gfx_mode
    if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
    menuentry 'Ubuntu, with Linux 3.2.0-38-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	gfxmode $linux_gfx_mode
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set=root ea3b7965-277e-4d9e-9a08-5a271f967422
    	linux	/vmlinuz-3.2.0-38-generic root=/dev/mapper/vg01-root ro   quiet splash $vt_handoff
    	initrd	/initrd.img-3.2.0-38-generic
    }
    menuentry 'Ubuntu, with Linux 3.2.0-38-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set=root ea3b7965-277e-4d9e-9a08-5a271f967422
    	echo	'Loading Linux 3.2.0-38-generic ...'
    	linux	/vmlinuz-3.2.0-38-generic root=/dev/mapper/vg01-root ro single nomodeset 
    	echo	'Loading initial ramdisk ...'
    	initrd	/initrd.img-3.2.0-38-generic
    }
    submenu "Previous Linux versions" {
    menuentry 'Ubuntu, with Linux 3.2.0-29-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	gfxmode $linux_gfx_mode
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set=root ea3b7965-277e-4d9e-9a08-5a271f967422
    	linux	/vmlinuz-3.2.0-29-generic root=/dev/mapper/vg01-root ro   quiet splash $vt_handoff
    	initrd	/initrd.img-3.2.0-29-generic
    }
    menuentry 'Ubuntu, with Linux 3.2.0-29-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set=root ea3b7965-277e-4d9e-9a08-5a271f967422
    	echo	'Loading Linux 3.2.0-29-generic ...'
    	linux	/vmlinuz-3.2.0-29-generic root=/dev/mapper/vg01-root ro single nomodeset 
    	echo	'Loading initial ramdisk ...'
    	initrd	/initrd.img-3.2.0-29-generic
    }
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    if [ "x${timeout}" != "x-1" ]; then
      if keystatus; then
        if keystatus --shift; then
          set timeout=-1
        else
          set timeout=0
        fi
      else
        if sleep --interruptible 3 ; then
          set timeout=0
        fi
      fi
    fi
    ### END /etc/grub.d/30_os-prober ###
    
    ### BEGIN /etc/grub.d/30_uefi-firmware ###
    ### END /etc/grub.d/30_uefi-firmware ###
    
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f  $prefix/custom.cfg ]; then
      source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    --------------------------------------------------------------------------------
    
    =================== sda1: Location of files loaded by Grub: ====================
    
               GiB - GB             File                                 Fragment(s)
    
       0.055994987 = 0.060124160    grub/core.img                                  1
       0.263208389 = 0.282617856    grub/grub.cfg                                  1
       0.038486481 = 0.041324544    initrd.img-3.2.0-29-generic                    2
       0.053195000 = 0.057117696    initrd.img-3.2.0-38-generic                    1
       0.019269943 = 0.020690944    vmlinuz-3.2.0-29-generic                       1
       0.046621323 = 0.050059264    vmlinuz-3.2.0-38-generic                       1
    
    ======================== Unknown MBRs/Boot Sectors/etc: ========================
    
    Unknown BootLoader on sda2
    
    00000000  4c 55 4b 53 ba be 00 01  61 65 73 00 00 00 00 00  |LUKS....aes.....|
    00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    00000020  00 00 00 00 00 00 00 00  63 62 63 2d 65 73 73 69  |........cbc-essi|
    00000030  76 3a 73 68 61 32 35 36  00 00 00 00 00 00 00 00  |v:sha256........|
    00000040  00 00 00 00 00 00 00 00  73 68 61 31 00 00 00 00  |........sha1....|
    00000050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    00000060  00 00 00 00 00 00 00 00  00 00 10 00 00 00 00 20  |............... |
    00000070  84 9b 32 71 cc a9 09 ae  93 c8 de e5 b4 fa 58 e5  |..2q..........X.|
    00000080  38 96 16 af 98 79 32 ea  00 5e e2 2f bd 31 f8 14  |8....y2..^./.1..|
    00000090  39 21 3f bd e0 a8 bd 3c  34 cb 4f 79 d4 62 9d 5e  |9!?....<4.Oy.b.^|
    000000a0  9d 3a 36 12 00 00 3d 09  66 37 62 32 31 34 66 31  |.:6...=.f7b214f1|
    000000b0  2d 36 33 37 31 2d 34 34  36 35 2d 61 62 66 61 2d  |-6371-4465-abfa-|
    000000c0  33 63 33 63 62 30 66 33  63 36 61 30 00 00 00 00  |3c3cb0f3c6a0....|
    000000d0  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    000000e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    000000f0  00 00 00 00 00 00 00 00  00 00 00 08 00 00 0f a0  |................|
    00000100  00 ac 71 f3 00 01 0a e7  34 42 0a 01 ae 82 99 d0  |..q.....4B......|
    00000110  95 37 31 12 e6 ac 0d de  95 b0 45 6a 6f 48 24 ec  |.71.......EjoH$.|
    00000120  1e 2d ad 96 85 92 78 1b  00 00 01 08 00 00 0f a0  |.-....x.........|
    00000130  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    00000140  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    00000150  00 00 00 00 00 00 00 00  00 00 02 08 00 00 0f a0  |................|
    00000160  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    00000170  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    00000180  00 00 00 00 00 00 00 00  00 00 03 08 00 00 0f a0  |................|
    00000190  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    000001a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    000001b0  00 00 00 00 00 00 00 00  00 00 04 08 00 00 0f a0  |................|
    000001c0  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    000001e0  00 00 00 00 00 00 00 00  00 00 05 08 00 00 0f a0  |................|
    000001f0  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    00000200
    
    Unknown BootLoader on sdb4
    
    00000000  eb 58 90 4d 53 57 49 4e  34 2e 31 00 02 40 5a 00  |.X.MSWIN4.1..@Z.|
    00000010  02 00 00 00 00 f8 00 00  20 00 ff 00 38 34 d0 cb  |........ ...84..|
    00000020  89 40 10 1d 7b e8 00 00  00 00 00 00 02 00 00 00  |.@..{...........|
    00000030  01 00 06 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    00000040  80 00 29 df 15 f2 68 4e  4f 20 4e 41 4d 45 20 20  |..)...hNO NAME  |
    00000050  20 20 46 41 54 33 32 20  20 20 fa 31 c0 8e d0 bc  |  FAT32   .1....|
    00000060  00 7c fb 8e d8 e8 00 00  5e 83 c6 19 bb 07 00 fc  |.|......^.......|
    00000070  ac 84 c0 74 06 b4 0e cd  10 eb f5 30 e4 cd 16 cd  |...t.......0....|
    00000080  19 0d 0a 4e 6f 6e 2d 73  79 73 74 65 6d 20 64 69  |...Non-system di|
    00000090  73 6b 0d 0a 50 72 65 73  73 20 61 6e 79 20 6b 65  |sk..Press any ke|
    000000a0  79 20 74 6f 20 72 65 62  6f 6f 74 0d 0a 00 00 00  |y to reboot.....|
    000000b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    *
    000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
    00000200
    
    Unknown BootLoader on vg01-root'
    
    
    Unknown BootLoader on vg01-usr'
    
    
    Unknown BootLoader on vg01-var'
    
    
    Unknown BootLoader on vg01-tmp'
    
    
    Unknown BootLoader on vg01-home'
    
    
    Unknown BootLoader on vg01-swap'
    
    
    
    =============================== StdErr Messages: ===============================
    
      One or more specified logical volume(s) not found.
      One or more specified logical volume(s) not found.
      One or more specified logical volume(s) not found.
    hexdump: /dev/mapper/vg01-root': No such file or directory
    hexdump: /dev/mapper/vg01-root': No such file or directory
      One or more specified logical volume(s) not found.
      One or more specified logical volume(s) not found.
      One or more specified logical volume(s) not found.
    hexdump: /dev/mapper/vg01-usr': No such file or directory
    hexdump: /dev/mapper/vg01-usr': No such file or directory
      One or more specified logical volume(s) not found.
      One or more specified logical volume(s) not found.
      One or more specified logical volume(s) not found.
    hexdump: /dev/mapper/vg01-var': No such file or directory
    hexdump: /dev/mapper/vg01-var': No such file or directory
      One or more specified logical volume(s) not found.
      One or more specified logical volume(s) not found.
      One or more specified logical volume(s) not found.
    hexdump: /dev/mapper/vg01-tmp': No such file or directory
    hexdump: /dev/mapper/vg01-tmp': No such file or directory
      One or more specified logical volume(s) not found.
      One or more specified logical volume(s) not found.
      One or more specified logical volume(s) not found.
    hexdump: /dev/mapper/vg01-home': No such file or directory
    hexdump: /dev/mapper/vg01-home': No such file or directory
      One or more specified logical volume(s) not found.
      One or more specified logical volume(s) not found.
      One or more specified logical volume(s) not found.
    hexdump: /dev/mapper/vg01-swap': No such file or directory
    hexdump: /dev/mapper/vg01-swap': No such file or directory
    There is still this line:
    Code:
    ...looks for ?? on this drive.
    What should I do now? Maybe I should try to install Grub to sda1 instead of sda?

  5. #15
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Boot fails LVM encryption

    I do not know RAID nor LVM. But with RAID you do install to root of the RAID as system boots that.
    But I do not think LVM works that way. BIOS does not know about RAID, so it still boots from MBR.

    More info here:
    http://stephentanner.com/index.php/2...encrypted-lvm/
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #16
    Join Date
    Jun 2005
    Location
    /world/OldEurope
    Beans
    184
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Boot fails LVM encryption

    Stephen describes how to mount the LV's and then install grub to sda. But I'm thinking that in my situation I probably have to specify sda1 given the following output:
    Code:
    me@server:~$ sudo fdisk -l
    
    Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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: 0x00088855
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1            2048      976895      487424   83  Linux
    /dev/sda2   *      976896  1953523711   976273408   83  Linux
    ...
    me@server:~$ sudo parted -l
    Model: ATA SAMSUNG HD103SJ (scsi)
    Disk /dev/sda: 1000GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    
    Number  Start   End     Size    Type     File system  Flags
     1      1049kB  500MB   499MB   primary  ext4
     2      500MB   1000GB  1000GB  primary               boot
    ...
    The 500MB partition should be the boot partition, but the bigger encrypted partition is marked with the boot flag. I guess there should be no harm in configuring sda1, or?

  7. #17
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Boot fails LVM encryption

    Grub does not use boot flag, just boot loader in MBR, more code in core.img just after MBR (to find the boot partition) and grub menu in boot partition. Then it loads kernels in boot partition and starts system.
    Windows uses its boot loader in the MBR, then uses boot flag to find partition and more code in that partition's PBR or partition boot sector. Then it loads Windows.

    BIOS always boots from MBR, or if RAID the root of the RAID set.
    Only the new efi systems do not use MBR, but use efi partition.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  8. #18
    Join Date
    Jun 2005
    Location
    /world/OldEurope
    Beans
    184
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Boot fails LVM encryption

    Thanks for the clarification. I'm still hesitating to reboot given the strange output of boot-info-script. Even if the boot flag has no significance, it seems that something is not in order. Unfortunately I couldn't find any information anywhere which might help.

  9. #19
    Join Date
    Jun 2005
    Location
    /world/OldEurope
    Beans
    184
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Boot fails LVM encryption

    Further searching revealed that it might be necessary to execute
    Code:
    grub-mkimage
    This thread mentions
    Code:
    $ sudo grub-mkimage --output=/boot/grub/core.img ext2 _chain pc gpt biosdisk lvm
    in order to load a LVM, and this page mentions
    Code:
    $ sudo grub-mkimage -o /boot/grub/core.img configfile sha1 fs_uuid biosdisk pc linux ext2 help minicmd crypto aes luks sha256 devmapper
    While the latter page describes how to fully encrypt the disk, which is not what I have here - /boot is not encrypted and not even part of a LV - the command might still be necessary in my case.
    What do you think?

  10. #20
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Boot fails LVM encryption

    Maybe one of the few that know something about LVM or encryption will come along. I just do not know.

    Only a few use full disk encryption. It seems that a fair number do use /home encryption as all user data is then encrypted. But I have not used encryption at all.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Page 2 of 5 FirstFirst 1234 ... 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
  •