@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).