Background: a 64-bit desktop PC with a 2012 UEFI BIOS, 7.8 Gb of RAM, and an ~ 1 Tb disc. Prior to the events to be related, the disc was split into two partitions, one (~ 800 Gb) with Ubuntu 20.04 and the other with Ubuntu 14.04, left as a precaution when I upgraded to 20.04.
I recently installed Ubuntu 24.04, splitting the 800 Gb partition into one with 360 Gb (where I left 20.04) and one with 430 Gb for 24.04. I then found that none of my documents and data files had been put in the 24.04 partition, which I ruefully attributed to having merely installed 24.04 rather than upgrading to it.
Wishing to return to square one so as to do a proper upgrade, I removed Ubuntu 24.04 with OS-Uninstaller. I noted that I still had three partition, but failed to consider the possible implications of this. Through Ubuntu 20.04 I then tried to upgrade to 24.04, and to judge by the output on the terminal the upgrade was completed successfully. But the grub boot menu has Ubuntu 14.04 as its default, fails to list Ubuntu 24.04, and, when Ubuntu 20.04 is chosen, returns an error sheet:
[0.440201] Initramfs unpacking failed: invalid magic at start of compressed archive
[2.342338] Kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
etc.
So now I can only use Ubuntu 14.04 and the old files in that partition. Its file manager shows all three partitions, but when I try to look inside the 430 Gb volume I get an error message:
Error mounting /dev/sda7 at /media/papa1/9edf34bb-af1e-48f0-9739-04bedf2fd891: Command line ‘mount -t “ext4” -o “uhelper=udisks2,nodev,nosuid” “/dev/sda7” ”/media/papa1/9edf34bb-af1e-48f0-9739-04bedf2fd891” exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sda7, missing codepage or helper program, or other error
In some cases useful info is found in syslog – try dmesg | tail or so
When I look in the 360 Gb volume all the files previously shown under Ubuntu 20.04 appear to be there, but I have no idea whether they can be used to recover the ability to boot Ubuntu 20.04 – and if they can, that still leaves the problem of establishing a state in which I can upgrade successfully to ubuntu 24.04.
Any help would be much appreciated.