LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-11-2022, 01:47 PM   #1
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 502

Rep: Reputation: 26
Question Moving from triple-boot to dual-boot with OpenSuSE


Hello,
I have a triple-boot non-UEFI laptop where apart from Windows I have Kubuntu on partition sda7 and OpenSuSE on sda8. GRUB is now managed by Kubuntu.
I want to remove Kubuntu. This should leave Windows and OpenSuSE as dual-boot configuration. Please let me know if the following steps are the correct ones to proceed with, and that I won't break my system by doing them.

1. Install GRUB from OpenSUSE. sudo grub-install --root-directory=/mnt /dev/sda.
2. Boot from LiveUSD.
3. Remove partition sda7 and add that space to wherever I feel appropriate. I have doubt that sda8 will become sda7 at this point, and that could break some internal links in OpenSuSE installation.

TIA!
 
Old 01-11-2022, 02:41 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
boot into OpenSuSE
Code:
grub2-install /dev/sda
grub2-mkconfig -o /boot/grub2/grub.cfg
 
Old 01-11-2022, 04:09 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,547

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
Quote:
Remove partition sda7 and add that space to wherever I feel appropriate. I have doubt that sda8 will become sda7 at this point,
Is this a GPT drive or an msdos drive? If it is GPT, no problem. If it is an msdos drive and sda7 and sda8 are logical partitions within an Extended partition and you delete sda7, the current sda8 will become sda7. If you plan to use that partition (sda7) for data there is no reason to delete it, simply format it with a Linux filesystem and sda8 will not change. Obviously, boot Opensuse and install Grub from it first.
 
Old 01-11-2022, 05:00 PM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,850
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
In openSUSE you can update/install/manage Grub using YaST instead of the manual/command-line route. It's smart enough to think of everything for you if you check the appropriate boxes. To me it's quite intuitive.
 
Old 01-11-2022, 07:27 PM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Did a quick check in a vm, if you delete sda7, it will change the partition order and you will get a grub-rescue at boot, if you don't rerun grub2-install from opensuse after deleting the partition.

Last edited by colorpurple21859; 01-11-2022 at 07:35 PM.
 
Old 01-11-2022, 08:07 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,850
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
/dev/sda7 can be deleted, then recreated at a 1 "cylinder" (minimal) size to keep the current device name order if that is what is desired or needed. Then /dev/sda8 could be moved to the head of the freespace created, and expanded, if desired.

It wouldn't be me doing this. I never have less than 2 Linux installations on any of my own hardware, except for a new HDD or SDD before I have time to get a second installed. Multiboot is a whole lot easier than USB sticks when a problem in need of booting something else needs solving quickly. You could put an openSUSE alpha or beta or TW in the space freed by dropping *buntu. Every distro needs mere mortal testers using the alphas and betas. In the process of testing, users learn things they might not otherwise.
 
Old 01-12-2022, 12:19 AM   #7
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 502

Original Poster
Rep: Reputation: 26
Thanks everyone for reply.
I checked fstab in OpenSuSE installation, and it has partitions named by UUID, not like sda7 or sda8.
Will this setup allow me to remove Ubuntu painlessly?
 
Old 01-12-2022, 12:31 AM   #8
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,850
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
It should if openSUSE was the last OS to update Grub. Provide here openSUSE output from:
Code:
sudo efibootmgr -v
cat /etc/fstab
sudo cat /boot/grub2/grub.cfg
cat /etc/default/grub
to reduce the likelihood of lurking booby traps.
 
Old 01-12-2022, 12:36 AM   #9
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 502

Original Poster
Rep: Reputation: 26
Here we go
Code:
darkduck@localhost:~> sudo efibootmgr -v
EFI variables are not supported on this system.
darkduck@localhost:~> cat /etc/fstab
UUID=c020010f-9d18-42a4-93ef-dbeaea908007  /         ext4  defaults             0  1
UUID=3230B46038E2AA91                      /windows  ntfs  fmask=133,dmask=022  0  0
UUID=b5cf9e95-077b-4275-8ed0-d4f15a373536  /ubuntu   ext4  data=ordered         0  2
UUID=FEB4FDA8B4FD6415                      /data     ntfs  defaults  0  0

