If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
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.
How to fix this error please ?
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.
[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
Thank you so much.
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.
[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
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: