PDA

View Full Version : [kubuntu] Reboot drops to grub shell after kernel update



fogNL
June 19th, 2019, 07:49 PM
I've previously had this posted on askubuntu (https://askubuntu.com/questions/1144042/grub-drops-to-shell-after-update) , but thought I found a solution that ended up not lasting. After an update with the kernel, on the next reboot, my grub just drops to the grub shell. This has happened numerous times in the past, which I only fixed by re-installing. I'm sick of re-installing, and want to find a solution to this issue. The latest time this has happened was today when my system updated to 5.0.0-17-generic kernel. I'm running Kubuntu 19.04 with all updates up to today, June 19th. Some of the information below I am copying and pasting as the info has not changed.

Hardware:


AMD Ryzen 2600X
16GB Ram
Asus B450 Motherboard
1x Samsung Evo 500 GB SSD (Primary drive)
1x Seagate 1TB HDD (Storage Drive)
No other OS's


Manually entering the following at the grub screen allows my system to boot (obfuscated the UUID) and function normally:


> insmod gzio
> insmod part_gpt
> insmod btrfs
> linux /@/boot/vmlinuz-5.0.0-15-generic root=UUID=0000000-000-000 ro rootflags=subvol=@ quiet splash
> initrd /@/boot/initrd.img-5.0.0-15-generic
> boot

But, this is obviously annoying to have to do every reboot. I've checked my configuration files, everything looks fine, but it just seems like grub cannot read the configuration files for some reason.

The UUID for my primary drive has been obfuscated below, but I did verify that it is accurate in my configuration files.

/etc/fstab:


# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
# /boot/efi was on /dev/sda1 during installation
UUID=4DD8-BE9A /boot/efi vfat umask=0077 0 1
# /home was on /dev/sda2 during installation
/swapfile none swap sw 0 0

UUID=0000000-000-000 / btrfs rw,relatime,compress=zstd,ssd,discard,space_cache, subvol=@ 0 1
UUID=0000000-000-000 /home btrfs rw,relatime,compress=zstd,ssd,discard,space_cache, subvol=@home 0 2
UUID=0000000-000-000 /var btrfs rw,relatime,compress=zstd,ssd,discard,space_cache, subvol=@var 0 2

UUID=1111111-111-111 /mnt/storage btrfs rw,relatime,compress=zstd,ssd,discard,space_cache 0 2

/boot/grub/grub.cfg:


#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${initrdfail}" = 2 ]; then
set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
set next_entry="${prev_entry}"
set prev_entry=
save_env prev_entry
if [ "${next_entry}" ]; then
set initrdfail=2
fi
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 initrdfail {
if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
if [ -z "${initrdfail}" ]; then
set initrdfail=1
if [ -n "${boot_once}" ]; then
set prev_entry="${default}"
save_env prev_entry
fi
fi
save_env initrdfail
fi; fi
}
function recordfail {
set recordfail=1
# GRUB lacks write support for btrfs, so recordfail support is disabled.
}
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_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 698b5d59-9862-401e-9491-a80ff3ff1090
else
search --no-floppy --fs-uuid --set=root 698b5d59-9862-401e-9491-a80ff3ff1090
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_CA
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=1
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=1
fi
fi
if [ $grub_platform = efi ]; then
set timeout=30
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
#set_background_image "images/tile.png";

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 0,0,0; then
clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=1
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-698b5d59-9862-401e-9491-a80ff3ff1090' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 698b5d59-9862-401e-9491-a80ff3ff1090
else
search --no-floppy --fs-uuid --set=root 698b5d59-9862-401e-9491-a80ff3ff1090
fi
linux /@/boot/vmlinuz-5.0.0-17-generic root=UUID=698b5d59-9862-401e-9491-a80ff3ff1090 ro rootflags=subvol=@ quiet splash $vt_handoff
initrd /@/boot/initrd.img-5.0.0-17-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-698b5d59-9862-401e-9491-a80ff3ff1090' {
menuentry 'Ubuntu, with Linux 5.0.0-17-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-17-generic-advanced-698b5d59-9862-401e-9491-a80ff3ff1090' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 698b5d59-9862-401e-9491-a80ff3ff1090
else
search --no-floppy --fs-uuid --set=root 698b5d59-9862-401e-9491-a80ff3ff1090
fi
echo 'Loading Linux 5.0.0-17-generic ...'
linux /@/boot/vmlinuz-5.0.0-17-generic root=UUID=698b5d59-9862-401e-9491-a80ff3ff1090 ro rootflags=subvol=@ quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /@/boot/initrd.img-5.0.0-17-generic
}
menuentry 'Ubuntu, with Linux 5.0.0-17-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-17-generic-recovery-698b5d59-9862-401e-9491-a80ff3ff1090' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 698b5d59-9862-401e-9491-a80ff3ff1090
else
search --no-floppy --fs-uuid --set=root 698b5d59-9862-401e-9491-a80ff3ff1090
fi
echo 'Loading Linux 5.0.0-17-generic ...'
linux /@/boot/vmlinuz-5.0.0-17-generic root=UUID=698b5d59-9862-401e-9491-a80ff3ff1090 ro recovery nomodeset rootflags=subvol=@
echo 'Loading initial ramdisk ...'
initrd /@/boot/initrd.img-5.0.0-17-generic
}
menuentry 'Ubuntu, with Linux 5.0.0-16-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-16-generic-advanced-698b5d59-9862-401e-9491-a80ff3ff1090' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 698b5d59-9862-401e-9491-a80ff3ff1090
else
search --no-floppy --fs-uuid --set=root 698b5d59-9862-401e-9491-a80ff3ff1090
fi
echo 'Loading Linux 5.0.0-16-generic ...'
linux /@/boot/vmlinuz-5.0.0-16-generic root=UUID=698b5d59-9862-401e-9491-a80ff3ff1090 ro rootflags=subvol=@ quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /@/boot/initrd.img-5.0.0-16-generic
}
menuentry 'Ubuntu, with Linux 5.0.0-16-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-16-generic-recovery-698b5d59-9862-401e-9491-a80ff3ff1090' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 698b5d59-9862-401e-9491-a80ff3ff1090
else
search --no-floppy --fs-uuid --set=root 698b5d59-9862-401e-9491-a80ff3ff1090
fi
echo 'Loading Linux 5.0.0-16-generic ...'
linux /@/boot/vmlinuz-5.0.0-16-generic root=UUID=698b5d59-9862-401e-9491-a80ff3ff1090 ro recovery nomodeset rootflags=subvol=@
echo 'Loading initial ramdisk ...'
initrd /@/boot/initrd.img-5.0.0-16-generic
}
}

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

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

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

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

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

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### 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 ###


/etc/default/grub:


# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=1
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"


Nothing in /etc/grub/grub.d except empty (commented out) init-select.cfg

Output of update-grub:


Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.0.0-17-generic
Found initrd image: /boot/initrd.img-5.0.0-17-generic
Found linux image: /boot/vmlinuz-5.0.0-16-generic
Found initrd image: /boot/initrd.img-5.0.0-16-generic
Adding boot menu entry for EFI firmware configuration
done


output of fdisk:


~# fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Samsung SSD 850
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 222222222-2222-2222222

Device Start End Sectors Size Type
/dev/sda1 2048 999423 997376 487M EFI System
/dev/sda2 999424 976771071 975771648 465.3G Linux filesystem


Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST31000524AS
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 33333333333-3333-3333333

Device Start End Sectors Size Type
/dev/sdb1 2048 1953519615 1953517568 931.5G Linux filesystem


Contents of /boot/efi:


# find /boot/efi
/boot/efi
/boot/efi/EFI
/boot/efi/EFI/ubuntu
/boot/efi/EFI/ubuntu/grubx64.efi
/boot/efi/EFI/ubuntu/shimx64.efi
/boot/efi/EFI/ubuntu/mmx64.efi
/boot/efi/EFI/ubuntu/BOOTX64.CSV
/boot/efi/EFI/ubuntu/grub.cfg
/boot/efi/EFI/BOOT
/boot/efi/EFI/BOOT/BOOTX64.EFI
/boot/efi/EFI/BOOT/fbx64.efi
/boot/efi/EFI/BOOT/mmx64.efi

Output of btrfs subvolume (though, this issue has plagued me since before I used btrfs):


:~$ sudo btrfs subvolume list /
ID 256 gen 163835 top level 5 path @
ID 258 gen 163835 top level 5 path @home
ID 268 gen 163835 top level 5 path @var


Any suggestions from anyone on what the issue could be, or what I could do to fix it? Other than using btrfs nowadays which this issue preceded, I don't do anything out of the ordinary that I know for. Any help would be greatly appreciated.

oldfred
June 19th, 2019, 08:45 PM
I suggest adding btrfs to title as not many know nor use BTRFS file system.
It has unique issues.

You may want to also run Boot-Repair's summary report as it gives more detail than the listings you posted. Not sure if it even works with BTRFS.
May be best to see details, use ppa version with your live installer (2nd option) or any working install, not older Boot-Repair ISO:
Please copy & paste link to the Boot-info summary report ( do not post report), the auto fix sometimes can create more issues.
https://help.ubuntu.com/community/Boot-Repair &
https://sourceforge.net/p/boot-repair/home/Home/

fogNL
June 20th, 2019, 01:28 PM
I suggest adding btrfs to title as not many know nor use BTRFS file system.
It has unique issues.

You may want to also run Boot-Repair's summary report as it gives more detail than the listings you posted. Not sure if it even works with BTRFS.
May be best to see details, use ppa version with your live installer (2nd option) or any working install, not older Boot-Repair ISO:
Please copy & paste link to the Boot-info summary report ( do not post report), the auto fix sometimes can create more issues.
https://help.ubuntu.com/community/Boot-Repair &
https://sourceforge.net/p/boot-repair/home/Home/

Thank you for your response. As I did say in my original post, this issue has existed for me since before I used btrfs, it's only one of the more recent re-installs that I decided to set my system up using that filesystem. Where it was a pre-existing issue, I didn't want to throw off the focus by mentioning btrfs in the title, but upon your suggestion, I have updated it.

As per your suggestion, here is the output from boot-repair summary report (some lines have been edited due to visible passwords in fstab):


Boot Info Script 8f991e4 + Boot-Repair extra info [Boot-Info 25oct2017]


============================= Boot Info Summary: ===============================

=> No boot loader is installed in the MBR of /dev/sda.
=> No boot loader is installed in the MBR of /dev/sdb.

sda1: __________________________________________________ ________________________

File system: vfat
Boot sector type: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /EFI/ubuntu/grub.cfg /EFI/BOOT/fbx64.efi
/EFI/BOOT/mmx64.efi /EFI/GRUB/grubx64.efi
/EFI/GRUB/mmx64.efi /EFI/GRUB/shimx64.efi
/EFI/ubuntu/grubx64.efi /EFI/ubuntu/mmx64.efi
/EFI/ubuntu/shimx64.efi
/EFI/ubuntu/grub/x86_64-efi/core.efi
/EFI/ubuntu/grub/x86_64-efi/grub.efi

sda2: __________________________________________________ ________________________

File system: btrfs
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 19.04
Boot files: /boot/grub/grub.cfg /etc/fstab

sdb1: __________________________________________________ ________________________

File system: btrfs
Boot sector type: -
Boot sector info:
Operating System:
Boot files:

============================ Drive/Partition Info: =============================

Drive: sda __________________________________________________ ___________________
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Samsung SSD 850
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 1 976,773,167 976,773,167 ee GPT


GUID Partition Table detected.

Partition Attrs Start Sector End Sector # of Sectors System
/dev/sda1 2,048 999,423 997,376 EFI System partition
/dev/sda2 999,424 976,771,071 975,771,648 Data partition (Linux)

Attributes: R=Required, N=No Block IO, B=Legacy BIOS Bootable, +=More bits set

Drive: sdb __________________________________________________ ___________________
Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST31000524AS
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 1 1,953,525,167 1,953,525,167 ee GPT


GUID Partition Table detected.

Partition Attrs Start Sector End Sector # of Sectors System
/dev/sdb1 2,048 1,953,519,615 1,953,517,568 Data partition (Linux)

Attributes: R=Required, N=No Block IO, B=Legacy BIOS Bootable, +=More bits set

"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/sda1 4DD8-BE9A vfat
/dev/sda2 698b5d59-9862-401e-9491-a80ff3ff1090 btrfs
/dev/sdb1 70ab0add-dae7-4c2a-a565-4195afd31aa8 btrfs storage

========================= "ls -l /dev/disk/by-id" output: ======================

total 0
lrwxrwxrwx 1 root root 9 Jun 20 09:49 ata-ST31000524AS_5VPBJNHG -> ../../sdb
lrwxrwxrwx 1 root root 10 Jun 20 09:49 ata-ST31000524AS_5VPBJNHG-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 9 Jun 20 09:49 ata-Samsung_SSD_850_EVO_500GB_S21HNXAG637490X -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 20 09:49 ata-Samsung_SSD_850_EVO_500GB_S21HNXAG637490X-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 20 09:49 ata-Samsung_SSD_850_EVO_500GB_S21HNXAG637490X-part2 -> ../../sda2
lrwxrwxrwx 1 root root 9 Jun 20 09:49 wwn-0x5000c5004959e2a4 -> ../../sdb
lrwxrwxrwx 1 root root 10 Jun 20 09:49 wwn-0x5000c5004959e2a4-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 9 Jun 20 09:49 wwn-0x5002538d4021101a -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 20 09:49 wwn-0x5002538d4021101a-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 20 09:49 wwn-0x5002538d4021101a-part2 -> ../../sda2

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/sda1 /boot/efi vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,io charset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sda2 / btrfs (rw,relatime,compress=zstd,ssd,discard,space_cache ,subvolid=256,subvol=/@)
/dev/sda2 /home btrfs (rw,relatime,compress=zstd,ssd,discard,space_cache ,subvolid=258,subvol=/@home)
/dev/sda2 /var btrfs (rw,relatime,compress=zstd,ssd,discard,space_cache ,subvolid=268,subvol=/@var)
/dev/sdb1 /mnt/storage btrfs (rw,relatime,compress=zstd,ssd,discard,space_cache ,subvolid=5,subvol=/)


========================== sda1/EFI/ubuntu/grub.cfg: ===========================

--------------------------------------------------------------------------------
search.fs_uuid 698b5d59-9862-401e-9491-a80ff3ff1090 root hd0,gpt2
set prefix=($root)'/@/boot/grub'
configfile $prefix/grub.cfg
--------------------------------------------------------------------------------

=========================== sda2/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${initrdfail}" = 2 ]; then
set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
set next_entry="${prev_entry}"
set prev_entry=
save_env prev_entry
if [ "${next_entry}" ]; then
set initrdfail=2
fi
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 initrdfail {
if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
if [ -z "${initrdfail}" ]; then
set initrdfail=1
if [ -n "${boot_once}" ]; then
set prev_entry="${default}"
save_env prev_entry
fi
fi
save_env initrdfail
fi; fi
}
function recordfail {
set recordfail=1
# GRUB lacks write support for btrfs, so recordfail support is disabled.
}
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_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 698b5d59-9862-401e-9491-a80ff3ff1090
else
search --no-floppy --fs-uuid --set=root 698b5d59-9862-401e-9491-a80ff3ff1090
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_CA
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=1
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=1
fi
fi
if [ $grub_platform = efi ]; then
set timeout=30
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
#set_background_image "images/tile.png";

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 0,0,0; then
clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=1
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-698b5d59-9862-401e-9491-a80ff3ff1090' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 698b5d59-9862-401e-9491-a80ff3ff1090
else
search --no-floppy --fs-uuid --set=root 698b5d59-9862-401e-9491-a80ff3ff1090
fi
linux /@/boot/vmlinuz-5.0.0-17-generic root=UUID=698b5d59-9862-401e-9491-a80ff3ff1090 ro rootflags=subvol=@ quiet splash $vt_handoff
initrd /@/boot/initrd.img-5.0.0-17-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-698b5d59-9862-401e-9491-a80ff3ff1090' {
menuentry 'Ubuntu, with Linux 5.0.0-17-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-17-generic-advanced-698b5d59-9862-401e-9491-a80ff3ff1090' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 698b5d59-9862-401e-9491-a80ff3ff1090
else
search --no-floppy --fs-uuid --set=root 698b5d59-9862-401e-9491-a80ff3ff1090
fi
echo 'Loading Linux 5.0.0-17-generic ...'
linux /@/boot/vmlinuz-5.0.0-17-generic root=UUID=698b5d59-9862-401e-9491-a80ff3ff1090 ro rootflags=subvol=@ quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /@/boot/initrd.img-5.0.0-17-generic
}
menuentry 'Ubuntu, with Linux 5.0.0-17-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-17-generic-recovery-698b5d59-9862-401e-9491-a80ff3ff1090' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 698b5d59-9862-401e-9491-a80ff3ff1090
else
search --no-floppy --fs-uuid --set=root 698b5d59-9862-401e-9491-a80ff3ff1090
fi
echo 'Loading Linux 5.0.0-17-generic ...'
linux /@/boot/vmlinuz-5.0.0-17-generic root=UUID=698b5d59-9862-401e-9491-a80ff3ff1090 ro recovery nomodeset rootflags=subvol=@
echo 'Loading initial ramdisk ...'
initrd /@/boot/initrd.img-5.0.0-17-generic
}
menuentry 'Ubuntu, with Linux 5.0.0-16-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-16-generic-advanced-698b5d59-9862-401e-9491-a80ff3ff1090' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 698b5d59-9862-401e-9491-a80ff3ff1090
else
search --no-floppy --fs-uuid --set=root 698b5d59-9862-401e-9491-a80ff3ff1090
fi
echo 'Loading Linux 5.0.0-16-generic ...'
linux /@/boot/vmlinuz-5.0.0-16-generic root=UUID=698b5d59-9862-401e-9491-a80ff3ff1090 ro rootflags=subvol=@ quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /@/boot/initrd.img-5.0.0-16-generic
}
menuentry 'Ubuntu, with Linux 5.0.0-16-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-16-generic-recovery-698b5d59-9862-401e-9491-a80ff3ff1090' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 698b5d59-9862-401e-9491-a80ff3ff1090
else
search --no-floppy --fs-uuid --set=root 698b5d59-9862-401e-9491-a80ff3ff1090
fi
echo 'Loading Linux 5.0.0-16-generic ...'
linux /@/boot/vmlinuz-5.0.0-16-generic root=UUID=698b5d59-9862-401e-9491-a80ff3ff1090 ro recovery nomodeset rootflags=subvol=@
echo 'Loading initial ramdisk ...'
initrd /@/boot/initrd.img-5.0.0-16-generic
}
}

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

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

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

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

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

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### 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 ###
--------------------------------------------------------------------------------

=============================== sda2/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
# /boot/efi was on /dev/sda1 during installation
UUID=4DD8-BE9A /boot/efi vfat umask=0077 0 1
# /home was on /dev/sda2 during installation
/swapfile none swap sw 0 0

UUID=698b5d59-9862-401e-9491-a80ff3ff1090 / btrfs rw,relatime,compress=zstd,ssd,discard,space_cache, subvol=@ 0 1
UUID=698b5d59-9862-401e-9491-a80ff3ff1090 /home btrfs rw,relatime,compress=zstd,ssd,discard,space_cache, subvol=@home 0 2
UUID=698b5d59-9862-401e-9491-a80ff3ff1090 /var btrfs rw,relatime,compress=zstd,ssd,discard,space_cache, subvol=@var 0 2

UUID="70ab0add-dae7-4c2a-a565-4195afd31aa8" /mnt/storage btrfs rw,relatime,compress=zstd,ssd,discard,space_cache 0 2

--------------------------------------------------------------------------------

=================== sda2: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

0.491600037 = 0.527851520 boot/grub/grub.cfg 1
224.886360168 = 241.469890560 boot/vmlinuz 1
223.897891998 = 240.408530944 boot/vmlinuz-5.0.0-16-generic 1
60.695564270 = 65.171365888 boot/vmlinuz-5.0.0-17-generic 1
60.695564270 = 65.171365888 vmlinuz 1
223.897891998 = 240.408530944 vmlinuz.old 1
59.397186279 = 63.777243136 boot/initrd.img-5.0.0-16-generic 2
83.889099121 = 90.075234304 boot/initrd.img-5.0.0-17-generic 2
83.889099121 = 90.075234304 initrd.img 2
59.397186279 = 63.777243136 initrd.img.old 2


ADDITIONAL INFORMATION :
=================== log of boot-repair 20190620_0949 ===================
boot-repair version : 4ppa65
boot-sav version : 4ppa65
boot-sav-extra version : 4ppa65
glade2script version : 3.2.3~ppa4
boot-repair is executed in installed-session (Ubuntu 19.04, disco, Ubuntu, x86_64)
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 43 bits physical, 48 bits virtual
BOOT_IMAGE=/@/boot/vmlinuz-5.0.0-17-generic root=UUID=698b5d59-9862-401e-9491-a80ff3ff1090 ro rootflags=subvol=@ quiet splash

=================== os-prober:
/dev/sda2:The OS now in use - Ubuntu 19.04 CurrentSession:linux

=================== blkid:
/dev/sda1: UUID="4DD8-BE9A" TYPE="vfat" PARTUUID="f0c07550-927e-4cad-be6a-0532e560d6c9"
/dev/sda2: UUID="698b5d59-9862-401e-9491-a80ff3ff1090" UUID_SUB="1879ebe1-05ce-4470-8ff1-d8ccb86d2972" TYPE="btrfs" PARTUUID="62228f92-f611-4fe6-925e-4dedf264cf37"
/dev/sdb1: LABEL="storage" UUID="70ab0add-dae7-4c2a-a565-4195afd31aa8" UUID_SUB="9926e894-904c-46fe-a908-2cdad6f341f7" TYPE="btrfs" PARTUUID="a08df518-8f2c-4767-a6c4-fc0093156afc"


