Migration

Help with issues regarding installation of Debian

Re: Migration

Postby p.H » 2020-12-28 21:24

millpond wrote:OLD *SEAGATE* system 200Mb EXT2 /Boot, typically /dev/sda1 ; 320 Gb Ext4 as LVM on /dev/sda5 (from /dev/sda2) Swap also LVM
NEW *HITACHI* system 1.8TB Primary on /dev/sda2 (/boot merged into main partition) . Separate 10Gb /swap.

Both drives cannot be /dev/sda. Which one was "Old Seagate" and which one was "New Hitachi" in your previous post ?

millpond wrote:Grub updated

How exactly ?

millpond wrote:On Hitachi (new) system it now is trying to boot but totally fails after erroring with trying to find 'stretch-vg' LVM group.

What do you mean by "totally fails" and what are the exact and complete error messages ?
Did you check /boot/grub/grub.cfg ?
Did you rebuild the initramfs ?

millpond wrote:I deleted the group with the LVM utilities.

What did you do exactly ?

millpond wrote:On the older Seagate things are just as grim. I haven been putzing with it, but it too seems unable to find its LVM drive.

I don't understand "putzing".
Didn't you delete LVM from "Old Seagate" by mistake ?
p.H
 
Posts: 1609
Joined: 2017-09-17 07:12

Re: Migration

Postby millpond » 2020-12-29 22:19

OK. Les concentrate on the 'new' Hitachi system, where the /boot and /root of the old Seagate system were merged into /dev/sda2.
I idd set up a 'Boot' partition as a 100GB /sda1, but as that did not help, I formatted it to NTFS, and am now squarely working with /dev/sda2.

I cannpt do anythiong with it. It insists on looking for a stretch-vg at bootup, and will hang after it gives up. It will not even permit me to try to boot with grub, as it will insist on the darn stretch-vg there too.

With a LivedDVD I might be able to fix the problem with an update-intramfs : But I cannot chroot into the machine. It absolutely insists on a 'bash not found' error. Even if I mount /usr prior to chrooting . Bash is there. Its a complete filesystem.
I can try update-intramfs from the DVD boot, but it does not seem to do anything.

I used the LVM 'remove group' command to take out the 'stretch-vg' group.

To recap: I cannot boot from grub, nor does chroot work from a boot DVD (either Debian or LMDE).
I am looking for a means to access a massive filesystem, based on Debian 10.

As for the other older Seagate system, still trying to find a way to access an 'orphaned' LVM drive!
millpond
 
Posts: 670
Joined: 2014-06-25 04:56

Re: Migration

Postby p.H » 2020-12-30 09:06

millpond wrote:It insists on looking for a stretch-vg at bootup

Please elaborate. What happens exactly ?
millpond wrote:and will hang after it gives up

Please elaborate. What happens exactly ?
Full hang ? initramfs shell ? Emergency shell ?

Showing is better than telling.
p.H
 
Posts: 1609
Joined: 2017-09-17 07:12

Re: Migration

Postby millpond » 2020-12-30 19:23

I cant get to it now, and cant get a screenshot, but will post more complete error messages later.
Basically, it is looking for the stretch-vg device (drive) multiple times and giving up afterwards.
fstab and grub.cfg have the correct drive UUID listed. Not the LVM drive.
In the error message before it gives up there is a reference to a /scripts/something file, as well as a missing module in /dev/md*? - the globs are in the error message.

From what i can piece together Stretch DVD installed the system as LVM - and I want to remove the LVM components with the system on a new drive with single boot/system arrangement. It is a 2TB drive with 100GB sda1 as NTFS, and rest as EXT4 (/dev/sda2) and a 10GB swap(dev/sda3) . This is an MBR system, if that matters.

Normally it freezes adter giving up looking for the volume group. Though on occasion such as a disk check it will continue, but dump to to an initramfs prompt, where I am clueless how to proceed. And lsmod shows me nothing obvious to rmmod.

I am including the grub.cfg below. Ignore the Xen components. I've been meaning to remove that part.

On the old drive the problem is that the LVM info was accidentally changed in /etc. and even with a /boot backup restored, I cannot access the drive to fix /etc with a backup!

I have not paid much attention to file system 'advances' , always assuming that no one in their right minds would ever create an unfixable file system. Like LVM.

The last resort is to install a 'normal' Buster system (without LVM) or perhaps something like LMDE4, and then clobber it with my backups. Main question would be what directories and /etc stuff to AVOID copying over!
Again, *last resort*.






Code: Select all
#
# 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
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="Debian GNU/Linux, with Xen hypervisor"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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 load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
else
  search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
else
  search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
