You are not logged in.

#1 2013-10-25 12:19:46

yuvadm
Member
From: Tel Aviv-Jaffa, Israel
Registered: 2012-08-08
Posts: 102
Website

[SOLVED] Failed to mount /boot/efi after full system upgrade

After running a full system upgrade, and rebooting, I get this error:

FAT-fs (sda1): codepage cp437 not found
[FAILED] Failed to mount /boot/efi

Running systemctl status boot-efi.mount shows the same stuff.

Obviously this is my uEFI boot partition, and it booted just fine until this update. What changed?

I'm in emergency mode after the failed boot, please advise on what I can check to fix this error. Thanks!

Last edited by yuvadm (2013-10-26 12:29:41)

Offline

#2 2013-10-25 16:03:17

jean_no
Member
Registered: 2007-09-18
Posts: 48

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

in /etc/fstab, codepage=cp437 ==> codepage=437

Offline

#3 2013-10-25 19:12:21

yuvadm
Member
From: Tel Aviv-Jaffa, Israel
Registered: 2012-08-08
Posts: 102
Website

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

My /etc/fstab already had codepage=437 in the /boot/efi partition...

Offline

#4 2013-10-25 19:15:28

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

What's in your {grub,gummiboot,syslinux,whatever} config file?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2013-10-25 20:22:30

yuvadm
Member
From: Tel Aviv-Jaffa, Israel
Registered: 2012-08-08
Posts: 102
Website

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

Pretty much everything there is in your gist wink

https://gist.github.com/jasonwryan/4618490

This setup was working just fine until this system update, nothing changed besides that.

Offline

#6 2013-10-25 20:34:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

Heh. Well, it is working for me (using a custom kernel), but I'll boot into the Arch one to check. I assume we are talking about 3.11.6?

# edit: just realized, I moved my EFI to /boot now that gummiboot expects it there...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2013-10-25 20:37:43

yuvadm
Member
From: Tel Aviv-Jaffa, Israel
Registered: 2012-08-08
Posts: 102
Website

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

Yep, 3.11.6 is the latest, and what I have.

EDIT: _although_, my emergency mode kernel is 3.10.3-1, not entirely sure why (maybe last time i generated initramfs?)

Last edited by yuvadm (2013-10-25 20:41:39)

Offline

#8 2013-10-25 20:45:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

Vanilla kernel works fine here. What is your locale?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2013-10-25 20:55:55

yuvadm
Member
From: Tel Aviv-Jaffa, Israel
Registered: 2012-08-08
Posts: 102
Website

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

en_us.UTF-8

Offline

#10 2013-10-25 21:02:35

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

So why do you need the codepage mount option? If you remove it, does booting work as expected?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2013-10-25 21:06:50

yuvadm
Member
From: Tel Aviv-Jaffa, Israel
Registered: 2012-08-08
Posts: 102
Website

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

I don't need it, it was probably generated by genfstab.

Unfortunately, removing it from fstab doesn't help at all, same error.

Just to make sure I tried:

# zgrep 437 /proc/config.gz
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_NLS_CODEPAGE_437=m

which I assume means the default codepage 437 should be working?

Offline

#12 2013-10-25 21:31:58

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

Well, I don't have much else. Check through pacman's log and see what was included in that last update.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#13 2013-10-25 21:38:17

yuvadm
Member
From: Tel Aviv-Jaffa, Israel
Registered: 2012-08-08
Posts: 102
Website

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

Thanks for your help!

(back to trying anything I can think of....)

Offline

#14 2013-10-25 21:45:53

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,412
Website

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

yuvadm wrote:

Yep, 3.11.6 is the latest, and what I have.

EDIT: _although_, my emergency mode kernel is 3.10.3-1, not entirely sure why (maybe last time i generated initramfs?)


1'm assuming you determined this with uname? Can you post the output of 'pacman -Q linux' please?

Last edited by WorMzy (2013-10-25 21:46:11)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#15 2013-10-25 21:49:09

yuvadm
Member
From: Tel Aviv-Jaffa, Israel
Registered: 2012-08-08
Posts: 102
Website

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

WorMzy wrote:

1'm assuming you determined this with uname? Can you post the output of 'pacman -Q linux' please?

# pacman -Q linux
linux 3.11.6-1

