Linux MintThis forum is for the discussion of Linux Mint.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello from a Linux newbie, LQ.org! Yesterday the Mint 19.1 system on my Windows 10 / Mint 19.1 dual-boot laptop went haywire.
My system boots into emergency mode whenever I start it up. I can't get into recovery mode, either, because the UI is partially overwritten with "You are in emergency mode" text lines, the graphics flicker, and the keyboard input doesn't register correctly. (See this image: https://prnt.sc/m78ozb I tried to enter a simple "echo" command to demonstrate what it looks like)
This happened after being absent from the Mint system for some time, until I came back to it yesterday. At first the laptop's touchpad wasn't working, and I didn't know how to turn it back on. I knew I had disabled it on the Windows system, so I booted into Windows, re-enabled the touchpad, and booted back into Linux Mint. I was greeted by emergency mode.
I ran "journalctl -xb"and found a few lines that may possibly relate to my issues:
Code:
could not open moddep file '/lib/modules/4.15.0.20-generic/modules.dep.bin (I saw 5 occurrences of this)
...
mount[715]: mount: /boot/efi: wrong fs type, bad option, bad superblock on /dev/sda2, missing codepage or helper program, or other error.
kernel: FAT-fs (sda2): IO charset iso8859-1 not found
systemd[1]: boot-efi.mount: Mount process exited, code=exited status=32
systemd[1]: boot-efi.mount: Failed with result 'exit-code'.
systemd[1]: Failed to mount /boot/efi.
I confirmed the presence of "modules.dep.bin" through "ls /lib/modules/4.15.0.20-generic/"
/dev/sda2 is the location of my Windows EFI boot partition, NOT Linux Mint's (which is /dev/sda6)
It may also be noteworthy that when booting into recovery mode, I see "[FAILED] Failed to start Load Kernel Modules." and "[FAILED] Failed to mount /boot/efi" as it boots up.
If I had to guess, looks like the cause of the problem is the system failing to load kernel modules, which is perhaps why it also fails to mount the Windows EFI partition. I don't know what to do. What really is wrong? How did it happen? How can I fix this?
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
Hey METROIDHunter_,
Welcome to LQ.
Definitely seems to be some kind of issue / corruption on sda2. I would try a file system check using fsck and then maybe Boot Repair, depending on the results. This will require booting something from an external drive - the Mint installation media you originally used probably has both programs.
Let us the results or get back to us if you need guidance on how to do this.
I didn't see anything glaringly, obviously wrong there.
I followed through with boot-repair. I found a bootable medium which came with boot-repair installed (https://sourceforge.net/projects/boot-repair-cd/). Booted into this from a flash drive on my laptop and ran the recommended repair. After running "fsck" and "boot-repair", booting into mint still brings me to emergency mode.
Quote:
Originally Posted by colorpurple21859
at the grub prompt do you have any other boot
options for mint that you can try?
Until running boot-repair, only the options for Linux Mint Mate 19.1 with 4.15.0.20-generic, the same thing (but in recovery mode), and Windows Boot Manager on /dev/sda2. After running boot-repair, five new options were added, and for some reason "Linux Mint 19.1 MATE" was renamed to "Ubuntu" in my grub menu. These are the options I see:
Code:
Ubuntu
Advanced options for Ubuntu
Windows UEFI bootmgfw.efi
Windows Boot UEFI loader
Windows Boot UEFI fbx64.efi
EFI/ubuntu/fwupx64.efi
EFI/ubuntu/mmx64.efi
Windows Boot Manager (on /dev/sda2)
System setup
I tried all of these 5 new boot options, and none of them get me anywhere.
"Windows Boot UEFI loader" complains about "system_image() not found" and returns to grub
"Windows Boot UEFI fbx64.efi" says "System bootloader not found" and returns to grub
"EFI/ubuntu/fwupx64.efi" prints a quick message on the screen about an update, for such a brief period of time that I can't read it, then returns to grub.
"EFI/ubuntu/mmx64.efi" brings up a blue screen asking about MOK management. Continuing with boot simply leaves me in a black screen indefinitely.
"Windows UEFI bootmgfw.efi" actually booted into Windows 10 as normal.
Quote:
Originally Posted by colorpurple21859
what is in your /etc/fstab?
Booted into emergency mode and ran "vim /etc/fstab", this is what I see: https://prnt.sc/m7rtbi
Boot repair should have an option to Create BootInfo Summary which is the best to select and run as it will output detailed, useful info on your system so do that. If the version you have doesn't have that option, you can boot with any Ubuntu/Mint usb/DVD and download it from the link below using the 2nd option on that page to use the ppa.
at the grub prompt hit e for edit, add nomodeset to the line that starts with linux
I did just as you said, editing the grub entry that would normally start Linux Mint, and appending "nomodeset" to the line starting with "linux". It still started in emergency mode, although I did see this output appear before the Mint splash screen appeared:
Code:
do_IRQ: 1.55 no irq handler for vector
do_IRQ: 2.55 no irq handler for vector
do_IRQ: 3.55 no irq handler for vector
Couldn't get size: 0x800000000000000e
[drm:radeon_init [radeon]] *ERROR* No UMS support in radeon module!
[drm:radeon_init [radeon]] *ERROR* VGACON disables amdgpu kernel modesetting
I noticed the lines pertaining to "radeon" and "amdgpu" - if it makes a difference, my laptop (Toshiba C75D-A) runs on an AMD A6-5200 with Radeon HD 8400 integrated graphics.
I ran boot-repair again from the same live USB I used last time, but this time I had it upload to a pastebin. Here are the results: https://paste.ubuntu.com/p/pQvmKzxB8m/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.