You are not logged in.
Hi everyone,
I've recently installed windows in a sepatate hdd, and except that at boot is windows that is loaded everything was ok. Yesterday i updated my system with pacman -Syu as always, but i get some errors with a package, ca-certificates if i remember well, so i've updated everything ignoring that package and then only that forcing it as suggested in a previous post here on arch forums. After the update i went out so i turned the pc off. at my back i tried to turn it on but after the "started account service" the boot hangs there. I use gnome and online I've found that the problem was caused, maybe, by gdm, so as suggested i tryed to install lxdm or similar. i am able to log in tty1,2 ecc so i logged in and tried to install it but get errors. I realized that those were caused by the fact that i was offline. I'm using a wifi card, never had problems, so i tried to reconnect using wifi-menu but i couldn't. ifconfig printed only lo, wlan and eth are disappeared. also my hard disk with arch on has 3 partitions, the first is efi, the second the swap and the third arch but mount showed me only sd3 mounted in / when after I've installed arch it showed sda1 and sd2 too (I've found this cause i was trying to mount a usb drive to save my files and i was unable to do it).
Thanks for any help!
Last edited by momokrono (2017-03-21 19:21:48)
Offline
For the ca-certs issue, you did it wrong. Read the front page news. It seems you took some horrible advice on the forums that was rightly flagged as horrible advice by everyone responding to it. What exactly did you 'force'? Check your shell history and/or pacman log to provide the exact command. (Seeing your full pacman.log would be ideal, but I suspect you'd have trouble getting it to an networked system.)
In any case, the ca-certs issue may not be related to the present problem. But for future reference, '--force' is rarely a solution but rather a common cause of problems.
The present issue is likely due to upgrading while your efi/boot partition wasn't mounted, so the kernel you are booting does not match the installed modules. This would prevent network interfaces and (most) usb media from working.
You should have a vmlinuz-linux and it's associated initramfs in both [sda3]/boot/ and [sda1]/. You can run `file` on each of these to see the version. I suspect the new one is under [sda3]/boot and an old one is on sda.
Two possible solutions: 1) boot a live medium, mount all your partitions properly, then upgrade your system and/or reinstall the kernel. Then fix your fstab. Or 2) mount sda1 to /mnt/ then move the kernel and initramfs from /boot/ to /mnt/. Then fix your fstab.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
for the pacman command i ran it was pacman -S --force ca-certs, the previous pacman -Syu --ignore ca-certs.
i dont have a live medium at the moment, so i'll try the 2 solution for now. I'll post any news.
Offline
so, i'll recap: sda1 is efi, sda2 swap and sda3 mounted in /. i've just checked that my /boot directory is empty :\
i'll make a live and try to mount everything properly.
May this be caused by windows? i've used arch for months without any problem.
Last edited by momokrono (2017-03-19 19:59:05)
Offline
/boot was likely not mounted during the upgrade. Chroot in and make sure it is mounted before re-upgrading.
Offline
Odd. My suspicion looks to be wrong. The /boot directory of sda3 should be empty (but this is not what I was expecting). Your symptoms look like the kernel booted into from sda1 is not matching the modules installed on sda3 under /usr/lib/modules/. This frequently happens when efi/boot partitions are not properly mounted during an upgrade. Given that your boot partition was not mounted this seemed like a very likely scenario.
The symptoms still do fit having a kernel and module version mismatch, but if sda3:/boot is really empty, it's less clear to me how you might have arrived at that state.
You should be able to mount everything without using a live USB. As long as the system boots, just mount sda1 to /boot (and options swapon /dev/sda2). But in either case, whether you do this or chroot in from a live system, please show the output of the following once in your system with all paritions mounted properly:
pacman -Qi linux
ls /usr/lib/modules
file /boot vmlinuz-linux
lsinitcpio /boot/initramfs-linux.img | grep ARCH$
cat /etc/fstab"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
trying to mount /dev/sda1 to /boot i get
mount: unknown filesystem type 'vfat'the odd thing is that i've disabled gdm, so now at the boot i have a simple login screen, the one of arch without any desktop environment, and i can log in and do everything i want as if it booted normally...
also i tryed to mount in /mnt/boot but i have the same output. I've prepared a live usb drive, so I'll try to chroot to solve it but first i don't have exactly understood how to do it, and second I think it's strange that from the system itself i cannot mount that partition.
fdisk -l outputs:
/dev/sda1 <things> EFI (FAT 32)
/dev/sda2 <things> Linux swap
/dev/sda3 <things> Linuxand i remember i formatted /dev/sda3 with mkfs.vfat, is ext4 what i need? But again, for months was ok and at the installation i had no problem at all mounting it :\
With the studies i have no time to keep trying, so the next try will be tomorrow morning...
Thanks anyway for the patience
Offline
https://bbs.archlinux.org/viewtopic.php … 5#p1696875 covers resolving the same issue without using chroot.
Only the modules needed to mount the root filesystem are included in the initrd by default. Modules for other filesystem types are stored in /usr/lib/modules but have the wrong version because of the kernel upgrade.
Offline
inside the cache folder the most recent kernel il 4.10.2-1, now i have 4.10.3 (showed by pacman -Q linux). i can try do downgrade, this should allow me to mount /boot properly?
Also, if this doesn't work, can you explain me how to chroot? I'm a bit confused about it ._.
Last edited by momokrono (2017-03-20 18:05:30)
Offline
Offline
so
arch-chroot /mnt
mount /dev/sda1 /mnt/boot
exit?
I know this can be a stupid question, but i've already read the wiki page without getting anything (don't flame me :c)
Offline
The wiki page explains that when you are in the chroot you are supposed to do something.
Offline
so
arch-chroot /mnt mount /dev/sda1 /mnt/boot exit?
mount /dev/sda1 /mnt/bootShould come before `arch-chroot`
When you are in the chroot then please provide the outputs trilby requested in post #6
Offline
as i wrote in post #7 trying to mount /dev/sda1 to /mnt/boot i get
mount: unknown filesystem type 'vfat'and online i've found that usually is used ext4 instead of it, but i don't know why for months i did not have problems. And all this happend after the first update after i've installed windows in a completely separate hdd. :\
Offline
Is that error mounting sda1 from within the chroot or the iso system. The iso system should definitely be able to mount vfat - this is one reason why loqs suggested a chroot in post 10 and clarified that the partition should be mounted *before* chrooting in post 13.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I've booted from a live iso, mounted sda3 to /mnt and sda1 to /mnt/boot.
chrooting in, mount showed sda3 mounted in / and sda1 to /boot, so it seems fine for now.i'm running the command from post six inside chroot, when i receive the "it's all fine" i'll reboot into my sistem.
pacman -Qi linux:
Name: linux
Version : 4.10.3-1
Description : the linux kernel and modules
Architecture :x86_64
url : https://www.kernel.org
licenses: gpl2
groups: base
Provides: none
depends on : coreutils linux-firmware kmod mkinitcpio>=0.7
optional deps : crda
required by : none
optional for : none
conflict with : none
replaces : none
installed size : 79.90 MB
Packager : Tobias Powalowski
build date : wed 15 march 2017 09:18:55 am cet
install date : sat 18 march 2017 07:45:44 pm cet
install reason : explicitly installed
install script : yes
validated by : sha-256 sumls /urs/lib/modules
4.10.3-1-arch 4.9.6-1-arch extramodules-4.10-archfile /boot/vmlinuz-linux (i think you typed a speace instead of "/", also because file returned an error with it)
Linux kernel x86 boot executable bzImage, version 4.10.3-1-arch (build..@tobias) #1 smp preempt wed mar 15 ...2017, RO-rootFS, swap_dev 0x4, Normal vgalsinitcpio /boot/initframfs-linux.img | grep ARCH$
usr/lib/modules/4.10.3-1-archcat /etc/fstab
#/dev/sda3
uuid=string / ext4 rw,relatime,data=ordered 0 1
#/dev/sda1
uuid=string /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
#/dev/sda2
uuid=string none swap defaults 0 0That's all.
Offline
ok, so that's what i did:
-booted in live
-mounted sda3 to /mnt
-mounted sda1 to /mnt/boot
-swapon sda2
-chroot in /mnt
-checked everything
-genfstab
-cat fstab, it seems ok
-reinstalled Linux 4.10.3 from pacman cache
-exit and reboot.
The system boots correctly, i'm now able to log in with gnome with no problems, thanks everyone!
But now as i boot the first thing that appears is
[ERROR] Failed to load kernel modules
then only OK and the system boots normally
The second time i've rebooted i got an endless wall of errors, in which the only thing i can see is "acpi error <something>", and after a while, minutes, i was at le log in screen.
So now my questions are:
-Load kernel modules
-acpi error
-what do i have to do with windows in order to not have this problem again? cause i think it's its fault ._.
Should i mark this topic as solved or there is some other work to do? And for the previous questions should i open a new thread for each?
Thanks anyway!
Last edited by momokrono (2017-03-21 16:34:30)
Offline
For the acpi errors https://bbs.archlinux.org/viewtopic.php?id=222409
For other errors check the journal. For instance (should be relevant to failure to load kernel modules)
$ journalctl -b --unit systemd-modules-load.serviceOffline
This is a separate issue. Mark this thread as solved and follow loqs advice.
Offline
Nice, thanks again!
Offline