Hey!
That's fantastic news!
Have a great week ahead :-)
Kernel problem
Collapse
X
-
Should exist, but we'd need to check this, as something else may be playing here, for example, the EFI folders that should exist assuming you're running EFI et al.
Leave a comment:
-
How to fix this error please ?Code:grub2-set-default 1 /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such fileor directory.
Leave a comment:
-
Thank you so much.Code:[root@omega ~]# grub2-mkconfig -o /etc/grub2.cfg Generating grub configuration file ... /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such fileor directory. [root@omega ~]# grub2-mkconfig -o /etc/grub2-efi.cfg Generating grub configuration file ... /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such fileor directory. [root@omega ~]# grub2-mkconfig -o /boot/grub2/grub.cfg Generating grub configuration file ... /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such fileor directory. [root@omega ~]# grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg /sbin/grub2-mkconfig: line 274: /boot/efi/EFI/centos/grub.cfg.new: No such file or directory [root@omega ~]#
Code:[root@omega ~]# rsync -avP /boot/efi/EFI/centos/ /boot/efi/EFI/almalinux/ sending incremental file list rsync: change_dir "/boot/efi/EFI/centos" failed: No such file or directory (2) sent 20 bytes received 12 bytes 64.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3] [root@omega ~]# grubby --set-default /boot/vmlinuz-4.18.0-477.13.1.lve.1.el8.x86_64 grep: /boot/grub2/grubenv: No such file or directory grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such file or directory. The default is /boot/loader/entries/a116afcdb59d4e0ebff2720230c2dbc5-4.18.0-477.13.1.lve.1.el8.x86_64.conf with index 2 and kernel /boot/vmlinuz-4.18.0-477.13.1.lve.1.el8.x86_64 [root@omega ~]# cp -rp /boot/efi/EFI/almalinux/grubenv /boot/efi/EFI/centos/grubenv cp: cannot stat '/boot/efi/EFI/almalinux/grubenv': No such file or directory
Is there any chance you can open a ticket with us via our ticket support system? We'd like to investigate this further and get this sorted for you today.
Support system: https://cloudlinux.zendesk.com/hc/en-us/requests/new
Cheers!Leave a comment:
-
Code:[root@omega ~]# grub2-mkconfig -o /etc/grub2.cfg Generating grub configuration file ... /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such fileor directory. [root@omega ~]# grub2-mkconfig -o /etc/grub2-efi.cfg Generating grub configuration file ... /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such fileor directory. [root@omega ~]# grub2-mkconfig -o /boot/grub2/grub.cfg Generating grub configuration file ... /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such fileor directory. [root@omega ~]# grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg /sbin/grub2-mkconfig: line 274: /boot/efi/EFI/centos/grub.cfg.new: No such file or directory [root@omega ~]#
Code:[root@omega ~]# rsync -avP /boot/efi/EFI/centos/ /boot/efi/EFI/almalinux/ sending incremental file list rsync: change_dir "/boot/efi/EFI/centos" failed: No such file or directory (2) sent 20 bytes received 12 bytes 64.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3] [root@omega ~]# grubby --set-default /boot/vmlinuz-4.18.0-477.13.1.lve.1.el8.x86_64 grep: /boot/grub2/grubenv: No such file or directory grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such file or directory. The default is /boot/loader/entries/a116afcdb59d4e0ebff2720230c2dbc5-4.18.0-477.13.1.lve.1.el8.x86_64.conf with index 2 and kernel /boot/vmlinuz-4.18.0-477.13.1.lve.1.el8.x86_64 [root@omega ~]# cp -rp /boot/efi/EFI/almalinux/grubenv /boot/efi/EFI/centos/grubenv cp: cannot stat '/boot/efi/EFI/almalinux/grubenv': No such file or directory
Leave a comment:
-
Hmhm, I see.In another server this commands fixed the problem:
But in this new SSD server it doesn't work for me.Code:mount /dev/sdd1 /mnt/ cp /boot/efi/EFI/centos/grub.cfg /mnt/EFI/centos/ mount /dev/sdb1 /mnt/ cp /boot/efi/EFI/centos/grub.cfg /mnt/EFI/centos/ mount /dev/sda1 /mnt/ cp /boot/efi/EFI/centos/grub.cfg /mnt/EFI/centos/
Can you post the full errors here, please, for the commands we provided you?Leave a comment:
-
In another server this commands fixed the problem:
But in this new SSD server it doesn't work for me.Code:mount /dev/sdd1 /mnt/ cp /boot/efi/EFI/centos/grub.cfg /mnt/EFI/centos/ mount /dev/sdb1 /mnt/ cp /boot/efi/EFI/centos/grub.cfg /mnt/EFI/centos/ mount /dev/sda1 /mnt/ cp /boot/efi/EFI/centos/grub.cfg /mnt/EFI/centos/
Leave a comment:
-
Do ignore that error for now, have you run all the commands I provided you? If so, have you tried to reboot the server?Hi,
Code:uname -r 4.18.0-477.15.1.el8_8.x86_64
Code:rpm -qa| grep kernel kernel-modules-4.18.0-477.13.1.lve.1.el8.x86_64 kernel-4.18.0-477.15.1.el8_8.x86_64 kernel-4.18.0-477.13.1.lve.1.el8.x86_64 kernel-debug-modules-4.18.0-477.13.1.lve.1.el8.x86_64 kernel-core-4.18.0-477.15.1.el8_8.x86_64 kernel-tools-libs-4.18.0-477.13.1.lve.1.el8.x86_64 kernel-modules-4.18.0-477.15.1.el8_8.x86_64 kernel-headers-4.18.0-477.13.1.lve.1.el8.x86_64 kernel-core-4.18.0-477.13.1.lve.1.el8.x86_64 kernel-tools-4.18.0-477.13.1.lve.1.el8.x86_64 kernel-modules-4.18.0-477.10.1.el8_8.x86_64 kernel-4.18.0-477.10.1.el8_8.x86_64 kernel-debug-core-4.18.0-477.13.1.lve.1.el8.x86_64 kernel-core-4.18.0-477.10.1.el8_8.x86_64
Code:grub2-mkconfig -o /etc/grub2.cfg Generating grub configuration file ... /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such fileor directory.
Leave a comment:
-
Hi,
Code:uname -r 4.18.0-477.15.1.el8_8.x86_64
Code:rpm -qa| grep kernel kernel-modules-4.18.0-477.13.1.lve.1.el8.x86_64 kernel-4.18.0-477.15.1.el8_8.x86_64 kernel-4.18.0-477.13.1.lve.1.el8.x86_64 kernel-debug-modules-4.18.0-477.13.1.lve.1.el8.x86_64 kernel-core-4.18.0-477.15.1.el8_8.x86_64 kernel-tools-libs-4.18.0-477.13.1.lve.1.el8.x86_64 kernel-modules-4.18.0-477.15.1.el8_8.x86_64 kernel-headers-4.18.0-477.13.1.lve.1.el8.x86_64 kernel-core-4.18.0-477.13.1.lve.1.el8.x86_64 kernel-tools-4.18.0-477.13.1.lve.1.el8.x86_64 kernel-modules-4.18.0-477.10.1.el8_8.x86_64 kernel-4.18.0-477.10.1.el8_8.x86_64 kernel-debug-core-4.18.0-477.13.1.lve.1.el8.x86_64 kernel-core-4.18.0-477.10.1.el8_8.x86_64
Code:grub2-mkconfig -o /etc/grub2.cfg Generating grub configuration file ... /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such fileor directory.
Leave a comment:
-
Hey there!
Can you confirm the kernel that it's loading? It's loading .15.1 instead of 13.2, I bet, are you able to run rpm -qa|grep kernel as well?
To sum it up, here's what I need you to run:
Code:uname -r rpm -qa| grep kernel
And in order to attempt to fix it:
Do give it a try.Code:grub2-mkconfig -o /etc/grub2.cfg grub2-mkconfig -o /etc/grub2-efi.cfg grub2-mkconfig -o /boot/grub2/grub.cfg grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg rsync -avP /boot/efi/EFI/centos/ /boot/efi/EFI/almalinux/ grubby --set-default /boot/vmlinuz-4.18.0-477.13.1.lve.1.el8.x86_64 cp -rp /boot/efi/EFI/almalinux/grubenv /boot/efi/EFI/centos/grubenv
Cheers!Last edited by Miguel Varela; 08-04-2023, 01:05 PM.Leave a comment:
-
/dev/md2 /boot xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,n oquota 0 0
/dev/nvme0n1p1 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,ioc harset=ascii,shortname=mixed,errors=remount-ro 0 0Leave a comment:
-
grep -i efi /etc/fstab
/dev/nvme0n1p1 /boot/efi vfat defaults 0 1Leave a comment:
Leave a comment: