You are not logged in.
Hello,
I was able to connect to the internet and to start xfce4 a few times on my Acer notebook (F5-573G-52PJ).
But now there is only lo when I use ip link and I when I write startx it I get "xinit: unable to connect to X server: Connection refused"
I tried a few things, including following a few things from there
https://bbs.archlinux.org/viewtopic.php?id=185870
uname -a displays 4.12.8-2-ARCH and pacman -QI linux displays 4.12.10-1
iw list says "nl80211 not found."
Should I post the output of dmesg? What else should I try?
Last edited by Thomas Müller (2017-09-08 11:02:34)
Offline
uname -a display 4.12.8-2-ARCH and pacman -QI linux 4.12.10-1
You either haven't rebooted since upgrading your kernel or, more likely, you didn't have /boot mounted when you upgraded.
You will need to chroot in and make sure /boot is mounted and run a full upgrade.
Offline
or, more likely, you didn't have /boot mounted when you upgraded.
I tried it a few times. Alway did that:
mount -L p_arch /mnt
mkdir -p /mnt/boot
mount -L EFIBOOT /mnt/boot
swapon -L p_swap
p_arch is my root partition, the other two has in their name what they are.
And then after I set up temporary internet connection and did arch-chroot /mnt /bin/bash I did:
pacman -S linux
pacman -Syu
(pacman -Syu currently only shows me -0.17 MiB and a package called ninja-1.8.1-1-x86_64 and then reports that the author is unknown trust and that the package is invalid or corrupted)
Last edited by Thomas Müller (2017-09-08 02:11:07)
Offline
Well, lets take a closer look.
First, what are the output of
uname -a
pacman -Q linux
cat /proc/cmdline
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
uname -a
Linux myhost 4.12.8-2-ARCH #1 SMP PREEMPT Fri Aug 18 14:08:02 UTC 2017 x86_64 GNU/Linux
pacman -Q linux
linux 4.12.10-1
cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-linux root=UUID=2afcaa54-1de9-4c26-bb05-352711bf1ea2 rw quiet
Last edited by Thomas Müller (2017-09-08 05:53:21)
Offline
Bootloader config?
Offline
I needed to do a key refresh with pacman so that I was able to install ntfs-3g and downgrade my kernel, because I wasn't able to mount fat32 or nfts drives because fuse had problems.
New pacman -Q linux
4.12.8-2
/boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd1,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4 2afcaa54-1de9-4c26-bb05-352711bf1ea2
else
search --no-floppy --fs-uuid --set=root 2afcaa54-1de9-4c26-bb05-352711bf1ea2
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-2afcaa54-1de9-4c26-bb05-352711bf1ea2' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4 2afcaa54-1de9-4c26-bb05-352711bf1ea2
else
search --no-floppy --fs-uuid --set=root 2afcaa54-1de9-4c26-bb05-352711bf1ea2
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=2afcaa54-1de9-4c26-bb05-352711bf1ea2 rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/intel-ucode.img /boot/initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-2afcaa54-1de9-4c26-bb05-352711bf1ea2' {
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-2afcaa54-1de9-4c26-bb05-352711bf1ea2' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4 2afcaa54-1de9-4c26-bb05-352711bf1ea2
else
search --no-floppy --fs-uuid --set=root 2afcaa54-1de9-4c26-bb05-352711bf1ea2
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=2afcaa54-1de9-4c26-bb05-352711bf1ea2 rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/intel-ucode.img /boot/initramfs-linux.img
}
menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-2afcaa54-1de9-4c26-bb05-352711bf1ea2' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4 2afcaa54-1de9-4c26-bb05-352711bf1ea2
else
search --no-floppy --fs-uuid --set=root 2afcaa54-1de9-4c26-bb05-352711bf1ea2
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=2afcaa54-1de9-4c26-bb05-352711bf1ea2 rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/intel-ucode.img /boot/initramfs-linux-fallback.img
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###Last edited by Thomas Müller (2017-09-08 09:23:05)
Offline
That looks like it's loading the kernel off of the root partition instead of the ESP. Mounting the ESP to /mnt/boot/ is probably what's causing problems with your recovery attempt.
If I'm right, you'll need to either stop mounting your ESP at /boot, or redo your bootloader config.
Last edited by Scimmia (2017-09-08 08:20:19)
Offline
If I'm right, you'll need to either stop mounting your ESP at /boot, or redo your bootloader config.
Yes. This time I only mounted p_arch on my live cd and after arch-chroot /bin/bash, grub-mkconfig -o /boot/grub/grub.cfg and an reboot I can now start xfce4 with startx again.
And now my network interfaces shows up and I can at least connect to the internet via ethernet; wireless somehow doesn't work, but maybe I can find this out by myself.
Thank you, Scimmia.
But I just don't get how this worked (Or more likely why that even happened, cause as I had written before I had those problems I was able to use internet and xfce4 for a few times).
EDIT: After pacman -Syu interfaces are gone and startx isn't working again..
Last edited by Thomas Müller (2017-09-08 09:30:51)
Offline
Thank you, Scimmia.
But I just don't get how this worked (Or more likely why that even happened, cause as I had written before I had those problems I was able to use internet and xfce4 for a few times).
This only happens when the kernel updates. Each kernel has its own set of modules, these get replaced with the modules of the newer kernel when it updates. You can't use the new kernel's modules with the old kernel. The Arch packages will, by default, install the new kernel into the /boot node. If you do have that mounted during that time, you will have the new kernel's modules, and install the new kernel into your ESP partition or if it wasn't mounted into your /boot directory with the new kernel on your root partition. If you now reboot, GRUB will start see the kernel on your root partition and boot that kernel, this will work fine for the modules that the kernel has built in, but the wifi and graphics card modules will be loaded after the kernel has booted, however you are still on the old kernel and it can't find it's modules since they were replaced earlier, hence no wifi and no xorg.
If this is SOLVED for you, don't forget to edit your initial post's title.
Edit: By virtue of what I just told you and Scimmia points out, either make sure that your ESP is mounted to /boot and adjust your GRUB config so that it loads the kernel from the ESP, or do not mount your ESP to /boot since currently GRUB is configured to look at the / partition.
Last edited by V1del (2017-09-08 09:49:22)
Offline
I see.
Mounted all partitions as before at my live cd, because EFISTUB is in my fstab, then redid grub-mkconfig -o /boot/grub/grub.cfg, then pacman -Syy and - just in case - pacman -S linux.
Both uname -r and pacman -Q linux shows 4.12.10-1 now. Also startx and - at least - ethernet connection seems to work permanent now.
Thanks, V1del.
Edit: Can connect to wireless internet again after removing NetworkManager. Now I am only using wpa_supplicant with one script to manually connect written by myself.
Last edited by Thomas Müller (2017-09-11 07:28:51)
Offline