failed to recover encrypted /home data on new drive from timeshift ?

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
arthur_dent
Level 1
Level 1
Posts: 7
Joined: Sat May 15, 2021 4:17 am

failed to recover encrypted /home data on new drive from timeshift ?

Post by arthur_dent »

Hi, and thanks in advance ; i've only used linux for a year, and been loving it, but i've been stuck for 2,5 days with this...

using Mint 64-bit v19.3 Mate

To keep it short at first : is it possible to format a new hdd in ext4, install mint 19.3 from live usb and recover my system including encrypted home file restoring my oldest timeshift RSYNC snapshot (which included /home and /root) ?

Yesterday i tried to boot on this restored system and it crashed and went into read only.
So today i tried from another drive, opened sudo terminal from the restored /home file and tried

Code: Select all

thib@lm:/media/thib/7fa74946-eda6-475b-98c8-5f3dcc01bb43/home/.ecryptfs/ugh$ sudo ecryptfs-recover-private .ecryptfs
INFO: Found [.ecryptfs].
Try to recover this directory? [Y/n]: y
INFO: Found your wrapped-passphrase
Do you know your LOGIN passphrase? [Y/n] y
INFO: Enter your LOGIN passphrase...
Passphrase: 
Inserted auth tok with sig [4de5e8326438824f] into the user session keyring
mount: /tmp/ecryptfs.FAeKZoXa: mount(2) system call failed: No such file or directory.
ERROR: Failed to mount private data at [/tmp/ecryptfs.FAeKZoXa].
I'm certain of my login passphrase, but can't find or recall being asked to keep a MOUNT passphrase...
-Could the login not be accepted for any reason ?
-Could the files be simply missing or corrupted ?
-Is it reasonable to think this installation / restoration via timeshift on a new drive is functionning proprely ?
-Is there any book you can recommand to a joiner-who-likes-to-understand-linux-but-doesn't-want-to-go-hardcore ?

Have a great day !
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
mikaelrask
Level 5
Level 5
Posts: 801
Joined: Wed Mar 13, 2019 7:38 am
Location: Sweden
Contact:

Re: failed to recover encrypted /home data on new drive from timeshift ?

Post by mikaelrask »

hey and welcome to the forum and linux mint arthur_dent no expert on encrypted drives, can you run this command i terminal and post the outcome

Code: Select all

lsblk
sens /tmp/ecryptfs.FAeKZoXa: mount(2) system call failed: No such file or directory. does not exist <-- can you access that drive trough the file manager/terminal?
CPU AMD Ryzen 9 7900
Graphic Card: AMD ATI Radeon RX 7900 XT/7900 XTX/7900M
Ram 32 GB ddr 5
Kernel: 6.5.0-14 generic
LM Cinnamon 21.3 edge
arthur_dent
Level 1
Level 1
Posts: 7
Joined: Sat May 15, 2021 4:17 am

Re: failed to recover encrypted /home data on new drive from timeshift ?

Post by arthur_dent »

Hi Mikaelrask, thanks for your reply,
here's the result :

Code: Select all

root@lm:/media/thib/7fa74946-eda6-475b-98c8-5f3dcc01bb43/home# lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 238,5G  0 disk 
├─sda1   8:1    0   579M  0 part 
├─sda2   8:2    0 191,3G  0 part 
├─sda3   8:3    0     1K  0 part 
└─sda5   8:5    0  46,6G  0 part 
sdb      8:16   0 931,5G  0 disk 
├─sdb1   8:17   0   447G  0 part /
├─sdb2   8:18   0     1K  0 part 
├─sdb5   8:21   0  15,4G  0 part [SWAP]
└─sdb6   8:22   0 456,4G  0 part 
sdc      8:32   0 465,8G  0 disk 
└─sdc3   8:35   0 418,3G  0 part /media/thib/7fa74946-eda6-475b-98c8-5f3dcc01bb4
sr0     11:0    1  1024M  0 rom 
sda : 1.windows hidden part / 2.windows 8 / 5.mint "emergency" in case i **** it up again
sdb : 1.current mint 20.1 / 5.swap / 6.1st backup for sdb1
(sdc external disk) : 3.the restored version of 19.3 that i'm trying to recover.
arthur_dent
Level 1
Level 1
Posts: 7
Joined: Sat May 15, 2021 4:17 am

Re: failed to recover encrypted /home data on new drive from timeshift ?

Post by arthur_dent »

in

Code: Select all

/media/thib/7fa74946-eda6-475b-98c8-5f3dcc01bb43/tmp
the only thing that seems related is an empty file called "ecryptfs.P6P6qo6y". and 2 config-err-****** empty documents.
Locked

Return to “Installation & Boot”