Unable to boot into EOS

Hi,

I am running eos under virtualbox on a windows host. Last night I resized my eos hard disk to increase the size and then attempted to boot into eos with the intention of using gparted to make use of the available space.

However I was unable to make it past the (grub?) screen where I normally either choose between linux or linux-lts. Choosing any option here resulted in a message along the lines of “vmlinuz not found…load the kernel first…”. Sorry to be vague, but in trying to fix since then the boot process puts me straight into the grub shell.

What I have been trying to do since the failure is chroot into my install using a live cd and following some of the advice on this site. However what I am getting currently is:

Boot into live cd

[liveuser@eos-2022.12.17 ~]$ sudo lsblk -f
NAME   FSTYPE   FSVER          LABEL      UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0  squashfs 4.0                                                                  0   100% /run/archiso/airootfs
sda                                                                                           
├─sda1 btrfs                              8b6c919f-f3db-43f7-a7c2-ab3adb9a8426                
└─sda2 swap     1                         2c2d243d-ac5f-4240-a5dc-ec5515c38af0                
sr0    iso9660  Joliet Extensi EOS_202212 2022-12-17-15-01-34-00                     0   100% /run/archiso/bootmnt
[liveuser@eos-2022.12.17 ~]$

[liveuser@eos-2022.12.17 ~]$ sudo mount -o subvol=@ /dev/sda1 /mnt

[liveuser@eos-2022.12.17 ~]$ sudo arch-chroot /mnt

[root@EndeavourOS /]# pacman -Syu
:: Synchronizing package databases...
 endeavouros is up to date
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 sublime-text is up to date
error: failed retrieving file 'community.db' from lon.mirror.rackspace.com : Failure writing output to destination
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

warning: insufficient columns available for table display
Packages (96) appstream-0.16.0-1  appstream-qt-0.16.0-1  elementary-icon-theme-7.2.0-1  linux-lts-5.15.90-1
              linux-lts-headers-5.15.90-1  lsof-4.98.0-1  luajit-2.1.0.beta3.r467.gd0e88930-1  make-4.4-1
              man-db-2.11.2-1  man-pages-6.02-1  modemmanager-1.20.4-1  modemmanager-qt-5.102.0-1  mpv-1:0.35.0-5
              nano-7.2-1  ncdu-2.2.2-2  net-tools-2.10-2  netctl-1.28-2  networkmanager-1.40.12-1
              networkmanager-qt-5.102.0-1  nilfs-utils-2.2.9-2  nodejs-19.4.0-1  okular-22.12.1-1
              pacman-contrib-1.8.2-1  pandoc-2.19.2-55  parallel-20230122-1  perl-alien-build-2.77-1
              perl-io-socket-ssl-2.079-1  pipewire-pulse-1:0.3.64-1  plasma-desktop-5.26.5-1
              plasma-disks-5.26.5-1  plasma-nm-5.26.5-1  plasma-pa-5.26.5-1  polkit-kde-agent-5.26.5-1
              poppler-glib-23.01.0-3  powerdevil-5.26.5-1  pptpclient-1.10.0-3  print-manager-22.12.1-1
              python-astroid-2.13.3-1  python-cachetools-5.3.0-1  python-certifi-2022.12.07-1
              python-cheroot-9.0.0-3  python-cryptography-39.0.0-1  python-dulwich-0.21.2-1
              python-fastjsonschema-2.16.2-1  python-google-auth-2.16.0-1
              python-googleapis-common-protos-1.58.0-1  python-grpcio-1.51.1-3  python-importlib-metadata-5.0.0-2
              python-iniconfig-2.0.0-1  python-lazy-object-proxy-1.9.0-1  python-logutils-0.3.5-11
              python-numpy-1.24.0-1  python-pbr-5.11.1-1  python-platformdirs-2.6.2-1  python-pooch-1.6.0-3
              python-prettytable-3.6.0-1  python-pydantic-1.10.4-1  python-pylint-2.15.10-1
              python-pyopenssl-23.0.0-1  python-pytest-7.2.1-1  python-scipy-1.10.0-1
              python-sphinx-alabaster-theme-0.7.13-1  python-sphinxcontrib-applehelp-1.0.4-1
              python-tempora-5.2.0-1  python-termcolor-2.2.0-1  python-trove-classifiers-2023.1.20-1
              python-validate-pyproject-0.11-1  reiserfsprogs-3.6.27-4  samba-4.17.4-4  sddm-kcm-5.26.5-1
              sof-firmware-2.2.4-1  spectacle-22.12.1-1  sudo-1.9.12.p2-1  texinfo-7.0.2-1  thunar-4.18.3-1
              unrar-1:6.2.5-1  valgrind-3.19.0-6  vim-9.0.1182-1  vim-runtime-9.0.1182-1
              virtualbox-guest-utils-7.0.6-1  vivaldi-5.6.2867.62-1  welcome-3.46-1  whois-5.5.15-1  wine-8.0-1
              xdg-desktop-portal-kde-5.26.5-1  xf86-video-vmware-13.4.0-1  xfce4-datetime-plugin-0.8.3-1
              xfce4-notifyd-0.7.2-1  xfce4-panel-4.18.1-1  xfce4-screenshooter-1.10.3-1
              xfce4-whiskermenu-plugin-2.7.2-1  xfdesktop-4.18.1-1  xreader-3.6.3-1  xterm-378-1  yay-11.3.2-1
              zenity-3.44.0-1

Total Download Size:     16.91 MiB
Total Installed Size:  1849.68 MiB
Net Upgrade Size:         6.52 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 xfdesktop-4.18.1-1-x86_64.pkg.tar.zst failed to download
 modemmanager-1.20.4-1-x86_64.pkg.tar.zst failed to download
 man-db-2.11.2-1-x86_64.pkg.tar.zst failed to download
 xreader-3.6.3-1-x86_64.pkg.tar.zst failed to download
 python-pylint-2.15.10-1-any.pkg.tar.zst failed to download
 Total ( 5/67)                             16.9 MiB  34.5 MiB/s 00:00 [--------------------------------------] 100%
error: failed retrieving file 'xfdesktop-4.18.1-1-x86_64.pkg.tar.zst' from lon.mirror.rackspace.com : Failure writing output to destination
error: failed retrieving file 'modemmanager-1.20.4-1-x86_64.pkg.tar.zst' from lon.mirror.rackspace.com : Failure writing output to destination
warning: too many errors from lon.mirror.rackspace.com, skipping for the remainder of this transaction
error: failed retrieving file 'man-db-2.11.2-1-x86_64.pkg.tar.zst' from lon.mirror.rackspace.com : Failure writing output to destination
error: failed retrieving file 'xreader-3.6.3-1-x86_64.pkg.tar.zst' from lon.mirror.rackspace.com : Failure writing output to destination
error: failed retrieving file 'python-pylint-2.15.10-1-any.pkg.tar.zst' from lon.mirror.rackspace.com : Failure writing output to destination
error: failed retrieving file 'xfdesktop-4.18.1-1-x86_64.pkg.tar.zst' from mirrors.ukfast.co.uk : HTTP server doesn't seem to support byte ranges. Cannot resume.
error: failed retrieving file 'modemmanager-1.20.4-1-x86_64.pkg.tar.zst' from mirrors.ukfast.co.uk : HTTP server doesn't seem to support byte ranges. Cannot resume.
error: failed retrieving file 'man-db-2.11.2-1-x86_64.pkg.tar.zst' from mirrors.ukfast.co.uk : HTTP server doesn't seem to support byte ranges. Cannot resume.
warning: too many errors from mirrors.ukfast.co.uk, skipping for the remainder of this transaction
error: failed retrieving file 'xreader-3.6.3-1-x86_64.pkg.tar.zst' from mirrors.ukfast.co.uk : HTTP server doesn't seem to support byte ranges. Cannot resume.
error: failed retrieving file 'python-pylint-2.15.10-1-any.pkg.tar.zst' from mirrors.ukfast.co.uk : The requested URL returned error: 404
error: failed retrieving file 'man-db-2.11.2-1-x86_64.pkg.tar.zst' from mirrors.gethosted.online : HTTP server doesn't seem to support byte ranges. Cannot resume.
error: failed retrieving file 'modemmanager-1.20.4-1-x86_64.pkg.tar.zst' from mirrors.gethosted.online : HTTP server doesn't seem to support byte ranges. Cannot resume.
error: failed retrieving file 'python-pylint-2.15.10-1-any.pkg.tar.zst' from mirrors.gethosted.online : The requested URL returned error: 404
warning: too many errors from mirrors.gethosted.online, skipping for the remainder of this transaction
error: failed retrieving file 'xfdesktop-4.18.1-1-x86_64.pkg.tar.zst' from mirrors.gethosted.online : HTTP server doesn't seem to support byte ranges. Cannot resume.
error: failed retrieving file 'xreader-3.6.3-1-x86_64.pkg.tar.zst' from mirrors.gethosted.online : HTTP server doesn't seem to support byte ranges. Cannot resume.
error: failed retrieving file 'modemmanager-1.20.4-1-x86_64.pkg.tar.zst' from mirror.cov.ukservers.com : HTTP server doesn't seem to support byte ranges. Cannot resume.
error: failed retrieving file 'xfdesktop-4.18.1-1-x86_64.pkg.tar.zst' from mirror.cov.ukservers.com : HTTP server doesn't seem to support byte ranges. Cannot resume.
error: failed retrieving file 'python-pylint-2.15.10-1-any.pkg.tar.zst' from mirror.cov.ukservers.com : The requested URL returned error: 404
warning: too many errors from mirror.cov.ukservers.com, skipping for the remainder of this transaction
error: failed retrieving file 'xreader-3.6.3-1-x86_64.pkg.tar.zst' from mirror.cov.ukservers.com : HTTP server doesn't seem to support byte ranges. Cannot resume.
error: failed retrieving file 'man-db-2.11.2-1-x86_64.pkg.tar.zst' from mirror.cov.ukservers.com : HTTP server doesn't seem to support byte ranges. Cannot resume.
warning: failed to retrieve some files
error: failed to commit transaction (download library error)
Errors occurred, no packages were upgraded.
[root@EndeavourOS /]# mkinitcpio -P
==> ERROR: No presets found in /etc/mkinitcpio.d
[root@EndeavourOS /]# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
cat: write error: No space left on device
[root@EndeavourOS /]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        31G   29G     0 100% /
udev            1.9G     0  1.9G   0% /dev
shm             2.0G     0  2.0G   0% /dev/shm
run             2.0G     0  2.0G   0% /run
tmp             2.0G     0  2.0G   0% /tmp
airootfs         10G  1.9M   10G   1% /etc/resolv.conf

Am a bit surprised to see the disk is full as was expecting it to have a few gb free at least.

And that’s where I’m at. Would greatly appreciate a nudge in the right direction.

Can you explain the specific steps you took when you “resized my eos hard disk to increase the size”?

Shutdown virtual machine. In virtualbox, File / Virtual Media Manager. Select EOS vdi file in list of hard disks then increased size from 32G to 36G.

It is possible that modifying the disk changed the UUIDs.

Compare the UUIDs above in your lsblk output to the UUIDs in your /etc/fstab and see if they match.

You are also going to have to free up a little space on your root disk.

1 Like

UUIDs match. Have freed up a few GB but hasn’t made an appreciable difference.

Can you share a picture of the error?

Here’s where the boot process currently dumps me.

image

We need to see the error that occurs before that happens.

Sorry to be vague, but in trying to fix since then the boot process puts me straight into the grub shell.

You need to do this with an installer Live ISO, and use gparted to expand the guest’s partition, while the disk is offline. You cannot boot and modify the running/online disk.

From VBox User Manual, on --resize :

Note that using this option only changes the capacity of the drive. So, you might need to
subsequently use a partition management tool in the guest to adjust the main partition to
fill the drive.

Thanks @petsam but I fear I’m a long way from that point right now!

1 Like

@petsam I’ve just done this successfully with a new EOS VM. Steps carried out:

  1. Create new EOS VM
  2. Shutdown EOS VM
  3. Increase size of EOS VM HDD in virtualbox
  4. Booted into EOS VM by way of EOS live cd
  5. Use gparted to make use of available HDD space created in 3.
  6. Shutdown
  7. Remove live CD from VM drive
  8. Boot EOS VM

And all was well. The only difference between what I did here and what gave me the original problem was that instead of booting into the live CD straight after resizing the HDD in vbox I tried to boot as normal into EOS. So either this caused a problem, or something else.

Should it be possible to boot into a regular vbox VM after resizing the VM disk but not doing the gparted thing?

It is what the User Manual says.