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.
/boot
partition on FAT ... And the other is a fact: FAT doesn't support symbolic links ... Am I missing something here? – Raffa May 25 '23 at 15:4299MB
, which I subsequently sized up to499MB
. – Alexander Nied May 25 '23 at 16:06/boot
but rather/boot/efi
which is actually akin to the FAT family but totally different in function from/boot
which should be an EXT* family filesystem ... Might this be the case? – Raffa May 25 '23 at 16:10/boot
when swapping Linux installs so I got confused. As you can see I'm out of my area of knowledge by quite a bit. Would you be able to point me to the appropriate resources for troubleshooting now that we know I've mismatched partition types? – Alexander Nied May 25 '23 at 16:19/boot
partition can't be formatted as FAT32. Should I remove my answer? – Jos May 25 '23 at 17:21