ERROR: specified kernel image does not exist: `/boot/vmlinuz-linux`The boot process dumps out into a maintenance prompt, and power may even cycle off. Not that it matters to what comes next, but the likely explanation is the internet connection was interrupted during the pacman update, possibly in addition to a power interruption.
1 hour with install disk, 2-3 hours if create disk
In short:- boot with recovery disk
- delete /var/lib/pacman/db.lck
- fsuck the drive
- rerun pacman -Syu, mkinitcpio, and grub
- mkinitcpio -p linux will likely be unable to locate vmlinuz unless one reinstalls the "linux" package, eg pacman -S linux.
- one's printer will likely have to be reinstalled due to a "corrupted filter" b/c it won't match the new modules.
burn the CD
$ cdrecord -scanbus
$ cdrecord -v -dao -eject dev=1,0,0 file.iso
boot it and turn on the swap
# lsblock -l
# swapon /dev/sdb [or whichever]
# free -m
chroot
Typically we chroot and do a base install from the disk. But this is not an install. We want to complete a pacman -Syu inside our already existing installation. The mounting is similar, and is the key for proper paths. The key is not to mkdir /mnt, but simply to mount to it as if it already exists. Most people mount to "mnt", however, one could use a different directory name.# mount -rw -t ext4 /dev/sda1 /mntnow the entire drive is mounted in a virtual folder called "/mnt". It doesn't exist, but we can chroot into it and see the drive.
# arch-chroot /mnt
clear pacman cache
Users can always run pacman -Sc, but if a person is willing to install the pacman-contrib package (100Kb), there's a script called paccache that will clear all but the most recent 3 updates (in case a person needs to downgrade some package).
$ du -sh /var/cache/pacman/pkg/
14G /var/cache/pacman/pkg/
# paccache -r
==> finished: 870 packages removed (disk space saved: 8.92 GiB)
$ du -sh /var/cache/pacman/pkg/
4.5G /var/cache/pacman/pkg/
No comments:
Post a Comment