fi
insmod png
if background_image /usr/share/desktop-base/futureprototype-theme/grub/grub-4x3.png; then
  set color_normal=white/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
   set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-fefa2514-76d9-d601-d0fa-251476d9d601' {
   load_video
   insmod gzio
   if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos2'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
   else
     search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
   fi
   echo   'Loading Linux 4.19.0-4-amd64 ...'
   linux   /boot/vmlinuz-4.19.0-4-amd64 root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro ipv6.disable=1 quiet crashkernel=384M-:128M
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-4.19.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-fefa2514-76d9-d601-d0fa-251476d9d601' {
   menuentry 'Debian GNU/Linux, with Linux 4.19.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-4-amd64-advanced-fefa2514-76d9-d601-d0fa-251476d9d601' {
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
      else
        search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
      fi
      echo   'Loading Linux 4.19.0-4-amd64 ...'
      linux   /boot/vmlinuz-4.19.0-4-amd64 root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro ipv6.disable=1 quiet crashkernel=384M-:128M
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.19.0-4-amd64
   }
   menuentry 'Debian GNU/Linux, with Linux 4.19.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-4-amd64-recovery-fefa2514-76d9-d601-d0fa-251476d9d601' {
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
      else
        search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
      fi
      echo   'Loading Linux 4.19.0-4-amd64 ...'
      linux   /boot/vmlinuz-4.19.0-4-amd64 root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro single ipv6.disable=1
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.19.0-4-amd64
   }
   menuentry 'Debian GNU/Linux, with Linux 4.19.0' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-advanced-fefa2514-76d9-d601-d0fa-251476d9d601' {
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
      else
        search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
      fi
      echo   'Loading Linux 4.19.0 ...'
      linux   /boot/vmlinuz-4.19.0 root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro ipv6.disable=1 quiet crashkernel=384M-:128M
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.19.0
   }
   menuentry 'Debian GNU/Linux, with Linux 4.19.0 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-recovery-fefa2514-76d9-d601-d0fa-251476d9d601' {
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
      else
        search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
      fi
      echo   'Loading Linux 4.19.0 ...'
      linux   /boot/vmlinuz-4.19.0 root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro single ipv6.disable=1
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.19.0
   }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
menuentry 'Debian GNU/Linux, with Xen hypervisor' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-simple-fefa2514-76d9-d601-d0fa-251476d9d601' {
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos2'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
   else
     search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
   fi
   echo   'Loading Xen 4.11-amd64 ...'
        if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
            xen_rm_opts=
        else
            xen_rm_opts="no-real-mode edd=off"
        fi
   multiboot2   /boot/xen-4.11-amd64.gz placeholder   ${xen_rm_opts}
   echo   'Loading Linux 4.19.0-4-amd64 ...'
   module2   /boot/vmlinuz-4.19.0-4-amd64 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro ipv6.disable=1 quiet crashkernel=384M-:128M
   echo   'Loading initial ramdisk ...'
   module2   --nounzip   /boot/initrd.img-4.19.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux (with Xen hypervisor)' $menuentry_id_option 'gnulinux-advanced-fefa2514-76d9-d601-d0fa-251476d9d601' {
   submenu 'Xen hypervisor, version 4.11-amd64' $menuentry_id_option 'xen-hypervisor-4.11-amd64-fefa2514-76d9-d601-d0fa-251476d9d601' {
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64 and Linux 4.19.0-4-amd64' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-4-amd64-advanced-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64 ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot2   /boot/xen-4.11-amd64.gz placeholder   ${xen_rm_opts}
         echo   'Loading Linux 4.19.0-4-amd64 ...'
         module2   /boot/vmlinuz-4.19.0-4-amd64 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro ipv6.disable=1 quiet crashkernel=384M-:128M
         echo   'Loading initial ramdisk ...'
         module2   --nounzip   /boot/initrd.img-4.19.0-4-amd64
      }
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64 and Linux 4.19.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-4-amd64-recovery-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64 ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot2   /boot/xen-4.11-amd64.gz placeholder  ${xen_rm_opts}
         echo   'Loading Linux 4.19.0-4-amd64 ...'
         module2   /boot/vmlinuz-4.19.0-4-amd64 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro single ipv6.disable=1
         echo   'Loading initial ramdisk ...'
         module2   --nounzip   /boot/initrd.img-4.19.0-4-amd64
      }
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64 and Linux 4.19.0' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-advanced-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64 ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot2   /boot/xen-4.11-amd64.gz placeholder   ${xen_rm_opts}
         echo   'Loading Linux 4.19.0 ...'
         module2   /boot/vmlinuz-4.19.0 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro ipv6.disable=1 quiet crashkernel=384M-:128M
         echo   'Loading initial ramdisk ...'
         module2   --nounzip   /boot/initrd.img-4.19.0
      }
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64 and Linux 4.19.0 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-recovery-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64 ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot2   /boot/xen-4.11-amd64.gz placeholder  ${xen_rm_opts}
         echo   'Loading Linux 4.19.0 ...'
         module2   /boot/vmlinuz-4.19.0 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro single ipv6.disable=1
         echo   'Loading initial ramdisk ...'
         module2   --nounzip   /boot/initrd.img-4.19.0
      }
   }
   submenu 'Xen hypervisor, version 4.11-amd64.efi' $menuentry_id_option 'xen-hypervisor-4.11-amd64.efi-fefa2514-76d9-d601-d0fa-251476d9d601' {
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64.efi and Linux 4.19.0-4-amd64' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-4-amd64-advanced-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64.efi ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot2   /boot/xen-4.11-amd64.efi placeholder   ${xen_rm_opts}
         echo   'Loading Linux 4.19.0-4-amd64 ...'
         module2   /boot/vmlinuz-4.19.0-4-amd64 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro ipv6.disable=1 quiet crashkernel=384M-:128M
         echo   'Loading initial ramdisk ...'
         module2   --nounzip   /boot/initrd.img-4.19.0-4-amd64
      }
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64.efi and Linux 4.19.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-4-amd64-recovery-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64.efi ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot2   /boot/xen-4.11-amd64.efi placeholder  ${xen_rm_opts}
         echo   'Loading Linux 4.19.0-4-amd64 ...'
         module2   /boot/vmlinuz-4.19.0-4-amd64 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro single ipv6.disable=1
         echo   'Loading initial ramdisk ...'
         module2   --nounzip   /boot/initrd.img-4.19.0-4-amd64
      }
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64.efi and Linux 4.19.0' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-advanced-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64.efi ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot2   /boot/xen-4.11-amd64.efi placeholder   ${xen_rm_opts}
         echo   'Loading Linux 4.19.0 ...'
         module2   /boot/vmlinuz-4.19.0 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro ipv6.disable=1 quiet crashkernel=384M-:128M
         echo   'Loading initial ramdisk ...'
         module2   --nounzip   /boot/initrd.img-4.19.0
      }
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64.efi and Linux 4.19.0 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-recovery-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64.efi ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot2   /boot/xen-4.11-amd64.efi placeholder  ${xen_rm_opts}
         echo   'Loading Linux 4.19.0 ...'
         module2   /boot/vmlinuz-4.19.0 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro single ipv6.disable=1
         echo   'Loading initial ramdisk ...'
         module2   --nounzip   /boot/initrd.img-4.19.0
      }
   }
   submenu 'Xen hypervisor, version 4.11-amd64.config' $menuentry_id_option 'xen-hypervisor-4.11-amd64.config-fefa2514-76d9-d601-d0fa-251476d9d601' {
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64.config and Linux 4.19.0-4-amd64' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-4-amd64-advanced-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64.config ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot   /boot/xen-4.11-amd64.config placeholder   ${xen_rm_opts}
         echo   'Loading Linux 4.19.0-4-amd64 ...'
         module   /boot/vmlinuz-4.19.0-4-amd64 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro ipv6.disable=1 quiet crashkernel=384M-:128M
         echo   'Loading initial ramdisk ...'
         module   --nounzip   /boot/initrd.img-4.19.0-4-amd64
      }
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64.config and Linux 4.19.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-4-amd64-recovery-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64.config ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot   /boot/xen-4.11-amd64.config placeholder  ${xen_rm_opts}
         echo   'Loading Linux 4.19.0-4-amd64 ...'
         module   /boot/vmlinuz-4.19.0-4-amd64 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro single ipv6.disable=1
         echo   'Loading initial ramdisk ...'
         module   --nounzip   /boot/initrd.img-4.19.0-4-amd64
      }
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64.config and Linux 4.19.0' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-advanced-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64.config ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot   /boot/xen-4.11-amd64.config placeholder   ${xen_rm_opts}
         echo   'Loading Linux 4.19.0 ...'
         module   /boot/vmlinuz-4.19.0 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro ipv6.disable=1 quiet crashkernel=384M-:128M
         echo   'Loading initial ramdisk ...'
         module   --nounzip   /boot/initrd.img-4.19.0
      }
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64.config and Linux 4.19.0 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-recovery-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64.config ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot   /boot/xen-4.11-amd64.config placeholder  ${xen_rm_opts}
         echo   'Loading Linux 4.19.0 ...'
         module   /boot/vmlinuz-4.19.0 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro single ipv6.disable=1
         echo   'Loading initial ramdisk ...'
         module   --nounzip   /boot/initrd.img-4.19.0
      }
   }
}

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### 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  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
millpond
 
Posts: 670
Joined: 2014-06-25 04:56

Re: Migration

Postby millpond » 2020-12-31 02:50

The actual error message is:
Cannot Process volume group "stretch-vg"
volume group "stretch-vg" not found
cannot process volume group "stretch-vg"
mdadm: mo group arrays found in config file or automatically
Gave up boot args (cat/proc/cmdline)
missing modules /proc/modules ls/dev
/dev/mapper/stretch-vg-root does not exist

At this boot, intramfs came up. (Else it repeats and hangs).

This is the grub for this (original) system which has the actual LVM drive:
(The new system cannot recognize the drive its grub is on, and I simply need a means to stop looing for volume groups! And see its drive. The error messages are very similar )

So:
Aim for:
Old drive system- recognize LVM drive and boot.
New drive system - Disable LVM and recognize the standard drive that /boot is sitting in.

