The context
I have a dual-boot Ubuntu (Jammy Jellfish)/Windows laptop (Dell XPS 9550). My /boot
partition was too small to support an update, so I used GParted to attempt to resize it. However, I ran into a GParted bug around resizing FAT partitions, so instead used the workaround approach of deleting the partition, formatting it as Ext4, resizing it, and then reformatting it as FAT and restoring my /boot
files from a backup.
The problem
Here's where the problem occurs: every time I try to restore my files from the backup, there are four files:
vmlinuz
initrd.img.old
vmlinuz.old
initrd.img
...that return the error cp: cannot create symbolic link '/mnt/new_boot/./<FILE_NAME>': Operation not permitted
.
I'm wondering what the best approach is to move forward. I assume I cannot expect my system to boot without these files. Is there a way to successfully copy them over? If not, is it safe to create new symlinks with the same names, pointing to the relevant versions of vmlinuz-VERSION-generic
and initrd.img-VERSION-generic
? If I take that approach, what permissions do those files require? Or is it better to somehow restore from a Ubuntu Live USB? I'm a bit out of my depth here; any help is appreciated.