Out of curiosity what does
dpkg -S $(which update-grub)
show dpkg -S $(which update-grub)
show Code: Select all
dpkg -S $(which update-grub)
grub2-common: /usr/sbin/update-grub
Code: Select all
uname -r
4.15.0-33-generic
Code: Select all
ls -lh /{boot,lib/modules}
/boot:
total 214M
-rw-r--r-- 1 root root 1.5M Apr 24 2018 abi-4.15.0-20-generic
-rw-r--r-- 1 root root 1.5M Aug 15 18:20 abi-4.15.0-33-generic
-rw-r--r-- 1 root root 1.5M Sep 24 19:38 abi-4.15.0-36-generic
-rw-r--r-- 1 root root 1.5M Oct 10 14:50 abi-4.15.0-38-generic
-rw-r--r-- 1 root root 212K Apr 24 2018 config-4.15.0-20-generic
-rw-r--r-- 1 root root 212K Aug 15 18:20 config-4.15.0-33-generic
-rw-r--r-- 1 root root 212K Sep 24 19:38 config-4.15.0-36-generic
-rw-r--r-- 1 root root 212K Oct 10 14:50 config-4.15.0-38-generic
drwx------ 3 root root 2.0K Jan 1 1970 efi
drwxr-xr-x 6 root root 4.0K Oct 24 08:08 grub
-rw-r--r-- 1 root root 56M Oct 10 16:05 initrd.img-4.15.0-33-generic
-rw-r--r-- 1 root root 56M Oct 10 11:21 initrd.img-4.15.0-36-generic
-rw-r--r-- 1 root root 56M Oct 23 06:23 initrd.img-4.15.0-38-generic
-rw-r--r-- 1 root root 179K Jan 28 2016 memtest86+.bin
-rw-r--r-- 1 root root 181K Jan 28 2016 memtest86+.elf
-rw-r--r-- 1 root root 181K Jan 28 2016 memtest86+_multiboot.bin
-rw-r--r-- 1 root root 0 Apr 24 2018 retpoline-4.15.0-20-generic
-rw-r--r-- 1 root root 0 Aug 15 18:20 retpoline-4.15.0-33-generic
-rw-r--r-- 1 root root 0 Sep 24 19:38 retpoline-4.15.0-36-generic
-rw-r--r-- 1 root root 0 Oct 10 14:50 retpoline-4.15.0-38-generic
-rw------- 1 root root 3.9M Apr 24 2018 System.map-4.15.0-20-generic
-rw------- 1 root root 3.9M Aug 15 18:20 System.map-4.15.0-33-generic
-rw------- 1 root root 3.9M Sep 24 19:38 System.map-4.15.0-36-generic
-rw------- 1 root root 3.9M Oct 10 14:50 System.map-4.15.0-38-generic
-rw------- 1 root root 7.9M Aug 15 18:27 vmlinuz-4.15.0-33-generic
-rw------- 1 root root 7.9M Sep 24 21:24 vmlinuz-4.15.0-36-generic
-rw------- 1 root root 7.9M Oct 10 16:13 vmlinuz-4.15.0-38-generic
/lib/modules:
total 16K
drwxr-xr-x 5 root root 4.0K Oct 2 14:48 4.15.0-20-generic
drwxr-xr-x 5 root root 4.0K Oct 10 16:05 4.15.0-33-generic
drwxr-xr-x 5 root root 4.0K Oct 10 11:20 4.15.0-36-generic
drwxr-xr-x 5 root root 4.0K Oct 23 06:22 4.15.0-38-generic
Code: Select all
sudo fdisk -l 2>/dev/null | egrep "Disk /|/dev/" | sed "s#^/dev/#Part /dev/#" | awk '{print $2}' | sed 's/://' | xargs -n1 -IX sudo sh -c "hexdump -v -s 0x80 -n 2 -e '2/1 \"%x\" \"\\n\"' X | xargs -n1 -IY sh -c \"case \"Y\" in '48b4') echo X: GRUB 2 v1.96 ;; 'aa75' | '5272') echo X: GRUB Legacy ;; '7c3c') echo X: GRUB 2 v1.97 or v1.98 ;; '020') echo X: GRUB 2 v1.99 ;; *) echo X: No GRUB Y ;; esac\""
all41 wrote: ⤴Tue Oct 23, 2018 11:06 pm You have some top notch help offered her.
I would just say that there is a dominant grub. And this dominate grub is the one last addressed as:
sudo install-grub.
Find where all grub instances are installed via this terminal inquiry:Be sure to copy/paste the entire inquiry.Code: Select all
sudo fdisk -l 2>/dev/null | egrep "Disk /|/dev/" | sed "s#^/dev/#Part /dev/#" | awk '{print $2}' | sed 's/://' | xargs -n1 -IX sudo sh -c "hexdump -v -s 0x80 -n 2 -e '2/1 \"%x\" \"\\n\"' X | xargs -n1 -IY sh -c \"case \"Y\" in '48b4') echo X: GRUB 2 v1.96 ;; 'aa75' | '5272') echo X: GRUB Legacy ;; '7c3c') echo X: GRUB 2 v1.97 or v1.98 ;; '020') echo X: GRUB 2 v1.99 ;; *) echo X: No GRUB Y ;; esac\""
When booted into Mint then enter:
sudo install grub /dev sdX
Where sdX is the actual location
Code: Select all
sudo fdisk -l 2>/dev/null | egrep "Disk /|/dev/" | sed "s#^/dev/#Part /dev/#" | awk '{print $2}' | sed 's/://' | xargs -n1 -IX sudo sh -c "hexdump -v -s 0x80 -n 2 -e '2/1 \"%x\" \"\\n\"' X | xargs -n1 -IY sh -c \"case \"Y\" in '48b4') echo X: GRUB 2 v1.96 ;; 'aa75' | '5272') echo X: GRUB Legacy ;; '7c3c') echo X: GRUB 2 v1.97 or v1.98 ;; '020') echo X: GRUB 2 v1.99 ;; *) echo X: No GRUB Y ;; esac\""
[sudo] password for loozer:
/dev/sda: No GRUB 00
/dev/sda1: No GRUB 6f6f
/dev/sda2: No GRUB 55aa
/dev/sda3: No GRUB f6c1
/dev/sda4: No GRUB 55aa
/dev/sda5: No GRUB 8cd
/dev/sda6: No GRUB 00
/dev/sda7: No GRUB 00
You have remnant leftover files and a /lib/modules folder for 4.15.0-20
dpkg -S /boot/{System.map-4.15.0-20-generic,retpoline-4.15.0-20-generic,config-4.15.0-20-generic,abi-4.15.0-20-generic}|awk '{print $1}'|uniq
Code: Select all
dpkg -S /boot/{System.map-4.15.0-20-generic,retpoline-4.15.0-20-generic,config-4.15.0-20-generic,abi-4.15.0-20-generic}|awk '{print $1}'|uniq
dpkg-query: no path found matching pattern /boot/System.map-4.15.0-20-generic
dpkg-query: no path found matching pattern /boot/retpoline-4.15.0-20-generic
dpkg-query: no path found matching pattern /boot/config-4.15.0-20-generic
dpkg-query: no path found matching pattern /boot/abi-4.15.0-20-generic
Code: Select all
sudo apt purge 4.15.0-20
Code: Select all
sudo apt autoremove
Code: Select all
dpkg -l | grep '^rc' | awk '{print $2}' | sudo xargs dpkg --purge
Code: Select all
dpkg -l | grep '^rc' | awk '{print $2}' | xargs sudo apt-get purge
I wonder if grub-customizer changed your default boot OS (or kernel) in theUnwantedArun wrote: ⤴Tue Oct 23, 2018 10:35 pmI'm sorry. It wasn't installed from software manager. I think.
it is from this ppaCode: Select all
ppa:danielrichter2007/grub-customizer
/etc/default/grub
file - ?Code: Select all
### BEGIN /etc/grub.d/40_custom_proxy ###
menuentry "Linux Mint" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-a632623b-d5fe-4a70-999b-1eb856fa3104' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 a632623b-d5fe-4a70-999b-1eb856fa3104
else
search --no-floppy --fs-uuid --set=root a632623b-d5fe-4a70-999b-1eb856fa3104
fi
linux /boot/vmlinuz-4.15.0-33-generic root=UUID=a632623b-d5fe-4a70-999b-1eb856fa3104 ro quiet splash pcie_aspm=off $vt_handoff
initrd /boot/initrd.img-4.15.0-33-generic
}
### END /etc/grub.d/40_custom_proxy ###
cat /etc/grub.d/40_custom
ls -lh /etc/grub.d
I never use that stuff (I have a hand-made grub.cfg file) so don't know much about it, but I wonder if the solution is to purge/reinstall these packages:thx-1138 wrote: ⤴Wed Oct 24, 2018 2:04 pm ...assuming GC is the culprit, it does way more than modify the contents of /etc/default/grub...
Code: Select all
grub-common
grub2-common
grub-pc