You are not logged in.

#1 2017-06-04 05:04:02

perqin
Member
Registered: 2017-06-02
Posts: 8

[SOLVED] Cannot boot arch and /boot/vmlinuz-linux is missing

Today my laptop with Windows 10 and Arch Linux dual-boot suddenly failed to boot. I use a archiso USB stick to boot and chroot to my Arch Linux, and finds that /boot/vmlinuz-linux is missing. The content inside /boot is:

# ls /boot
total 29398
drwxr-xr-x 5 root root     1024 May 15 14:32 EFI
drwxr-xr-x 6 root root     1024 Jun  4 12:26 grub
-rwxr-xr-x 1 root root 23105011 Jun  1 14:39 initramfs-linux-fallback.img
-rwxr-xr-x 1 root root  6005940 Jun  1 14:39 initramfs-linux.img
-rwxr-xr-x 1 root root   987648 May 13 17:38 intel-ucode.img
drwxr-xr-x 2 root root     1024 May 13 10:39 System Volume Information

I google around and try reinstalling "linux" package (after arch-chroot into Arch Linux), but still gets error:

...
(1/1) checking available disk space
warning: could not get file information for boot/vmlinuz-linux
:: Processing package changes...
(1/1) reinstalling linux
warning: warning given when extracting /boot/vmlinuz-linux (Could not unlink)
>>> Updating module dependencies. Please wait ...
:: Running post-transaction hooks...
(1/2) Update linux initcpios
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> ERROR: speccified kernel image does not exist: '/boot/vmlinuz-linux'
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> ERROR: speccified kernel image does not exist: '/boot/vmlinuz-linux'
error: command failed to execute correctly
(2/2) Arming ConditionNeedsUpdate...

Now I am not able to repair it. How to reinstall "linux" package?

By the way, is there any way to post error output online? I type the error messages above by hand and it is painful...

Last edited by perqin (2017-06-04 06:07:37)

Offline

#2 2017-06-04 05:08:25

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

Re: [SOLVED] Cannot boot arch and /boot/vmlinuz-linux is missing

You can paste error messages with a utility: https://wiki.archlinux.org/index.php/Li … in_clients

When you do, paste the full output, not the truncated version that you have above: https://bbs.archlinux.org/viewtopic.php?id=57855


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-06-04 06:07:23

perqin
Member
Registered: 2017-06-02
Posts: 8

Re: [SOLVED] Cannot boot arch and /boot/vmlinuz-linux is missing

Don't know what happens, but after rebooting and retry reinstalling "linux" package, it succeeds.

resolving dependencies...
looking for conflicting packages...

Packages (1) linux-4.11.3-1

Total Installed Size:  80.49 MiB
Net Upgrade Size:       0.00 MiB

checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
reinstalling linux...
>>> Updating module dependencies. Please wait ...
:: Running post-transaction hooks...
(1/2) Updating linux initcpios
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.11.3-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 4.11.3-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
(2/2) Arming ConditionNeedsUpdate...

Offline

Board footer

Powered by FluxBB