darkduck@localhost:~> sudo cat /boot/grub2/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -f ${config_directory}/grubenv ]; then
  load_env -f ${config_directory}/grubenv
elif [ -s $prefix/grubenv ]; then
  load_env
fi

if [ "${env_block}" ] ; then
  set env_block="(${root})${env_block}"
  export env_block
  load_env -f "${env_block}"
fi

if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   if [ "${env_block}" ] ; then
     save_env -f "${env_block}" next_entry
   fi
   set boot_once=true
else
   set default="${saved_entry}"
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}"
    if [ "${env_block}" ] ; then
      save_env -f "${env_block}" saved_entry
    else
      save_env saved_entry
    fi

  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,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  c020010f-9d18-42a4-93ef-dbeaea908007
else
  search --no-floppy --fs-uuid --set=root c020010f-9d18-42a4-93ef-dbeaea908007
fi
    font="/usr/share/grub2/unicode.pf2"
fi

if loadfont $font ; then
  if [ "${grub_platform}" = "efi" ]; then
    echo "Please press 't' to show the boot menu on this console"
  fi

  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_input console
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  c020010f-9d18-42a4-93ef-dbeaea908007
else
  search --no-floppy --fs-uuid --set=root c020010f-9d18-42a4-93ef-dbeaea908007
fi
insmod gfxmenu
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans-Bold14.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans10.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans12.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/ascii.pf2
insmod png
set theme=($root)/boot/grub2/themes/openSUSE/theme.txt
export theme
if [ x${boot_once} = xtrue ]; then
  set timeout=0