Code: Select all
#
# 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
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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 load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod lvm
insmod ext2
set root='lvmid/s3CRu7-hxTk-OYyg-FEoB-yFfX-3Qq8-SZtemj/ZI9I4C-rGDW-6pFU-VhAb-LUc2-50Gd-TaoHtO'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvmid/s3CRu7-hxTk-OYyg-FEoB-yFfX-3Qq8-SZtemj/ZI9I4C-rGDW-6pFU-VhAb-LUc2-50Gd-TaoHtO'  92afb13b-f740-4b15-98f6-e37f6b066a33
else
  search --no-floppy --fs-uuid --set=root 92afb13b-f740-4b15-98f6-e37f6b066a33
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod lvm
insmod ext2
set root='lvmid/s3CRu7-hxTk-OYyg-FEoB-yFfX-3Qq8-SZtemj/ZI9I4C-rGDW-6pFU-VhAb-LUc2-50Gd-TaoHtO'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvmid/s3CRu7-hxTk-OYyg-FEoB-yFfX-3Qq8-SZtemj/ZI9I4C-rGDW-6pFU-VhAb-LUc2-50Gd-TaoHtO'  92afb13b-f740-4b15-98f6-e37f6b066a33
else
  search --no-floppy --fs-uuid --set=root 92afb13b-f740-4b15-98f6-e37f6b066a33
fi
insmod png
if background_image /usr/share/desktop-base/futureprototype-theme/grub/grub-4x3.png; then
  set color_normal=white/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
   set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-92afb13b-f740-4b15-98f6-e37f6b066a33' {
   load_video
   insmod gzio
   if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos1'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  0db01b73-2b29-4381-9245-c7372d1a8e49
   else
     search --no-floppy --fs-uuid --set=root 0db01b73-2b29-4381-9245-c7372d1a8e49
   fi
   echo   'Loading Linux 4.19.0-4-amd64 ...'
   linux   /vmlinuz-4.19.0-4-amd64 root=/dev/mapper/stretch--vg-root ro ipv6.disable=1 quiet crashkernel=384M-:128M
   echo   'Loading initial ramdisk ...'
   initrd   /initrd.img-4.19.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-92afb13b-f740-4b15-98f6-e37f6b066a33' {
   menuentry 'Debian GNU/Linux, with Linux 4.19.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-4-amd64-advanced-92afb13b-f740-4b15-98f6-e37f6b066a33' {
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  0db01b73-2b29-4381-9245-c7372d1a8e49
      else
        search --no-floppy --fs-uuid --set=root 0db01b73-2b29-4381-9245-c7372d1a8e49
      fi
      echo   'Loading Linux 4.19.0-4-amd64 ...'
      linux   /vmlinuz-4.19.0-4-amd64 root=/dev/mapper/stretch--vg-root ro ipv6.disable=1 quiet crashkernel=384M-:128M
      echo   'Loading initial ramdisk ...'
      initrd   /initrd.img-4.19.0-4-amd64
   }
   menuentry 'Debian GNU/Linux, with Linux 4.19.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-4-amd64-recovery-92afb13b-f740-4b15-98f6-e37f6b066a33' {
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  0db01b73-2b29-4381-9245-c7372d1a8e49
      else
        search --no-floppy --fs-uuid --set=root 0db01b73-2b29-4381-9245-c7372d1a8e49
      fi
      echo   'Loading Linux 4.19.0-4-amd64 ...'
      linux   /vmlinuz-4.19.0-4-amd64 root=/dev/mapper/stretch--vg-root ro single ipv6.disable=1
      echo   'Loading initial ramdisk ...'
      initrd   /initrd.img-4.19.0-4-amd64
   }
   menuentry 'Debian GNU/Linux, with Linux 4.19.0-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-1-amd64-advanced-92afb13b-f740-4b15-98f6-e37f6b066a33' {
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  0db01b73-2b29-4381-9245-c7372d1a8e49
      else
        search --no-floppy --fs-uuid --set=root 0db01b73-2b29-4381-9245-c7372d1a8e49
      fi
      echo   'Loading Linux 4.19.0-1-amd64 ...'
      linux   /vmlinuz-4.19.0-1-amd64 root=/dev/mapper/stretch--vg-root ro ipv6.disable=1 quiet crashkernel=384M-:128M
      echo   'Loading initial ramdisk ...'
      initrd   /initrd.img-4.19.0-1-amd64
   }
   menuentry 'Debian GNU/Linux, with Linux 4.19.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-1-amd64-recovery-92afb13b-f740-4b15-98f6-e37f6b066a33' {
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  0db01b73-2b29-4381-9245-c7372d1a8e49
      else
        search --no-floppy --fs-uuid --set=root 0db01b73-2b29-4381-9245-c7372d1a8e49
      fi
      echo   'Loading Linux 4.19.0-1-amd64 ...'
      linux   /vmlinuz-4.19.0-1-amd64 root=/dev/mapper/stretch--vg-root ro single ipv6.disable=1
      echo   'Loading initial ramdisk ...'
      initrd   /initrd.img-4.19.0-1-amd64
   }
   menuentry 'Debian GNU/Linux, with Linux 4.19.0' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-advanced-92afb13b-f740-4b15-98f6-e37f6b066a33' {
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  0db01b73-2b29-4381-9245-c7372d1a8e49
      else
        search --no-floppy --fs-uuid --set=root 0db01b73-2b29-4381-9245-c7372d1a8e49
      fi
      echo   'Loading Linux 4.19.0 ...'
      linux   /vmlinuz-4.19.0 root=/dev/mapper/stretch--vg-root ro ipv6.disable=1 quiet crashkernel=384M-:128M
      echo   'Loading initial ramdisk ...'
      initrd   /initrd.img-4.19.0
   }
   menuentry 'Debian GNU/Linux, with Linux 4.19.0 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-recovery-92afb13b-f740-4b15-98f6-e37f6b066a33' {
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  0db01b73-2b29-4381-9245-c7372d1a8e49
      else
        search --no-floppy --fs-uuid --set=root 0db01b73-2b29-4381-9245-c7372d1a8e49
      fi
      echo   'Loading Linux 4.19.0 ...'
      linux   /vmlinuz-4.19.0 root=/dev/mapper/stretch--vg-root ro single ipv6.disable=1
      echo   'Loading initial ramdisk ...'
      initrd   /initrd.img-4.19.0
   }
   menuentry 'Debian GNU/Linux, with Linux 4.18.0-3-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.18.0-3-amd64-advanced-92afb13b-f740-4b15-98f6-e37f6b066a33' {
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  0db01b73-2b29-4381-9245-c7372d1a8e49
      else
        search --no-floppy --fs-uuid --set=root 0db01b73-2b29-4381-9245-c7372d1a8e49
      fi
      echo   'Loading Linux 4.18.0-3-amd64 ...'
      linux   /vmlinuz-4.18.0-3-amd64 root=/dev/mapper/stretch--vg-root ro ipv6.disable=1 quiet crashkernel=384M-:128M
      echo   'Loading initial ramdisk ...'
      initrd   /initrd.img-4.18.0-3-amd64
   }
   menuentry 'Debian GNU/Linux, with Linux 4.18.0-3-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.18.0-3-amd64-recovery-92afb13b-f740-4b15-98f6-e37f6b066a33' {
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  0db01b73-2b29-4381-9245-c7372d1a8e49
      else
        search --no-floppy --fs-uuid --set=root 0db01b73-2b29-4381-9245-c7372d1a8e49
      fi
      echo   'Loading Linux 4.18.0-3-amd64 ...'
      linux   /vmlinuz-4.18.0-3-amd64 root=/dev/mapper/stretch--vg-root ro single ipv6.disable=1
      echo   'Loading initial ramdisk ...'
      initrd   /initrd.img-4.18.0-3-amd64
   }
}