You're right, I tried uname earlier.

Offline

#16 2013-10-25 22:03:03

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,412
Website

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

I think the problem is that the kernel you're booting (on the EFI boot partition, presumably) is the old kernel, so when it tries to load the modules necessary for mounting the FAT partiton, it can't find them (because they've been replaced by the new kernel's modules). In the emergency mode, can you downgrade your kernel to 3.10.3-1, then try mounting the efi partiton, then re-update your kernel?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#17 2013-10-25 22:18:13

yuvadm
Member
From: Tel Aviv-Jaffa, Israel
Registered: 2012-08-08
Posts: 102
Website

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

I'm not quite sure what you mean by that. Which kernel am I loading on /boot/efi? It's just gummiboot.

How would I downgrade my kernel to 3.10.3-1?

Last edited by yuvadm (2013-10-25 22:18:27)

Offline

#18 2013-10-25 22:29:36

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,412
Website

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

Gummiboot is your boot manager, not the kernel. The kernel is the vmlinuz file that gummiboot loads for you. What I think has happened is that you have two kernels 'installed', one on the EFI boot partition, and one on your Arch install's root filesystem.

Your boot manager is loading the one on the EFI partition (which is an old version), but your root filesystem only has modules installed for the newer kernel.

You may be able to downgrade from the emergency shell by running:

# pacman -U /var/cache/pacman/pkg/linux-3.10.3-1-x86_64.pkg.tar.xz

Its important that the modules on the root filesystem match up to the kernel you're booting with, or else they will be incompatible.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#19 2013-10-25 22:30:14

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

WorMzy wrote:

I think the problem is that the kernel you're booting (on the EFI boot partition, presumably) is the old kernel, so when it tries to load the modules necessary for mounting the FAT partiton, it can't find them (because they've been replaced by the new kernel's modules).

Good catch.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#20 2013-10-26 08:14:27

yuvadm
Member
From: Tel Aviv-Jaffa, Israel
Registered: 2012-08-08
Posts: 102
Website

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

WorMzy wrote:

You may be able to downgrade from the emergency shell by running:

# pacman -U /var/cache/pacman/pkg/linux-3.10.3-1-x86_64.pkg.tar.xz

OK, I'll try that soon, but assuming that works I'll still need to upgrade the kernel that gummiboot is loading.

How would I go about upgrading it? I prefer doing that directly via a USB boot, instead of downgrading first.

EDIT: ok so your suggestion worked, downgrading to 3.10.3 got me the normal boot process back. Going to try and upgrade the kernel again, hoping the proper kernels will be copied properly to /boot

EDIT 2: so now I upgraded back to 3.11.6 and I see an upgraded kernel in /boot/vmlinuz-linux but it's not updated in /boot/efi/EFI/arch/vmlinuz-linux.efi so should I copy it manually? Would I need to do so on every update?

EDIT 3: additional shipment of fail - I saw the gummiboot warnings about $esp location https://wiki.archlinux.org/index.php/Gummiboot and still not sure what I need to copy manually or not, so I ran the gummiboot update as well as copied again all the files (initramfs and vmlinuz) from /boot, and now the boot process fails somewhere else with the screen just going black mid-process.

Last edited by yuvadm (2013-10-26 09:17:32)

Offline

#21 2013-10-26 11:54:04

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,412
Website

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

That sounds like a kernel mode setting problem, it could be that the kernel you updated to has a bug in the graphics driver you use. I'd create a new topic about that though, it's not related to your original problem.

I recommend that you read this: https://wiki.archlinux.org/index.php/EF … mfs_to_ESP


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#22 2013-10-26 12:20:49

yuvadm
Member
From: Tel Aviv-Jaffa, Israel
Registered: 2012-08-08
Posts: 102
Website

Re: [SOLVED] Failed to mount /boot/efi after full system upgrade

Yep, seems like the original problem is indeed solved and I'm hitting a new problem.

Either way, I'm moving my ESP to /boot so this stuff doesn't happen again, and I won't need to mess with manual updates.

Thanks so much for all the help smile

EDIT: the black screen problem was a very stupid one, the update changed some stuff with screen brightness and the default was pitch black...

Last edited by yuvadm (2013-10-26 15:33:55)

Offline

Board footer

Powered by FluxBB