elif [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=8
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=8
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/00_tuned ###
set tuned_params=""
set tuned_initrd=""
### END /etc/grub.d/00_tuned ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'openSUSE Leap 15.3'  --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c020010f-9d18-42a4-93ef-dbeaea908007' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos8'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  c020010f-9d18-42a4-93ef-dbeaea908007
        else
          search --no-floppy --fs-uuid --set=root c020010f-9d18-42a4-93ef-dbeaea908007
        fi
        echo    'Loading Linux 5.3.18-59.37-default ...'
        linux   /boot/vmlinuz-5.3.18-59.37-default root=UUID=c020010f-9d18-42a4-93ef-dbeaea908007  resume=/dev/disk/by-uuid/931cc086-8cf8-4dbf-8688-549ff99c2ded quiet mitigations=auto
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd-5.3.18-59.37-default
}
submenu 'Advanced options for openSUSE Leap 15.3' --hotkey=1 $menuentry_id_option 'gnulinux-advanced-c020010f-9d18-42a4-93ef-dbeaea908007' {
        menuentry 'openSUSE Leap 15.3, with Linux 5.3.18-59.37-default' --hotkey=2 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.18-59.37-default-advanced-c020010f-9d18-42a4-93ef-dbeaea908007' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos8'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  c020010f-9d18-42a4-93ef-dbeaea908007
                else
                  search --no-floppy --fs-uuid --set=root c020010f-9d18-42a4-93ef-dbeaea908007
                fi
                echo    'Loading Linux 5.3.18-59.37-default ...'
                linux   /boot/vmlinuz-5.3.18-59.37-default root=UUID=c020010f-9d18-42a4-93ef-dbeaea908007  resume=/dev/disk/by-uuid/931cc086-8cf8-4dbf-8688-549ff99c2ded quiet mitigations=auto
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-5.3.18-59.37-default
        }
        menuentry 'openSUSE Leap 15.3, with Linux 5.3.18-59.34-default'  --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.18-59.34-default-advanced-c020010f-9d18-42a4-93ef-dbeaea908007' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos8'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  c020010f-9d18-42a4-93ef-dbeaea908007
                else
                  search --no-floppy --fs-uuid --set=root c020010f-9d18-42a4-93ef-dbeaea908007
                fi
                echo    'Loading Linux 5.3.18-59.34-default ...'
                linux   /boot/vmlinuz-5.3.18-59.34-default root=UUID=c020010f-9d18-42a4-93ef-dbeaea908007  resume=/dev/disk/by-uuid/931cc086-8cf8-4dbf-8688-549ff99c2ded quiet mitigations=auto
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-5.3.18-59.34-default
        }
        menuentry 'openSUSE Leap 15.3, with Linux 5.3.18-59.27-default'  --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.18-59.27-default-advanced-c020010f-9d18-42a4-93ef-dbeaea908007' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos8'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  c020010f-9d18-42a4-93ef-dbeaea908007
                else
                  search --no-floppy --fs-uuid --set=root c020010f-9d18-42a4-93ef-dbeaea908007
                fi
                echo    'Loading Linux 5.3.18-59.27-default ...'
                linux   /boot/vmlinuz-5.3.18-59.27-default root=UUID=c020010f-9d18-42a4-93ef-dbeaea908007  resume=/dev/disk/by-uuid/931cc086-8cf8-4dbf-8688-549ff99c2ded quiet mitigations=auto
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-5.3.18-59.27-default
        }
}

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

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

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

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-920AAFD40AAFB39F' {
        insmod part_msdos
        insmod ntfs
        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  920AAFD40AAFB39F
        else
          search --no-floppy --fs-uuid --set=root 920AAFD40AAFB39F
        fi
        parttool ${root} hidden-
        chainloader +1
}
menuentry 'Ubuntu 20.04.3 LTS (20.04) (on /dev/sda7)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-b5cf9e95-077b-4275-8ed0-d4f15a373536' {
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos7'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  b5cf9e95-077b-4275-8ed0-d4f15a373536
        else
          search --no-floppy --fs-uuid --set=root b5cf9e95-077b-4275-8ed0-d4f15a373536
        fi
        linux /boot/vmlinuz-5.4.0-94-generic root=UUID=b5cf9e95-077b-4275-8ed0-d4f15a373536 ro quiet splash $vt_handoff
        initrd /boot/initrd.img-5.4.0-94-generic
}
submenu 'Advanced options for Ubuntu 20.04.3 LTS (20.04) (on /dev/sda7)' $menuentry_id_option 'osprober-gnulinux-advanced-b5cf9e95-077b-4275-8ed0-d4f15a373536' {
        menuentry 'Ubuntu (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-94-generic--b5cf9e95-077b-4275-8ed0-d4f15a373536' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  b5cf9e95-077b-4275-8ed0-d4f15a373536
                else
                  search --no-floppy --fs-uuid --set=root b5cf9e95-077b-4275-8ed0-d4f15a373536
                fi
                linux /boot/vmlinuz-5.4.0-94-generic root=UUID=b5cf9e95-077b-4275-8ed0-d4f15a373536 ro quiet splash $vt_handoff
                initrd /boot/initrd.img-5.4.0-94-generic
        }
        menuentry 'Ubuntu, with Linux 5.4.0-94-generic (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-94-generic--b5cf9e95-077b-4275-8ed0-d4f15a373536' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  b5cf9e95-077b-4275-8ed0-d4f15a373536
                else
                  search --no-floppy --fs-uuid --set=root b5cf9e95-077b-4275-8ed0-d4f15a373536
                fi
                linux /boot/vmlinuz-5.4.0-94-generic root=UUID=b5cf9e95-077b-4275-8ed0-d4f15a373536 ro quiet splash $vt_handoff
                initrd /boot/initrd.img-5.4.0-94-generic
        }
        menuentry 'Ubuntu, with Linux 5.4.0-94-generic (recovery mode) (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-94-generic--b5cf9e95-077b-4275-8ed0-d4f15a373536' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  b5cf9e95-077b-4275-8ed0-d4f15a373536
                else
                  search --no-floppy --fs-uuid --set=root b5cf9e95-077b-4275-8ed0-d4f15a373536
                fi
                linux /boot/vmlinuz-5.4.0-94-generic root=UUID=b5cf9e95-077b-4275-8ed0-d4f15a373536 ro recovery nomodeset dis_ucode_ldr
                initrd /boot/initrd.img-5.4.0-94-generic
        }
        menuentry 'Ubuntu, with Linux 5.4.0-90-generic (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-90-generic--b5cf9e95-077b-4275-8ed0-d4f15a373536' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  b5cf9e95-077b-4275-8ed0-d4f15a373536
                else
                  search --no-floppy --fs-uuid --set=root b5cf9e95-077b-4275-8ed0-d4f15a373536
                fi
                linux /boot/vmlinuz-5.4.0-90-generic root=UUID=b5cf9e95-077b-4275-8ed0-d4f15a373536 ro quiet splash $vt_handoff
                initrd /boot/initrd.img-5.4.0-90-generic
        }
        menuentry 'Ubuntu, with Linux 5.4.0-90-generic (recovery mode) (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-90-generic--b5cf9e95-077b-4275-8ed0-d4f15a373536' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  b5cf9e95-077b-4275-8ed0-d4f15a373536
                else
                  search --no-floppy --fs-uuid --set=root b5cf9e95-077b-4275-8ed0-d4f15a373536
                fi
                linux /boot/vmlinuz-5.4.0-90-generic root=UUID=b5cf9e95-077b-4275-8ed0-d4f15a373536 ro recovery nomodeset dis_ucode_ldr
                initrd /boot/initrd.img-5.4.0-90-generic
        }
        menuentry 'Ubuntu, with Linux 5.4.0-88-generic (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-88-generic--b5cf9e95-077b-4275-8ed0-d4f15a373536' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  b5cf9e95-077b-4275-8ed0-d4f15a373536
                else
                  search --no-floppy --fs-uuid --set=root b5cf9e95-077b-4275-8ed0-d4f15a373536
                fi
                linux /boot/vmlinuz-5.4.0-88-generic root=UUID=b5cf9e95-077b-4275-8ed0-d4f15a373536 ro quiet splash $vt_handoff
                initrd /boot/initrd.img-5.4.0-88-generic
        }
        menuentry 'Ubuntu, with Linux 5.4.0-88-generic (recovery mode) (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-88-generic--b5cf9e95-077b-4275-8ed0-d4f15a373536' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  b5cf9e95-077b-4275-8ed0-d4f15a373536
                else
                  search --no-floppy --fs-uuid --set=root b5cf9e95-077b-4275-8ed0-d4f15a373536
                fi
                linux /boot/vmlinuz-5.4.0-88-generic root=UUID=b5cf9e95-077b-4275-8ed0-d4f15a373536 ro recovery nomodeset dis_ucode_ldr
                initrd /boot/initrd.img-5.4.0-88-generic
        }
        menuentry 'Ubuntu, with Linux 5.4.0-81-generic (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-81-generic--b5cf9e95-077b-4275-8ed0-d4f15a373536' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  b5cf9e95-077b-4275-8ed0-d4f15a373536
                else
                  search --no-floppy --fs-uuid --set=root b5cf9e95-077b-4275-8ed0-d4f15a373536
                fi
                linux /boot/vmlinuz-5.4.0-81-generic root=UUID=b5cf9e95-077b-4275-8ed0-d4f15a373536 ro quiet splash $vt_handoff
                initrd /boot/initrd.img-5.4.0-81-generic
        }
        menuentry 'Ubuntu, with Linux 5.4.0-81-generic (recovery mode) (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-81-generic--b5cf9e95-077b-4275-8ed0-d4f15a373536' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  b5cf9e95-077b-4275-8ed0-d4f15a373536
                else
                  search --no-floppy --fs-uuid --set=root b5cf9e95-077b-4275-8ed0-d4f15a373536
                fi
                linux /boot/vmlinuz-5.4.0-81-generic root=UUID=b5cf9e95-077b-4275-8ed0-d4f15a373536 ro recovery nomodeset dis_ucode_ldr
                initrd /boot/initrd.img-5.4.0-81-generic
        }
        menuentry 'Ubuntu, with Linux 5.4.0-77-generic (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-77-generic--b5cf9e95-077b-4275-8ed0-d4f15a373536' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  b5cf9e95-077b-4275-8ed0-d4f15a373536
                else
                  search --no-floppy --fs-uuid --set=root b5cf9e95-077b-4275-8ed0-d4f15a373536
                fi
                linux /boot/vmlinuz-5.4.0-77-generic root=UUID=b5cf9e95-077b-4275-8ed0-d4f15a373536 ro quiet splash $vt_handoff
                initrd /boot/initrd.img-5.4.0-77-generic
        }
        menuentry 'Ubuntu, with Linux 5.4.0-77-generic (recovery mode) (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-77-generic--b5cf9e95-077b-4275-8ed0-d4f15a373536' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  b5cf9e95-077b-4275-8ed0-d4f15a373536
                else
                  search --no-floppy --fs-uuid --set=root b5cf9e95-077b-4275-8ed0-d4f15a373536
                fi
                linux /boot/vmlinuz-5.4.0-77-generic root=UUID=b5cf9e95-077b-4275-8ed0-d4f15a373536 ro recovery nomodeset dis_ucode_ldr
                initrd /boot/initrd.img-5.4.0-77-generic
        }
        menuentry 'Ubuntu, with Linux 5.4.0-74-generic (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-74-generic--b5cf9e95-077b-4275-8ed0-d4f15a373536' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  b5cf9e95-077b-4275-8ed0-d4f15a373536
                else
                  search --no-floppy --fs-uuid --set=root b5cf9e95-077b-4275-8ed0-d4f15a373536
                fi
                linux /boot/vmlinuz-5.4.0-74-generic root=UUID=b5cf9e95-077b-4275-8ed0-d4f15a373536 ro quiet splash $vt_handoff
                initrd /boot/initrd.img-5.4.0-74-generic
        }
        menuentry 'Ubuntu, with Linux 5.4.0-74-generic (recovery mode) (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-74-generic--b5cf9e95-077b-4275-8ed0-d4f15a373536' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  b5cf9e95-077b-4275-8ed0-d4f15a373536
                else
                  search --no-floppy --fs-uuid --set=root b5cf9e95-077b-4275-8ed0-d4f15a373536
                fi
                linux /boot/vmlinuz-5.4.0-74-generic root=UUID=b5cf9e95-077b-4275-8ed0-d4f15a373536 ro recovery nomodeset dis_ucode_ldr
                initrd /boot/initrd.img-5.4.0-74-generic
        }
        menuentry 'Ubuntu, with Linux 5.4.0-72-generic (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-72-generic--b5cf9e95-077b-4275-8ed0-d4f15a373536' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  b5cf9e95-077b-4275-8ed0-d4f15a373536
                else
                  search --no-floppy --fs-uuid --set=root b5cf9e95-077b-4275-8ed0-d4f15a373536
                fi
                linux /boot/vmlinuz-5.4.0-72-generic root=UUID=b5cf9e95-077b-4275-8ed0-d4f15a373536 ro quiet splash $vt_handoff
                initrd /boot/initrd.img-5.4.0-72-generic
        }
        menuentry 'Ubuntu, with Linux 5.4.0-72-generic (recovery mode) (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-72-generic--b5cf9e95-077b-4275-8ed0-d4f15a373536' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  b5cf9e95-077b-4275-8ed0-d4f15a373536
                else
                  search --no-floppy --fs-uuid --set=root b5cf9e95-077b-4275-8ed0-d4f15a373536
                fi
                linux /boot/vmlinuz-5.4.0-72-generic root=UUID=b5cf9e95-077b-4275-8ed0-d4f15a373536 ro recovery nomodeset dis_ucode_ldr
                initrd /boot/initrd.img-5.4.0-72-generic
        }
        menuentry 'Ubuntu, with Linux 5.4.0-71-generic (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-71-generic--b5cf9e95-077b-4275-8ed0-d4f15a373536' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  b5cf9e95-077b-4275-8ed0-d4f15a373536
                else
                  search --no-floppy --fs-uuid --set=root b5cf9e95-077b-4275-8ed0-d4f15a373536
                fi
                linux /boot/vmlinuz-5.4.0-71-generic root=UUID=b5cf9e95-077b-4275-8ed0-d4f15a373536 ro quiet splash $vt_handoff
                initrd /boot/initrd.img-5.4.0-71-generic
        }
        menuentry 'Ubuntu, with Linux 5.4.0-71-generic (recovery mode) (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-71-generic--b5cf9e95-077b-4275-8ed0-d4f15a373536' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  b5cf9e95-077b-4275-8ed0-d4f15a373536
                else
                  search --no-floppy --fs-uuid --set=root b5cf9e95-077b-4275-8ed0-d4f15a373536
                fi
                linux /boot/vmlinuz-5.4.0-71-generic root=UUID=b5cf9e95-077b-4275-8ed0-d4f15a373536 ro recovery nomodeset dis_ucode_ldr
                initrd /boot/initrd.img-5.4.0-71-generic
        }
        menuentry 'Memory test (memtest86+, serial console 115200) (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/memtest86+.bin--b5cf9e95-077b-4275-8ed0-d4f15a373536' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  b5cf9e95-077b-4275-8ed0-d4f15a373536
                else
                  search --no-floppy --fs-uuid --set=root b5cf9e95-077b-4275-8ed0-d4f15a373536
                fi
                linux /boot/memtest86+.bin console=ttyS0,115200n8
        }
}