1 disks with OS, 1 OS : 1 Linux, 0 MacOS, 0 Windows, 0 unknown type OS.


=================== /etc/grub.d/ :
drwxr-xr-x 1 root root 218 Apr 16 16:44 grub.d
total 80
-rwxr-xr-x 1 root root 10627 Mar 11 19:18 00_header
-rwxr-xr-x 1 root root 6258 Mar 11 15:59 05_debian_theme
-rwxr-xr-x 1 root root 13718 Mar 11 19:18 10_linux
-rwxr-xr-x 1 root root 11497 Mar 11 19:18 20_linux_xen
-rwxr-xr-x 1 root root 1992 Jan 28 2016 20_memtest86+
-rwxr-xr-x 1 root root 12059 Mar 11 19:18 30_os-prober
-rwxr-xr-x 1 root root 1418 Mar 11 19:18 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Mar 11 19:18 40_custom
-rwxr-xr-x 1 root root 216 Mar 11 19:18 41_custom
-rw-r--r-- 1 root root 483 Mar 11 19:18 README




=================== /etc/default/grub :

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=1
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"



/boot/efi detected in the fstab of sda2: UUID=4DD8-BE9A (sda1)
Presence of EFI/Boot file detected: /boot/efi/EFI/Boot/fbx64.efi
Presence of EFI/Boot file detected: /boot/efi/EFI/Boot/mmx64.efi
/usr/share/boot-sav/bs-cmd_terminal.sh: line 179: warning: command substitution: ignored null byte in input

=================== efibootmgr -v
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0001,0003
Boot0000* ubuntu HD(1,GPT,f0c07550-927e-4cad-be6a-0532e560d6c9,0x800,0xf3800)/File(EFIUBUNTUSHIMX64.EFI)
Boot0001* GRUB HD(1,GPT,f0c07550-927e-4cad-be6a-0532e560d6c9,0x800,0xf3800)/File(EFIGRUBshimx64.efi)


=================== UEFI/Legacy mode:
BIOS is EFI-compatible, and is setup in EFI-mode for this installed-session.
SecureBoot disabled. (maybe sec-boot, Please report this message to boot.repair@gmail.com)


=================== PARTITIONS & DISKS:
sda2 : sda, not-sepboot, grubenv-ok grub2, signed grub-pc grub-efi , update-grub, 64, with-boot, is-os, not--efi--part, fstab-without-boot, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, apt-get, grub-install, with--usr, fstab-without-usr, not-sep-usr, standard, farbios, notbiosboot, .
sda1 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, is-correct-EFI, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, notbiosboot, /boot/efi.
sdb1 : sdb, maybesepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, farbios, notbiosboot, /mnt/storage.

sda : GPT, no-BIOS_boot, has-correctEFI, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes
sdb : GPT, no-BIOS_boot, has-no-EFIpart, not-usb, not-mmc, no-os, 2048 sectors * 512 bytes


=================== parted -lm:

BYT;
/dev/sda:500GB:scsi:512:512:gpt:ATA Samsung SSD 850:;
1:1049kB:512MB:511MB:fat32::boot, esp;
2:512MB:500GB:500GB:btrfs::;

BYT;
/dev/sdb:1000GB:scsi:512:512:gpt:ATA ST31000524AS:;
1:1049kB:1000GB:1000GB:btrfs::;

=================== lsblk:
KNAME TYPE FSTYPE SIZE LABEL
sda disk 465.8G
sda1 part vfat 487M
sda2 part btrfs 465.3G
sdb disk 931.5G
sdb1 part btrfs 931.5G storage

KNAME ROTA RO RM STATE MOUNTPOINT
sda 0 0 0 running
sda1 0 0 0 /boot/efi
sdb 1 0 0 running
sdb1 1 0 0 /mnt/storage


