Introduction
I have kubuntu 20 on my oc. I created a backup of kubuntu(22 gb) using Kbackup in form of tar
file image of my kde drive(sda2)
What I want
I wish to test this backup on the same computer by creating an empty ext4 partition on the same pc(sda5)
What Happened I successfully created a second ext4 partition. After editing fstab file by adjusting the right UUID and applying bootloader, my boot menu simply does not show the twin kde. I even copied the partition table found in /root of parent kde. This partition has now bootflag too.
Here are the boot-repair paste-bin and other info: https://paste.ubuntu.com/p/Zbp74KWn3R/ (Note that Partition info recognizes sda2 as having boot but a no kernel with sda5) I already have kernels copied in usr/src
of /dev/sda5
.
Output of blkid
/dev/sda5: UUID="a8bc0529-436e-48eb-9100-b64d24bb493d" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="88989976-f24a-b145-822e-9582051b94e
fstab
file of new /sda5 partition:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=a8bc0529-436e-48eb-9100-b64d24bb493d / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
#UUID=D492-A6EC /boot/efi vfat umask=0077 0 1
#UUID=D492-A6EC /boot/efi vfat defaults 0 1
#UUID=D492-A6EC /boot/efi vfat defaults 0 1
#UUID=D492-A6EC /boot/efi vfat defaults 0 1
#UUID=D492-A6EC /boot/efi vfat defaults 0 1
#UUID=D492-A6EC /boot/efi vfat defaults 0 1
UUID=D492-A6EC /boot/efi vfat defaults 0 1
Kindly guide me on this issue.
Edit
I excluded following directories from backup
--exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"
Edit2 I have discovered that i have also excluded "/boot". Currently my /sda5 has a lonely "efi" folder in it.
Edit3 After copying the /boot folder, the grub and paste-bin successfully integrates /sda5.
I selected /sda5 and OOPS!, I was booted back to /sda2. It appears that the copied boot file loop me back to sda2 instead of entrance to sda5.
Kindly guide me how to regenerate boot files of /sda5 so that i can log on to it to test it on my own system.