### END /etc/grub.d/30_os-prober ###

### 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 ###

### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###

### BEGIN /etc/grub.d/95_textmode ###
if [ "${grub_platform}" = "efi" ]; then
  # On EFI systems we can only have graphics *or* serial, so allow the user
  # to switch between the two
  hiddenentry 'Text mode' --hotkey 't' {
    set textmode=true
    terminal_output console
  }
fi
### END /etc/grub.d/95_textmode ###
darkduck@localhost:~> cat /etc/default/grub
GRUB_DISABLE_OS_PROBER="false"
GRUB_TERMINAL="gfxterm"
GRUB_TIMEOUT="8"
GRUB_ENABLE_CRYPTODISK="n"
GRUB_GFXMODE="auto"
GRUB_DISABLE_RECOVERY="true"
GRUB_DISTRIBUTOR=
GRUB_DEFAULT="saved"
SUSE_BTRFS_SNAPSHOT_BOOTING="true"
GRUB_THEME="/boot/grub2/themes/openSUSE/theme.txt"
GRUB_HIDDEN_TIMEOUT="0"
GRUB_CMDLINE_LINUX_DEFAULT="resume=/dev/disk/by-uuid/931cc086-8cf8-4dbf-8688-549ff99c2ded quiet mitigations=auto"
GRUB_CMDLINE_XEN_DEFAULT="vga=gfx-1024x768x16"
darkduck@localhost:~>
 
