watchpocket
September 12th, 2016, 06:01 AM
For a good year-and-a-half or so I've had a good working custom grub (thanks to Cavsfan's help), but something just happened to my grub that I can't figure out.
Grub is installed on /dev/sdb (mainly because sdb used to be sda). Usually I boot into /dev/sda (UbuntuMATE 16.04, on an SSD) by setting "GRUB DEFAULT" in /etc/default/grub to 3, but my 16.04 at the moment is not well, so right now I'm booting into my UbuntuMATE 14.04, on /dev/sdb by setting "GRUB DEFAULT" at 0, which logs me into Trusty.
But somehow today when I booted to Trusty, instead of moving into the Trusty Plymouth and Greeter, I was simply cycled back to the Grub menu. ( I believe I did something while working in Aptitude to cause this.) Right now if I try to boot to Trusty, the grub menu disappears, my grub graphic remains, and it freezes there. I have to hit the re-set button.
So for the moment, I've set "GRUB DEFAULT" at 5, which logs me into the "advanced options" Trusty, where before I get to the greeter, a whole lot of info flies by, but at least I can get to trusty that way.
Obviousy I'd like to return to what passes for normal for me right now, which is being able to log normally into Trusty. (I can log into Xenial.)
Would anyone know where I might start to track down the problem? (Below: I can't see anything wrong with any of these files, maybe someone else can.)
--> cat /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).
#
# UbuntuMATE-14.04:
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=1742aa67-b8ce-45d2-94ca-05e3579f7e2f / ext4 errors=remount-ro 0 1 # /dev/sda1
UUID=a88c33fd-88b5-43b2-92f6-457430d206fd none swap sw 0 0 # /dev/sda2
--> sudo blkid
[sudo] password for rj:
/dev/sdb1: LABEL="UbuntuMATE-16.04" UUID="010dab65-d950-47dc-ac77-a3760775104d" TYPE="ext4"
/dev/sdb2: UUID="d6a2bc73-6ec4-4465-a9ab-8447e13ac6f9" TYPE="swap"
/dev/sda1: LABEL="UbuntuMATE-14.04" UUID="1742aa67-b8ce-45d2-94ca-05e3579f7e2f" TYPE="ext4"
/dev/sda2: UUID="a88c33fd-88b5-43b2-92f6-457430d206fd" TYPE="swap"
/dev/sdc1: LABEL="WeirdBeard" UUID="c801726e-7a01-4963-989a-38482e6658cf" TYPE="ext4"
--> cat /etc/default/grub
# If you change this file, run 'sudo 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=5
GRUB_TIMEOUT=10
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset=1 #=1 quiet splash video=uvesafb:mode_option=1600x1200-32,mtrr=3,scroll=ywrap"
GRUB_CMDLINE_LINUX=""
GRUB_FONT=/boot/grub/DejaVuSansMono.pf2
# 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=1600x1200-32
# 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
# 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"
GRUB_GFXPAYLOAD_LINUX=keep
--> vim /etc/grub.d/06_custom
1 #!/bin/sh
2 echo 1>&2 "Adding Ubuntu-MATE 14.04 (Trusty Tahr) and Ubuntu-MATE 16.04 (Xenial Xerus)"
3 exec tail -n +4 $0
4 # This file provides an easy way to add custom menu entries. Simply type the
5 # menu entries you want to add after this comment. Be careful not to change
6 # the 'exec tail' line above.
7 menuentry "Ubuntu-MATE 14.04 (Trusty Tahr)" {
8 set root=(hd0,1)
9 linux /vmlinuz root=/dev/sda1 ro quiet splash
10 initrd /initrd.img
11 }
12 menuentry "Ubuntu-MATE 14.04 (Trusty Tahr) (Recovery Mode)" {
13 set root=(hd0,1)
14 linux /vmlinuz root=/dev/sda1 ro recovery nomodeset
15 initrd /initrd.img
16 }
17 menuentry "Ubuntu-MATE 16.04 (Xenial Xerus)" {
18 set root=(hd1,1)
19 linux /vmlinuz root=/dev/sdb1 ro quiet splash
20 initrd /initrd.img
21 }
22 menuentry "Ubuntu 16.04 (Xenial Xerus) (Recovery Mode)" {
23 set root=(hd1,1)
24 linux /vmlinuz root=/dev/sdb1 ro single
25 initrd /initrd.img
26 }
Grub is installed on /dev/sdb (mainly because sdb used to be sda). Usually I boot into /dev/sda (UbuntuMATE 16.04, on an SSD) by setting "GRUB DEFAULT" in /etc/default/grub to 3, but my 16.04 at the moment is not well, so right now I'm booting into my UbuntuMATE 14.04, on /dev/sdb by setting "GRUB DEFAULT" at 0, which logs me into Trusty.
But somehow today when I booted to Trusty, instead of moving into the Trusty Plymouth and Greeter, I was simply cycled back to the Grub menu. ( I believe I did something while working in Aptitude to cause this.) Right now if I try to boot to Trusty, the grub menu disappears, my grub graphic remains, and it freezes there. I have to hit the re-set button.
So for the moment, I've set "GRUB DEFAULT" at 5, which logs me into the "advanced options" Trusty, where before I get to the greeter, a whole lot of info flies by, but at least I can get to trusty that way.
Obviousy I'd like to return to what passes for normal for me right now, which is being able to log normally into Trusty. (I can log into Xenial.)
Would anyone know where I might start to track down the problem? (Below: I can't see anything wrong with any of these files, maybe someone else can.)
--> cat /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).
#
# UbuntuMATE-14.04:
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=1742aa67-b8ce-45d2-94ca-05e3579f7e2f / ext4 errors=remount-ro 0 1 # /dev/sda1
UUID=a88c33fd-88b5-43b2-92f6-457430d206fd none swap sw 0 0 # /dev/sda2
--> sudo blkid
[sudo] password for rj:
/dev/sdb1: LABEL="UbuntuMATE-16.04" UUID="010dab65-d950-47dc-ac77-a3760775104d" TYPE="ext4"
/dev/sdb2: UUID="d6a2bc73-6ec4-4465-a9ab-8447e13ac6f9" TYPE="swap"
/dev/sda1: LABEL="UbuntuMATE-14.04" UUID="1742aa67-b8ce-45d2-94ca-05e3579f7e2f" TYPE="ext4"
/dev/sda2: UUID="a88c33fd-88b5-43b2-92f6-457430d206fd" TYPE="swap"
/dev/sdc1: LABEL="WeirdBeard" UUID="c801726e-7a01-4963-989a-38482e6658cf" TYPE="ext4"
--> cat /etc/default/grub
# If you change this file, run 'sudo 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=5
GRUB_TIMEOUT=10
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset=1 #=1 quiet splash video=uvesafb:mode_option=1600x1200-32,mtrr=3,scroll=ywrap"
GRUB_CMDLINE_LINUX=""
GRUB_FONT=/boot/grub/DejaVuSansMono.pf2
# 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=1600x1200-32
# 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
# 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"
GRUB_GFXPAYLOAD_LINUX=keep
--> vim /etc/grub.d/06_custom
1 #!/bin/sh
2 echo 1>&2 "Adding Ubuntu-MATE 14.04 (Trusty Tahr) and Ubuntu-MATE 16.04 (Xenial Xerus)"
3 exec tail -n +4 $0
4 # This file provides an easy way to add custom menu entries. Simply type the
5 # menu entries you want to add after this comment. Be careful not to change
6 # the 'exec tail' line above.
7 menuentry "Ubuntu-MATE 14.04 (Trusty Tahr)" {
8 set root=(hd0,1)
9 linux /vmlinuz root=/dev/sda1 ro quiet splash
10 initrd /initrd.img
11 }
12 menuentry "Ubuntu-MATE 14.04 (Trusty Tahr) (Recovery Mode)" {
13 set root=(hd0,1)
14 linux /vmlinuz root=/dev/sda1 ro recovery nomodeset
15 initrd /initrd.img
16 }
17 menuentry "Ubuntu-MATE 16.04 (Xenial Xerus)" {
18 set root=(hd1,1)
19 linux /vmlinuz root=/dev/sdb1 ro quiet splash
20 initrd /initrd.img
21 }
22 menuentry "Ubuntu 16.04 (Xenial Xerus) (Recovery Mode)" {
23 set root=(hd1,1)
24 linux /vmlinuz root=/dev/sdb1 ro single
25 initrd /initrd.img
26 }