Getting the deleted partition back using TestDisk or Timeshift?

They are not. When I boot into a live session, file manager only shows the linux iso files. For instance, no /boot/efi and fstab is emtpy.

I tried mounting the sda in terminal to see the files, but was unsuccessful.

BUT I know that it restored those files as if you try to install LM from that live session, you are told:

Since I just went back and restored the original snapshot, 21.2 is correct to what it would have restored.

Sheila

This computer and its specs are NOT the one we are restoring a deleted partition to. That is another computer.

Do you play computer games? They take a LOT of space. Crossover emulates windows to play windows games on Linux. Plus I have Heroic which has all my GOG, Epic and other installed games.

It eats space.

Sheila

NO not with Linux, that is what I have Windows.

OK, my mistake.

Tell Gentoo that!!!

Really? Why is Gentoo different?

Have no idea!!!

What do you mean by Linux iso files?
When you go to / and do ls, what do you see
and try
cat etc/os-release

So again I will have to create a mount point for sda1 (boot/efi) as well as sda2 (since that is where the files are)

Then cd into it and list files? Okay. (Pardon my many typos in terminal)

Now that confirms the restore took place to sda2, probably nothing to efi as it confirms right before starting restore that it is restoring to only sda2.

So how to we manage to get fstab from here? locate the file and sudo nano?

Sheila

Sitting at the /mnt/Linux prompt in terminal (where I had mounted the ext4 partition) this gets me the live session version 21.3. Yet I restored 21.2.

What does that tell us?

Exactly.
cd etc
nano fstab

You just make the fstab file with an editor.

That picture shows the linux filesystem is all there… you just need to fix fstab, and hide grub.cfg, and put grub on the disk, and it will boot.

And the fact that cat command says ver 21.3 even though I restored v 21.2 doesn’t give us cause for concern?

So sitting at /mnt/Linux$
sudo nano fstab gives me a blank fstab file.

Do I need to be more specific? Like cd into /etc?

Sheila

Did you do
cat /etc/os-release
or
cd to the mount of /
cat etc/os-release

You might have catted the live system… it is easy to make that mistake with mounts. Always do pwd to make sure you are where you think you are.

I made the same mistake this week, and edited fstab in the wrong linux.

Same mistake as above
Not cd /etc
cd etc
then do
pwd to check where you are
should get /mnt/Linux/etc
then what is in fstab?

I did it from /mnt/Linux$ where I mounted the ext 4 partition

Are you sure
go ito etc and do pwd to be sure
shoukd get /mnt/Linux/etc
then do cat os-release.
It is very confusing

You were right, of course. I was at /etc and edited the wrong fstab. Now I have opened the one from /mnt/Linux/etc and it had only the ext4 (root) UUID and the swapfile notation.
Sorry, attached wrong pic the first time

So now I just had to add the /efi UUID.

Now can I grub-install /dev/sda from /mnt/Linux/etc$

It looks OK. That should be right for a boot.
but
check that the UUID is correct
compare with blkid

Sorry, not /etc, just /mnt/Linux