### 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 ###
menuentry 'Windows 7 (on /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-1608BE2508BE0431' {
   insmod part_msdos
   insmod ntfs
   set root='hd1,msdos1'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  1608BE2508BE0431
   else
     search --no-floppy --fs-uuid --set=root 1608BE2508BE0431
   fi
   parttool ${root} hidden-
   chainloader +1
}
### 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  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
millpond
 
Posts: 670
Joined: 2014-06-25 04:56

Re: Migration

Postby p.H » 2020-12-31 09:06

millpond wrote:/dev/mapper/stretch-vg-root does not exist
At this boot, intramfs came up.

This means that the initramfs looks for LVM either for the root filesystem or the resume swap (or /usr but you do not seem to have a separate /usr). However it should not stop if the swap if missing.
At the GRUB menu, type "e" to enter the menu entry editor and check the root= value in the line beginning with "linux". It should contain "root=UUID=xxx", not "root=/dev/mapper/xxx".
At the initramfs prompt,
- Check the root= specification with
Code: Select all
cat /proc/cmdline

- Check the RESUME= specification with
Code: Select all
cat /conf/conf.d/resume


millpond wrote:The new system cannot recognize the drive its grub is on

What do you mean exactly ? I repeat : showing is better than telling.
p.H
 
Posts: 1609
Joined: 2017-09-17 07:12

Re: Migration

Postby sgosnell » 2020-12-31 18:47

The LVM volumes are formatted as LVM, with the actual filesystem inside that. When you removed the volume group, you lost everything. The best option now, IMO, is to reformat and reinstall the OS, without LVM.
Take my advice, I'm not using it.
sgosnell
 
Posts: 974
Joined: 2011-03-14 01:49

Re: Migration

Postby millpond » 2020-12-31 22:38

@p.h
To once again clarify what can be a very confusing issue, lets start again (for those new to this thread)...
My original Debian Buster system is an LVM mounted sustem with /boot on /sda1, and the lvm system drive on /sda2.
It was running on an ancient 360GB SEAGATE SATA hard drive. And it was working fine until one day the drive started to click. A bad sign for me, I disconnected it, and waited for the holidays to dea with it. When the time came I hooked it up, and it booted fine. No click. Ran low level testing - no problems.

HOWEVER, I decided it waa time to migrate the system to a larger 2TB system. At the time I knew nothing about LVM. Would never have dreamed that it was basically an encrypted sile system.
The new system is an HITACHI 2Tb on MBR. It was originally formatted as ext2 (as the Seagate) on /dev/sda1) 100GB. /sda2 is the rest as ext4, with a 10 GB swap, all created in GPARTED. Fstab and grub on the Hitachi were altered to deal with the new environment
I copied the system files from the SEAGATE to HITACHI. The new system *should* be a mirror copy of the old.
But the Hitachi will not boot. .
I 'dicovered'' LVM and tried to remove it on the HITACHI (being totally unfamiliar with the util). Unfdortunately the group removal also affected the *other* , original SEAGATE drive.

Two unbootable systems now.
I did reformat the /boot /sda1 on the Hitachi, figuring it was not needed, and /boot was copied to the ext4 main file system. And at first it almost seemed to work, but when I removed that damn 'stretch-vg' LVM group, it would not get past the initial boot screen aborting after not being able to find that 'group'.

So: On the original Seagate nothing will work as it cannot access /proc or anything on the system LVM drive (BTW is was not 'manually' encrypted) .
chroot is not working from boot DVDs as it cannot find /bin/bash. Even with /bin mounted.

I need to concentrate on theHitachi. Will not choot from a DVD even though it is easily readable and has the entire file system.

On the HITACHI (new) ststem = The first root=line was LVM drive, the rest were correct. I fixed it as:
Code: Select all
#
# 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
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="Debian GNU/Linux, with Xen hypervisor"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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 load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='UUID=/fefa2514-76d9-d601-d0fa-251476d9d601'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
else
  search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='fefa2514-76d9-d601-d0fa-251476d9d601'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
else
  search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
fi
insmod png
if background_image /usr/share/desktop-base/futureprototype-theme/grub/grub-4x3.png; then
  set color_normal=white/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
   set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-fefa2514-76d9-d601-d0fa-251476d9d601' {
   load_video
   insmod gzio
   if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos2'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
   else
     search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
   fi
   echo   'Loading Linux 4.19.0-4-amd64 ...'
   linux   /boot/vmlinuz-4.19.0-4-amd64 root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro ipv6.disable=1 quiet crashkernel=384M-:128M
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-4.19.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-fefa2514-76d9-d601-d0fa-251476d9d601' {
   menuentry 'Debian GNU/Linux, with Linux 4.19.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-4-amd64-advanced-fefa2514-76d9-d601-d0fa-251476d9d601' {
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
      else
        search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
      fi
      echo   'Loading Linux 4.19.0-4-amd64 ...'
      linux   /boot/vmlinuz-4.19.0-4-amd64 root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro ipv6.disable=1 quiet crashkernel=384M-:128M
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.19.0-4-amd64
   }
   menuentry 'Debian GNU/Linux, with Linux 4.19.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-4-amd64-recovery-fefa2514-76d9-d601-d0fa-251476d9d601' {
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
      else
        search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
      fi
      echo   'Loading Linux 4.19.0-4-amd64 ...'
      linux   /boot/vmlinuz-4.19.0-4-amd64 root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro single ipv6.disable=1
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.19.0-4-amd64
   }
   menuentry 'Debian GNU/Linux, with Linux 4.19.0' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-advanced-fefa2514-76d9-d601-d0fa-251476d9d601' {
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
      else
        search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
      fi
      echo   'Loading Linux 4.19.0 ...'
      linux   /boot/vmlinuz-4.19.0 root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro ipv6.disable=1 quiet crashkernel=384M-:128M
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.19.0
   }
   menuentry 'Debian GNU/Linux, with Linux 4.19.0 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-recovery-fefa2514-76d9-d601-d0fa-251476d9d601' {
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
      else
        search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
      fi
      echo   'Loading Linux 4.19.0 ...'
      linux   /boot/vmlinuz-4.19.0 root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro single ipv6.disable=1
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.19.0
   }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
menuentry 'Debian GNU/Linux, with Xen hypervisor' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-simple-fefa2514-76d9-d601-d0fa-251476d9d601' {
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos2'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
   else
     search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
   fi
   echo   'Loading Xen 4.11-amd64 ...'
        if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
            xen_rm_opts=
        else
            xen_rm_opts="no-real-mode edd=off"
        fi
   multiboot2   /boot/xen-4.11-amd64.gz placeholder   ${xen_rm_opts}
   echo   'Loading Linux 4.19.0-4-amd64 ...'
   module2   /boot/vmlinuz-4.19.0-4-amd64 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro ipv6.disable=1 quiet crashkernel=384M-:128M
   echo   'Loading initial ramdisk ...'
   module2   --nounzip   /boot/initrd.img-4.19.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux (with Xen hypervisor)' $menuentry_id_option 'gnulinux-advanced-fefa2514-76d9-d601-d0fa-251476d9d601' {
   submenu 'Xen hypervisor, version 4.11-amd64' $menuentry_id_option 'xen-hypervisor-4.11-amd64-fefa2514-76d9-d601-d0fa-251476d9d601' {
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64 and Linux 4.19.0-4-amd64' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-4-amd64-advanced-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64 ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot2   /boot/xen-4.11-amd64.gz placeholder   ${xen_rm_opts}
         echo   'Loading Linux 4.19.0-4-amd64 ...'
         module2   /boot/vmlinuz-4.19.0-4-amd64 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro ipv6.disable=1 quiet crashkernel=384M-:128M
         echo   'Loading initial ramdisk ...'
         module2   --nounzip   /boot/initrd.img-4.19.0-4-amd64
      }
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64 and Linux 4.19.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-4-amd64-recovery-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64 ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot2   /boot/xen-4.11-amd64.gz placeholder  ${xen_rm_opts}
         echo   'Loading Linux 4.19.0-4-amd64 ...'
         module2   /boot/vmlinuz-4.19.0-4-amd64 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro single ipv6.disable=1
         echo   'Loading initial ramdisk ...'
         module2   --nounzip   /boot/initrd.img-4.19.0-4-amd64
      }
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64 and Linux 4.19.0' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-advanced-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64 ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot2   /boot/xen-4.11-amd64.gz placeholder   ${xen_rm_opts}
         echo   'Loading Linux 4.19.0 ...'
         module2   /boot/vmlinuz-4.19.0 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro ipv6.disable=1 quiet crashkernel=384M-:128M
         echo   'Loading initial ramdisk ...'
         module2   --nounzip   /boot/initrd.img-4.19.0
      }
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64 and Linux 4.19.0 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-recovery-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64 ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot2   /boot/xen-4.11-amd64.gz placeholder  ${xen_rm_opts}
         echo   'Loading Linux 4.19.0 ...'
         module2   /boot/vmlinuz-4.19.0 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro single ipv6.disable=1
         echo   'Loading initial ramdisk ...'
         module2   --nounzip   /boot/initrd.img-4.19.0
      }
   }
   submenu 'Xen hypervisor, version 4.11-amd64.efi' $menuentry_id_option 'xen-hypervisor-4.11-amd64.efi-fefa2514-76d9-d601-d0fa-251476d9d601' {
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64.efi and Linux 4.19.0-4-amd64' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-4-amd64-advanced-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64.efi ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot2   /boot/xen-4.11-amd64.efi placeholder   ${xen_rm_opts}
         echo   'Loading Linux 4.19.0-4-amd64 ...'
         module2   /boot/vmlinuz-4.19.0-4-amd64 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro ipv6.disable=1 quiet crashkernel=384M-:128M
         echo   'Loading initial ramdisk ...'
         module2   --nounzip   /boot/initrd.img-4.19.0-4-amd64
      }
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64.efi and Linux 4.19.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-4-amd64-recovery-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64.efi ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot2   /boot/xen-4.11-amd64.efi placeholder  ${xen_rm_opts}
         echo   'Loading Linux 4.19.0-4-amd64 ...'
         module2   /boot/vmlinuz-4.19.0-4-amd64 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro single ipv6.disable=1
         echo   'Loading initial ramdisk ...'
         module2   --nounzip   /boot/initrd.img-4.19.0-4-amd64
      }
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64.efi and Linux 4.19.0' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-advanced-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64.efi ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot2   /boot/xen-4.11-amd64.efi placeholder   ${xen_rm_opts}
         echo   'Loading Linux 4.19.0 ...'
         module2   /boot/vmlinuz-4.19.0 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro ipv6.disable=1 quiet crashkernel=384M-:128M
         echo   'Loading initial ramdisk ...'
         module2   --nounzip   /boot/initrd.img-4.19.0
      }
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64.efi and Linux 4.19.0 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-recovery-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64.efi ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot2   /boot/xen-4.11-amd64.efi placeholder  ${xen_rm_opts}
         echo   'Loading Linux 4.19.0 ...'
         module2   /boot/vmlinuz-4.19.0 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro single ipv6.disable=1
         echo   'Loading initial ramdisk ...'
         module2   --nounzip   /boot/initrd.img-4.19.0
      }
   }
   submenu 'Xen hypervisor, version 4.11-amd64.config' $menuentry_id_option 'xen-hypervisor-4.11-amd64.config-fefa2514-76d9-d601-d0fa-251476d9d601' {
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64.config and Linux 4.19.0-4-amd64' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-4-amd64-advanced-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64.config ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot   /boot/xen-4.11-amd64.config placeholder   ${xen_rm_opts}
         echo   'Loading Linux 4.19.0-4-amd64 ...'
         module   /boot/vmlinuz-4.19.0-4-amd64 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro ipv6.disable=1 quiet crashkernel=384M-:128M
         echo   'Loading initial ramdisk ...'
         module   --nounzip   /boot/initrd.img-4.19.0-4-amd64
      }
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64.config and Linux 4.19.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-4-amd64-recovery-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64.config ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot   /boot/xen-4.11-amd64.config placeholder  ${xen_rm_opts}
         echo   'Loading Linux 4.19.0-4-amd64 ...'
         module   /boot/vmlinuz-4.19.0-4-amd64 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro single ipv6.disable=1
         echo   'Loading initial ramdisk ...'
         module   --nounzip   /boot/initrd.img-4.19.0-4-amd64
      }
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64.config and Linux 4.19.0' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-advanced-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64.config ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot   /boot/xen-4.11-amd64.config placeholder   ${xen_rm_opts}
         echo   'Loading Linux 4.19.0 ...'
         module   /boot/vmlinuz-4.19.0 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro ipv6.disable=1 quiet crashkernel=384M-:128M
         echo   'Loading initial ramdisk ...'
         module   --nounzip   /boot/initrd.img-4.19.0
      }
      menuentry 'Debian GNU/Linux, with Xen 4.11-amd64.config and Linux 4.19.0 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-4.19.0-recovery-fefa2514-76d9-d601-d0fa-251476d9d601' {
         insmod part_msdos
         insmod ext2
         set root='hd0,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  fefa2514-76d9-d601-d0fa-251476d9d601
         else
           search --no-floppy --fs-uuid --set=root fefa2514-76d9-d601-d0fa-251476d9d601
         fi
         echo   'Loading Xen 4.11-amd64.config ...'
              if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
                  xen_rm_opts=
              else
                  xen_rm_opts="no-real-mode edd=off"
              fi
         multiboot   /boot/xen-4.11-amd64.config placeholder  ${xen_rm_opts}
         echo   'Loading Linux 4.19.0 ...'
         module   /boot/vmlinuz-4.19.0 placeholder root=UUID=fefa2514-76d9-d601-d0fa-251476d9d601 ro single ipv6.disable=1
         echo   'Loading initial ramdisk ...'
         module   --nounzip   /boot/initrd.img-4.19.0
      }
   }
}

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### 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  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

The uuid =fefa.... is the correct drive
Also: I issume msdos means mbr. And bot the fact that /dev/sda1 is NTFS

/proc/cmdline => /usr/sbin/nmbd
Samba?
This seems wrong.. Is there a 'correct' entry?

The initramfs resume file reads:
RESUME=UUID=49437837-36ae-4faa-a0c7-36ab61881fd4
This does not appear to be a valid drive.

I think progress is being made!

Jut may need to get the right /proc/cmdline!
(Will checl later toniight/tomorrow).
millpond
 
Posts: 670
Joined: 2014-06-25 04:56

Re: Migration

Postby millpond » 2020-12-31 22:39

sgosnell wrote:The LVM volumes are formatted as LVM, with the actual filesystem inside that. When you removed the volume group, you lost everything. The best option now, IMO, is to reformat and reinstall the OS, without LVM.


Now the issue is to restore the system using the files *copied* from the LVM system!
millpond
 
Posts: 670
Joined: 2014-06-25 04:56

Re: Migration

Postby p.H » 2020-12-31 23:21

millpond wrote:I knew nothing about LVM. Would never have dreamed that it was basically an encrypted sile system.

It is not. LVM is neither encrypted nor a file system. It is just a logical volume manager, used to create arbitrary block devices from arbitrary disk spaces (unlike partitions which must be contiguous areas on one disk).

millpond wrote:I 'dicovered'' LVM and tried to remove it on the HITACHI (being totally unfamiliar with the util). Unfdortunately the group removal also affected the *other* , original SEAGATE drive.

IIUC, there was never any LVM on the Hitatchi drive. If you deleted some LVM while both drives were connected, then it was on the Seagate drive.
Is the Seagate drive still connected ? For clarity you should remove it.

millpond wrote:I issume msdos means mbr

MBR is the whole first sector. MSDOS, or DOS, is the partition table format inside the MBR.

millpond wrote:/proc/cmdline => /usr/sbin/nmbd

Huh ? How do you get this ?
/proc/cmdline should contain the kernel command line, with all parameters passed by GRUB, like
Code: Select all
BOOT_IMAGE=/boot/vmlinuz-<version> root=UUID=<uuid> ro quiet
p.H
 
Posts: 1609
Joined: 2017-09-17 07:12

Re: Migration

Postby millpond » 2021-01-01 07:38

Many thanks, and HAPPY NEW YEAR!
Buy... still no joy.
Fixed /proc/cmdline as suggested, and now I still get the exact same 'stretch-vg' lvm seeros, but now it doesnt repeat as often, and goes into a kernel panic, requiring a hard reboot.

Removed lvm from /etc in /init, init.d, and /systemd dirs. At least in likely files.

Needed:
1. A way to *stop* the search for 'stretch-vg'
2. And possibly a way to chroot into the accessible filesystem. I cant get past the 'can't find /bin/bash' error.
3. An ansolutely minimal filesystem script that can be copied on to the broken filesystem, as a last resort. That would only overwrite the bootup files.
millpond
 
Posts: 670
Joined: 2014-06-25 04:56

Re: Migration

Postby p.H » 2021-01-01 09:25

millpond wrote:Fixed /proc/cmdline

What do you mean ?
There is nothing to fix in /proc/cmdline. It is a read-only virtual file in the /proc virtual filesystem which reports the command line that was passed to the kernel by the boot loader. You must read it while you are at the initramfs prompt.
p.H
 
Posts: 1609
Joined: 2017-09-17 07:12

Previous

Return to Installation

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable