Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Migration

Ask for help with issues regarding the Installations of the Debian O/S.
Message
Author
p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Migration

#21 Post by p.H »

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.

sgosnell
Posts: 975
Joined: 2011-03-14 01:49

Re: Migration

#22 Post by sgosnell »

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.

millpond
Posts: 698
Joined: 2014-06-25 04:56

Re: Migration

#23 Post by millpond »

@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: 698
Joined: 2014-06-25 04:56

Re: Migration

#24 Post by millpond »

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!

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Migration

#25 Post by p.H »

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

millpond
Posts: 698
Joined: 2014-06-25 04:56

Re: Migration

#26 Post by millpond »

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.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Migration

#27 Post by p.H »

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.

Post Reply