=================== mount:
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=8142808k,nr_inodes=203570 2,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode =000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=1642280k,mode=755)
/dev/sda2 on / type btrfs (rw,relatime,compress=zstd,ssd,discard,space_cache ,subvolid=256,subvol=/@)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=system d)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=36,pgrp=1,timeout=0,minproto=5,max proto=5,direct,pipe_ino=22149)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/sda2 on /home type btrfs (rw,relatime,compress=zstd,ssd,discard,space_cache ,subvolid=258,subvol=/@home)
/dev/sda2 on /var type btrfs (rw,relatime,compress=zstd,ssd,discard,space_cache ,subvolid=268,subvol=/@var)
/dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,io charset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sdb1 on /mnt/storage type btrfs (rw,relatime,compress=zstd,ssd,discard,space_cache ,subvolid=5,subvol=/)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1642276k,mode=700,u id=1000,gid=1000)


=================== ls:
/sys/block/sda (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range hidden holders inflight integrity mq power queue range removable ro sda1 sda2 size slaves stat subsystem trace uevent
/sys/block/sdb (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range hidden holders inflight integrity mq power queue range removable ro sdb1 size slaves stat subsystem trace uevent
/dev (filtered): autofs block bsg btrfs-control bus char console core cpu cpu_dma_latency cuse disk dri drm_dp_aux0 drm_dp_aux1 drm_dp_aux2 ecryptfs fb0 fd full fuse gpiochip0 gpiochip1 hidraw0 hidraw1 hidraw2 hidraw3 hidraw4 hidraw5 hidraw6 hidraw7 hpet hugepages hwrng i2c-0 i2c-1 i2c-10 i2c-11 i2c-2 i2c-3 i2c-4 i2c-5 i2c-6 i2c-7 i2c-8 i2c-9 initctl input kfd kmsg kvm lightnvm log mapper mcelog mem memory_bandwidth mqueue net network_latency network_throughput null port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda2 sdb sdb1 sg0 sg1 shm snapshot snd stderr stdin stdout udmabuf uhid uinput urandom usb userio vboxdrv vboxdrvu vboxnetctl vboxusb vfio vga_arbiter vhci vhost-net vhost-vsock zero
ls /dev/mapper: control

=================== hexdump -n512 -C /dev/sda1
00000000 eb 58 90 6d 6b 66 73 2e 66 61 74 00 02 08 20 00 |.X.mkfs.fat... .|
00000010 02 00 00 00 00 f8 00 00 3f 00 ff 00 00 08 00 00 |........?.......|
00000020 00 38 0f 00 d0 03 00 00 00 00 00 00 02 00 00 00 |.8..............|
00000030 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000040 80 01 29 9a be d8 4d 4e 4f 20 4e 41 4d 45 20 20 |..)...MNO NAME |
00000050 20 20 46 41 54 33 32 20 20 20 0e 1f be 77 7c ac | FAT32 ...w|.|
00000060 22 c0 74 0b 56 b4 0e bb 07 00 cd 10 5e eb f0 32 |".t.V.......^..2|
00000070 e4 cd 16 cd 19 eb fe 54 68 69 73 20 69 73 20 6e |.......This is n|
00000080 6f 74 20 61 20 62 6f 6f 74 61 62 6c 65 20 64 69 |ot a bootable di|
00000090 73 6b 2e 20 20 50 6c 65 61 73 65 20 69 6e 73 65 |sk. Please inse|
000000a0 72 74 20 61 20 62 6f 6f 74 61 62 6c 65 20 66 6c |rt a bootable fl|
000000b0 6f 70 70 79 20 61 6e 64 0d 0a 70 72 65 73 73 20 |oppy and..press |
000000c0 61 6e 79 20 6b 65 79 20 74 6f 20 74 72 79 20 61 |any key to try a|
000000d0 67 61 69 6e 20 2e 2e 2e 20 0d 0a 00 00 00 00 00 |gain ... .......|
000000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200

=================== df -Th:

Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs tmpfs 1.6G 1.7M 1.6G 1% /run
/dev/sda2 btrfs 466G 221G 243G 48% /
tmpfs tmpfs 7.9G 184M 7.7G 3% /dev/shm
tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
/dev/sda2 btrfs 466G 221G 243G 48% /home
/dev/sda2 btrfs 466G 221G 243G 48% /var
/dev/sda1 vfat 487M 26M 461M 6% /boot/efi
/dev/sdb1 btrfs 932G 166G 765G 18% /mnt/storage
tmpfs tmpfs 1.6G 12K 1.6G 1% /run/user/1000

=================== fdisk -l:
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Samsung SSD 850
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 10CBC2F2-7AF5-459B-B49B-47243836A5A2

Device Start End Sectors Size Type
/dev/sda1 2048 999423 997376 487M EFI System
/dev/sda2 999424 976771071 975771648 465.3G Linux filesystem


Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST31000524AS
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: A1914329-3A59-43E9-BADC-3F4E11142CAF

Device Start End Sectors Size Type
/dev/sdb1 2048 1953519615 1953517568 931.5G Linux filesystem




=================== Suggested repair
The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of sda2, using the following options: sda1/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s use-standard-efi-file


=================== Final advice in case of suggested repair
Please do not forget to make your BIOS boot on sda1/efi/.../grub*.efi file!


=================== User settings
The settings chosen by the user will not act on the boot.

oldfred
June 20th, 2019, 03:51 PM
What brand/model system?
What video card/chip?

Have you updated UEFI from vendor to latest version?
And updated SSD firmware?
Samsung has a Linux a version of Magician for Linux it is not in the commercial links, but was in Enterprise. And I have not gotten it to work, but have not tried lately. It now says ISO can be used with DOS disk.
https://www.samsung.com/semiconductor/minisite/ssd/download/tools/

All your entries are typical, but I thought drives had to be specified slightly differently with BTRFS?

Do not run Boot-Repair fixes. You have separate /var partition. Boot-Repair auto mounts standard partitions / & /boot if one exists, but I do not think it adds any other folders that are partitions, so updates may not work.

I only have ext4 on an older SSD Samsung 840, but like to see reviews like this.
Optane SSD RAID Performance With ZFS On Linux 8.1, EXT4, XFS, Btrfs, F2FS
https://www.phoronix.com/scan.php?page=article&item=optane-linux-raid&num=1

fogNL
June 20th, 2019, 06:25 PM
What brand/model system?
What video card/chip?

Custom built:
- Asus Prime B450M-A Motherboard
- AMD Ryzen 2600X
- 16GB RAM
- MSI AMD RX 580 graphics



Have you updated UEFI from vendor to latest version?


According to dmidecode, Version 1201 of firmware for Asus Prime B450M-A,

According to Asus website, this is latest released May 10, 2019




And updated SSD firmware?
Samsung has a Linux a version of Magician for Linux it is not in the commercial links, but was in Enterprise. And I have not gotten it to work, but have not tried lately. It now says ISO can be used with DOS disk.
https://www.samsung.com/semiconductor/minisite/ssd/download/tools/



Not something I have thought of or looked into. But, I will check it out as I don't think I've done anything with the firmware on the SSD since I purchased it.



All your entries are typical, but I thought drives had to be specified slightly differently with BTRFS?


What entries are you referring to? I have an almost identical drive layout on my laptop that has not exhibited this issue at all, at least I have something to compare to.



Do not run Boot-Repair fixes. You have separate /var partition. Boot-Repair auto mounts standard partitions / & /boot if one exists, but I do not think it adds any other folders that are partitions, so updates may not work.

I only have ext4 on an older SSD Samsung 840, but like to see reviews like this.
Optane SSD RAID Performance With ZFS On Linux 8.1, EXT4, XFS, Btrfs, F2FS
https://www.phoronix.com/scan.php?page=article&item=optane-linux-raid&num=1


Yeah, didn't plan on running boot-repair as I thought it wouldn't be safe in my configuration. Besides, it never fixed my problem previously when I had a standard EXT4 layout.

Also, for a while, I was able to fix this issue in between updates by booting the system with manual grub commands at the beginning of my post to get into the installed system, and then execute the following:

# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader=ubuntu --recheck
# update-grub
# update-initramfs -u

That worked for the last couple of kernel updates, but the latest one it no longer works for me for some reason.

oldfred
June 20th, 2019, 08:13 PM
Did not realize the sub volumes were in the parameters when I scrolled right.
I was thinking that mounting with same UUID needed something more, but it is just in parameters.

If it worked before, and you had to run the update-initramfs -u, that seems like a driver issue.
Similar to those that load the nVidia driver from nVidia with the .run file. They have to re-run the update-initramfs -u with every kernel update to incorporate the driver, where if installed from Ubuntu repository it is automatically included.

Do you have a btrfs driver and is it from Ubuntu repository or separately installed?

fogNL
June 21st, 2019, 06:34 PM
Do you have a btrfs driver and is it from Ubuntu repository or separately installed?

Whatever came with Ubuntu. I set this filesystem layout during the Ubuntu installer.

If this persists, I may just do a re-install again and just leave it at EXT4, but I don't think that's the issue as I've had this problem since before using BTRFS. I only switch on one of my numerous re-installs due to this.