Old 01-12-2022, 01:37 AM   #10
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,850
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
If you actually eliminate Ubuntu, whether by deleting /dev/sda7 or wiping /dev/sda7, you're going to have to edit /etc/fstab to remove the line for Ubuntu, else you'll get a hang during openSUSE boot because the UUID=b5cf9e95-077b-4275-8ed0-d4f15a373536 filesystem cannot be found and mounted. After eliminating Ubuntu's partition or filesystem, on next openSUSE Grub update the Ubuntu entries should disappear.
 
Old 01-12-2022, 06:51 AM   #11
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
here are some tutorials on how to recover from a grub-rescue prompt
https://gnu-linux.org/grub-rescue-commands.html
https://www.howtoforge.com/tutorial/...h-grub-rescue/

Suggest have a live usb/dvd in case things go horribly wrong.

Last edited by colorpurple21859; 01-12-2022 at 09:09 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Compact gateway combines triple HDMI with triple GbE LXer Syndicated Linux News 0 01-29-2021 07:03 PM
Triple boot - Opensuse/Mandriva/Debian - can't boot into Mandriva or Debian Taylor355 Linux - Newbie 3 09-16-2010 07:33 PM
Triple Boot or Dual with Fedora, no CD boot muckybucket Linux - Newbie 17 06-04-2010 09:59 AM
GRUB2 - FreeBSD-8.0 does not show up in triple boot menu, dual boot menu it does.. wiliweld *BSD 7 05-03-2010 01:05 PM
from dual boot to triple and quadruple boot theory_prof Linux - Newbie 10 10-06-2005 01:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 10:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration