You are not logged in.

#1 2022-09-19 14:44:42

archforthewin
Member
Registered: 2021-07-23
Posts: 23

[SOLVED] timeshift does not find snapshots in arch-chroot environment

Hey there,

I have a problem with GRUB and want to restore my arch system.
Because I cannot boot into the system directly I have executed arch-chroot from the arch iso. I have mounted the boot partition and the device on which the timeshift snapshots are located to the usual mount points.

The problem is that timeshift does not find the snapshots.

timeshift --list-devices

and

timeshift --list-devices --snapshot-device /dev/sdc3

does not show any devices.

Does anyone have any ideas?

Thanks in advance!

Last edited by archforthewin (2022-09-25 20:29:48)

Offline

#2 2022-09-24 01:12:39

lakso
Member
Registered: 2020-08-02
Posts: 32

Re: [SOLVED] timeshift does not find snapshots in arch-chroot environment

Hi, exactly the same problem here. Did you manage to solve it?

Offline

#3 2022-09-25 20:27:59

archforthewin
Member
Registered: 2021-07-23
Posts: 23

Re: [SOLVED] timeshift does not find snapshots in arch-chroot environment

Not really, but kind of.

Since you can browse the backups normally, I deleted all the files from my boot partition and restored them from the timeshift snapshot with rsync instead of using the timeshift command.


What I did in detail:
- booted into the arch iso
- mounted my root partition to /mnt
- mounted my boot partition to /mnt/boot
- mounted the partition where the timeshift snapshots are stored to /root/backups
- deleted all files from /mnt/boot

rm -R /mnt/boot/*

- restored files with rsync

rsync -avxPAX --exclude="lost+found" /root/backups/timeshift/shnapshots/2022-09-15_18-00-01/localhost/boot /mnt/boot

Now the files are in the /mnt/boot/boot directory, but they should be in /mnt/boot.
So I executed

 mv /mnt/boot/boot/* /mnt/boot 

and

rmdir /mnt/boot/boot

Now the recovery is completed.

I checked if the process completed successfully by comparing the directory /mnt/boot with the backup

diff -qr /mnt/boot /root/backups/timeshift/snapshots/2022-09-15_18-00-01/localhost/boot

So it's only a partial system restore, which of course can lead to an inconsistent system, but I think it's unlikely to break the system in this case, since it's an entire partition, which, as far as I understand, works completely independently of the rest of the operating system.

However, I would still be interested in how timeshift could have been used in this case, as it would have been easier.

Nevertheless, I mark this topic as solved.

Offline

Board footer

Powered by FluxBB