You are not logged in.

#1 2015-10-31 11:52:18

folatt
Member
Registered: 2015-08-01
Posts: 96

[kind of solved] Don't know how to configure grub.

[edit] Continued on https://bbs.archlinux.org/viewtopic.php … 6#p1578206 [/edit]

After installing Arch I installed grub with these commands:

pacman -S grub
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub --recheck
grub-mkconfig -o /boot/grub/grub.cfg

Now the grub menu appears and I can choose Arch Linux.
However, when I choose to boot in Arch Linux via grub I am greeted with this:

Welcome to emergency mode! After logging in, type "journalctl -xb" to view 
system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to try again
to boot into default mode.

Cannot open access to console, the root account is locked.
see sulogin(8) man page for more details.

Press Enter to continue.

Trying to boot into Xen via grub is even worse as it freezes without any error message after GRUB loads the kernel and the initial ramdisk.

Pressing enter results into the same message with the added line:

Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)

My EFI boot menu still works fine, so I'm still able to login to Xen.


I have also notice a failed message when trying to boot into Arch Linux:

[Failed] Failed to mount /proc xen.

Last edited by folatt (2015-11-13 19:32:46)

Offline

#2 2015-10-31 11:55:47

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [kind of solved] Don't know how to configure grub.

Can you post the output of the following:

ls /boot
ls /boot/grub
lsblk -f

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2015-10-31 12:21:34

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [kind of solved] Don't know how to configure grub.

Also, check the content of /boot/grub/grub.cfg, but unfortunately, it is usually virtually unreadable. Aslo check the output of cat /proc/cmdline. Maybe the correct options are not passed to the kernel. You can try to configure it by hand (see the basic in the Gentoo wiki.

But do you need grub2? You say you are able to log into arch with "Linux Boot Manager". What is the  "Linux Boot Manager"? You can certainly configure it to launch the kernel without needing grub.

Offline

#4 2015-10-31 12:23:19

folatt
Member
Registered: 2015-08-01
Posts: 96

Re: [kind of solved] Don't know how to configure grub.

You can certainly configure it to launch the kernel without needing grub.

Already have done, but I like grub. So I thought 'I've got my Arch installation working. I'm a bit stuck with Xen. Now is a good time to add grub.'


And I have to correct myself on what I said earlier.
I can in fact NOT login into Arch Linux via EFI boot menu. I can login to Xen.

ls /boot

$ ls -lah
total 28M
drwxr-xr-x 5 rogier rogier  16K okt 31 13:18 .
drwxr-xr-x 6 rogier rogier  16K jan  1  1970 ..
drwxr-xr-x 5 rogier rogier  16K okt 31 13:18 EFI
drwxr-xr-x 6 rogier rogier  16K okt 31 13:18 grub
-rw-r--r-- 1 rogier rogier  17M okt 31 13:18 initramfs-linux-fallback.img
-rw-r--r-- 1 rogier rogier 3,4M okt 31 13:18 initramfs-linux.img
drwxr-xr-x 3 rogier rogier  16K okt 31 13:18 loader
-rw-r--r-- 1 rogier rogier 4,1M okt 31 13:18 vmlinuz-linux
-rw-r--r-- 1 rogier rogier 2,0M okt 31 13:18 xen-4.5.1.efi
-rw-r--r-- 1 rogier rogier 850K okt 31 13:18 xen-4.5.1.gz
-rw-r--r-- 1 rogier rogier  192 okt 31 13:18 xen.cfg

ls /boot/grub

$ ls -lah
total 160K
drwxr-xr-x 6 rogier rogier  16K okt 31 13:18 .
drwxr-xr-x 5 rogier rogier  16K okt 31 13:18 ..
drwxr-xr-x 2 rogier rogier  16K okt 31 13:18 fonts
-rw-r--r-- 1 rogier rogier 6,7K okt 31 13:18 grub.cfg
-rw-r--r-- 1 rogier rogier 6,7K okt 31 13:18 grub.cfg.example
-rw-r--r-- 1 rogier rogier 1,0K okt 31 13:18 grubenv
drwxr-xr-x 2 rogier rogier  16K okt 31 13:18 locale
drwxr-xr-x 3 rogier rogier  16K okt 31 13:18 themes
drwxr-xr-x 2 rogier rogier  32K okt 31 13:18 x86_64-efi

lsblk -f

NAME   FSTYPE LABEL UUID                                 MOUNTPOINT
sda                                                      
|-sda1 vfat         FF2C-B8A3                            /boot
|-sda2 btrfs        b3f4f40f-a8a1-4438-a187-dc02f2104340 /
|-sda3 swap         7d91962c-9eba-4fb2-b198-3a91c681e4f3 [SWAP]
`-sda4 btrfs        986d54c0-878d-4d18-843a-9245ee6d8be5 

/boot/grub/grub.cfg
http://pastebin.archlinux.fr/1698188

Last edited by folatt (2015-11-11 08:00:59)

Offline

#5 2015-11-07 09:34:41

folatt
Member
Registered: 2015-08-01
Posts: 96

Re: [kind of solved] Don't know how to configure grub.

journalctl -k -b -1 (Arch Linux boot in grub)
http://pastebin.archlinux.fr/1698225 (part 1)
http://pastebin.archlinux.fr/1698222 (part 2)
http://pastebin.archlinux.fr/1698223 (warnings and errors only)

journalctl -k -b -1 (Xen boot in grub)
http://pastebin.archlinux.fr/1698219 (part 1)
http://pastebin.archlinux.fr/1698220 (part 2)
http://pastebin.archlinux.fr/1698224 (warnings and errors only)

Last edited by folatt (2015-11-11 08:12:33)

Offline

#6 2015-11-08 02:16:55

techwiz
Member
Registered: 2012-01-26
Posts: 48

Re: [kind of solved] Don't know how to configure grub.

Looks to me like Xen is failing and since it's apparently a dependency of the filesystem, the system gives up. I would first try disabling Xen, if you can boot with it disabled, at least you've narrowed things down. Secondly, I would try pushing Xen startup further down the init stack, maybe change it's target to runlevel1.target?

Offline

#7 2015-11-08 22:32:53

folatt
Member
Registered: 2015-08-01
Posts: 96

Re: [kind of solved] Don't know how to configure grub.

Any tips on how to disable such a thing?

BTW more Xen stuff:

ls /boot/grub/

00_header
09_xen
10_linux
20_linux_xen
30_os-prober
40_custom
41_custom
60_memtest86+
README

cat /boot/grub/09_xen
http://pastebin.archlinux.fr/1700685

cat /boot/grub/20_xen
http://pastebin.archlinux.fr/1700697

Last edited by folatt (2015-11-12 19:21:34)

Offline

#8 2015-11-12 18:40:09

folatt
Member
Registered: 2015-08-01
Posts: 96

Re: [kind of solved] Don't know how to configure grub.

I have also been given advice that the EFI root should be mounted on /boot/efi and that grub cfg should be in the EFI root as well like so:

grub-mkconfig -o /boot/efi/EFI/grub/grub.cfg

This has resulted in an commandline grub. sad
I think it's due to missing menu entries.

Last edited by folatt (2015-11-12 18:41:13)

Offline

#9 2015-11-12 20:06:16

folatt
Member
Registered: 2015-08-01
Posts: 96

Re: [kind of solved] Don't know how to configure grub.

Arch Linux boots now after removing the '/proc' line from /etc/fstab earlier adviced in https://wiki.archlinux.org/index.php/Xe … stallation .

Offline

Board footer

Powered by FluxBB