You are not logged in.

#26 2026-06-14 19:39:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,349

Re: Change root partition to another

seth wrote:

you might simply have updated the main system but not the copy (so the kernel installed on the new disk is not the one currently booting)

Offline

#27 2026-06-15 19:45:45

ArchMisspelled
Member
Registered: 2026-06-12
Posts: 17

Re: Change root partition to another

Still

error: fs/fshelp.c:find_file:260:file `/vmlinuz-linux-zen` not found.

Press any key to continue...

when booting..

Linux zen version in broken Arch Linux Rolling (with arch-chroot)

[root@archie-machine /]# pacman -Qikk linux-zen
Name            : linux-zen
Version         : 7.0.11.zen1-1
Description     : The Linux ZEN kernel and modules
Architecture    : x86_64
URL             : https://github.com/zen-kernel/zen-kernel
Licenses        : GPL-2.0-only
Groups          : None
Provides        : KSMBD-MODULE  NTSYNC-MODULE  VHBA-MODULE  VIRTUALBOX-GUEST-MODULES  WIREGUARD-MODULE
Depends On      : coreutils  initramfs  kmod
Optional Deps   : linux-zen-headers: headers and scripts for building modules [installed]
                  linux-firmware: firmware images needed for some devices [installed]
                  scx-scheds: to use sched-ext schedulers
                  wireless-regdb: to set the correct wireless channels of your country
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 152.90 MiB
Packager        : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date      : Tue 02 Jun 2026 08:26:42 PM CEST
Install Date    : Sun 14 Jun 2026 09:51:07 PM CEST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

linux-zen: 7714 total files, 0 altered files

Linux zen version in working partition

Name            : linux-zen
Version         : 7.0.11.zen1-1
Description     : The Linux ZEN kernel and modules
Architecture    : x86_64
URL             : https://github.com/zen-kernel/zen-kernel
Licenses        : GPL-2.0-only
Groups          : None
Provides        : KSMBD-MODULE  NTSYNC-MODULE  VHBA-MODULE  VIRTUALBOX-GUEST-MODULES  WIREGUARD-MODULE
Depends On      : coreutils  initramfs  kmod
Optional Deps   : linux-zen-headers: headers and scripts for building modules [installed]
                  linux-firmware: firmware images needed for some devices [installed]
                  scx-scheds: to use sched-ext schedulers
                  wireless-regdb: to set the correct wireless channels of your country
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 152.90 MiB
Packager        : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date      : Tue 02 Jun 2026 08:26:42 PM CEST
Install Date    : Sun 14 Jun 2026 10:19:59 PM CEST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

linux-zen: 7714 total files, 0 altered files

grub.cfg

[archie@archie-machine ~]$ cat /efi/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 [ "${env_block}" ] ; then
  set env_block="(${root})${env_block}"
  export env_block
  load_env -f "${env_block}"
fi

if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   if [ "${env_block}" ] ; then
     save_env -f "${env_block}" next_entry
   else
     save_env next_entry
   fi
   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}"
    if [ "${env_block}" ] ; then
      save_env -f "${env_block}" saved_entry
    else
      save_env saved_entry
    fi

  fi
}

function load_video {
  if [ x$grub_platform = xefi ]; then
    insmod efi_gop
    insmod efi_uga
  elif [ 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
search --no-floppy --fs-uuid --set=root bb492f3a-d22a-41df-aa35-592f25c26981
    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=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=10
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-bb492f3a-d22a-41df-aa35-592f25c26981' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod fat
        search --no-floppy --fs-uuid --set=root 18E8-DC21
        echo    'Loading Linux linux-zen ...'
        linux   /vmlinuz-linux-zen root=/dev/nvme0n1p5 rw  loglevel=3 quiet
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-bb492f3a-d22a-41df-aa35-592f25c26981' {
        menuentry 'Arch Linux, with Linux linux-zen' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-zen-advanced-bb492f3a-d22a-41df-aa35-592f25c26981' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod fat
                search --no-floppy --fs-uuid --set=root 18E8-DC21
                echo    'Loading Linux linux-zen ...'
                linux   /vmlinuz-linux-zen root=/dev/nvme0n1p5 rw  loglevel=3 quiet
        }
        menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-bb492f3a-d22a-41df-aa35-592f25c26981' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod fat
                search --no-floppy --fs-uuid --set=root 18E8-DC21
                echo    'Loading Linux linux ...'
                linux   /vmlinuz-linux root=/dev/nvme0n1p5 rw  loglevel=3 quiet
        }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/15_ostree ###
### END /etc/grub.d/15_ostree ###

### BEGIN /etc/grub.d/15_uki ###
if [ "$grub_platform" = "efi" ]; then
  uki
fi
### END /etc/grub.d/15_uki ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
  insmod bli
fi
### END /etc/grub.d/25_bli ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Arch Linux (rolling) (on /dev/nvme0n1p2) POC' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-11383ee4-5546-4f21-9a5c-0f57a741f7d0' {
        insmod gzio
        insmod part_gpt
        insmod fat
        search --no-floppy --fs-uuid --set=root 18E8-40DD
        linux /boot/vmlinuz-linux-zen root=/dev/nvme0n1p2
}
submenu 'Advanced options for Arch Linux (rolling) (on /dev/nvme0n1p2)' $menuentry_id_option 'osprober-gnulinux-advanced-11383ee4-5546-4f21-9a5c-0f57a741f7d0' {
        menuentry 'Arch Linux (rolling) (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-linux-zen--11383ee4-5546-4f21-9a5c-0f57a741f7d0' {
                insmod part_gpt
                insmod fat
                search --no-floppy --fs-uuid --set=root 18E8-DC21
                linux /vmlinuz-linux-zen root=/dev/nvme0n1p2
        }
        menuentry 'Arch Linux (rolling) (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-linux--11383ee4-5546-4f21-9a5c-0f57a741f7d0' {
                insmod part_gpt
                insmod fat
                search --no-floppy --fs-uuid --set=root 18E8-DC21
                linux /vmlinuz-linux root=/dev/nvme0n1p2
        }
}


### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
        fwsetup --is-supported
        if [ "$?" = 0 ]; then
                menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
                        fwsetup
                }
        fi
fi
### END /etc/grub.d/30_uefi-firmware ###

### 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 ###

Partitions

[archie@archie-machine ~]$ lsblk -f
NAME        FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
zram0       swap   1     zram0 5fc113ef-0fbd-4429-b94b-a576684834f4                [SWAP]
nvme0n1                                                                            
├─nvme0n1p1 vfat   FAT32       C284-EBCD                                           
├─nvme0n1p2 ext4   1.0         11383ee4-5546-4f21-9a5c-0f57a741f7d0  199.2G    46% /home/archie/temporary_mount_point
├─nvme0n1p3 ext4   1.0         34e03703-08aa-4e8a-9e24-df76cff7d2e7                
├─nvme0n1p4 vfat   FAT32       BAFE-09EF                                           
├─nvme0n1p5 ext4   1.0         bb492f3a-d22a-41df-aa35-592f25c26981   17.2G    83% /home/archie/temporary_mount_point/etc/resolv.conf
│                                                                                  /
├─nvme0n1p6 vfat   FAT32       18E8-DC21                             964.6M     3% /boot
├─nvme0n1p7 vfat   FAT32       EE02-EF52                                           
└─nvme0n1p8 vfat   FAT32       18E8-40DD                             860.5M    14% /efi

Offline

#28 2026-06-15 20:15:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,349

Re: Change root partition to another

Oh, restore "search --no-floppy --fs-uuid --set=root 18E8-DC21" - the question is whether that will just kick you back to the crash in https://bbs.archlinux.org/viewtopic.php … 0#p2301190

Offline

#29 2026-06-16 11:33:33

ArchMisspelled
Member
Registered: 2026-06-12
Posts: 17

Re: Change root partition to another

It did, same error below the QR code.

Offline

#30 2026-06-16 16:07:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,349

Re: Change root partition to another

So the same kernel booting from the same partition cannot find the drive that partition is supposed to be on?
disnuts…

You didn't end up somehow cloning the pseudo FS (/dev, /proc, /sys) onto the new root partition?

Offline

#31 2026-06-16 18:43:51

ArchMisspelled
Member
Registered: 2026-06-12
Posts: 17

Re: Change root partition to another

I think I did. Which should I delete? I have already gotten rid of dev, proc and sys how you mentioned.

[archie@archie-machine 11383ee4-5546-4f21-9a5c-0f57a741f7d0]$ ls
bin  boot  efi  etc  home  lib  lib64  lost+found  mnt  opt  root  run  sbin  srv  swapfile  tmp  usr  var

(every entry is a directory except for "swapfile" which is a file)

Offline

#32 2026-06-16 20:01:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,349

Re: Change root partition to another

You're still required to have those directories, they just should be empty (unless you arch-chroot there)
=> Reinstall the "filesystem" package, some of those directories are btw. supposed to be symlinks, are they?
Speaking of which, it's kinda like a windows approach but it might help to re-install all packages

Offline

Board footer

Powered by FluxBB