bobpeo
September 20, 2022, 4:15am
1
My opensuse TW installation crashed and it stuck booting into UEFI interactive shell.
I booted into rescue mode hopping to recreate the bootloader following this tuto , but it didn’t workout.
https://www.suse.com/support/kb/doc/?id=000018770
I then check the root partition and looks that all the data is gone !
https://imgur.com/bvib5CX
Am I missing something or is this some btrfs trickery?
btrfs filesystem usage shows is !
https://imgur.com/Tg6yAui
I would really appreciate some help, thanks!
Presumably everything is still there. Try this:
**erlangen:~ #** grep rescue /etc/fstab
UUID=ce197f2b-0c86-4b76-8688-5e8d597fc5bc /TW-**rescue** btrfs subvolid=5,user,noauto 0 0
**erlangen:~ #**
**erlangen:~ #** ll /TW-rescue/@/
total 0
drwxr-x--- 1 root root 92 Sep 18 20:34 **.snapshots**
drwxr-xr-x 1 root root 10 May 4 13:58 **boot**
drwxr-xr-x 1 root root 14 May 4 13:58 **etc**
dr-xr-xr-x 1 root root 8 May 4 14:18 **home**
dr-xr-xr-x 1 root root 0 May 4 13:58 **opt**
drwx------ 1 root root 148 Sep 18 20:36 **root**
dr-xr-xr-x 1 root root 22 May 4 14:07 **srv**
drwxr-xr-x 1 root root 10 May 4 13:58 **usr**
drwxr-xr-x 1 root root 110 Sep 18 20:34 **var**
**erlangen:~ #**
**erlangen:~ #** ll /TW-rescue/@/.snapshots/1/snapshot/etc/fstab
-rw-r--r-- 1 root root 1202 May 4 13:58 /TW-rescue/@/.snapshots/1/snapshot/etc/fstab
**erlangen:~ #**
Show
cat /mnt/etc/fstab
btrfs subvolume list /mnt
btrfs subvolume get-default /mnt
And please, upload images to https://susepaste.org
bobpeo
September 20, 2022, 6:03pm
4
Good news! I found my data! https://imgur.com/06TyoGK /etc/fstab https://imgur.com/QsonpsT
Bad news, I still I don’t how to repair the bootloader Snapshots and btfs subvolumes makes the recovery harder for me.
bobpeo
September 20, 2022, 6:26pm
5
arvidjaar:
Show
cat /mnt/etc/fstab
btrfs subvolume list /mnt
btrfs subvolume get-default /mnt
And please, upload images to https://susepaste.org
Thank you for your reply, I found my subvolume, here you go:
https://susepaste.org/view/simple/42603750
When mounting sda2 to /mnt there is no /etc/ folder nor /bin which makes chroot cmd not work. Imgur: The magic of the Internet
I can get /etc/fstab when mounting the subvolume snapshot 41
SUSE Paste
I appreciate your help!
bobpeo
September 20, 2022, 6:36pm
6
karlmistelberger:
Presumably everything is still there. Try this:
**erlangen:~ #** grep rescue /etc/fstab
UUID=ce197f2b-0c86-4b76-8688-5e8d597fc5bc /TW-**rescue** btrfs subvolid=5,user,noauto 0 0
**erlangen:~ #**
**erlangen:~ #** ll /TW-rescue/@/
total 0
drwxr-x--- 1 root root 92 Sep 18 20:34 **.snapshots**
drwxr-xr-x 1 root root 10 May 4 13:58 **boot**
drwxr-xr-x 1 root root 14 May 4 13:58 **etc**
dr-xr-xr-x 1 root root 8 May 4 14:18 **home**
dr-xr-xr-x 1 root root 0 May 4 13:58 **opt**
drwx------ 1 root root 148 Sep 18 20:36 **root**
dr-xr-xr-x 1 root root 22 May 4 14:07 **srv**
drwxr-xr-x 1 root root 10 May 4 13:58 **usr**
drwxr-xr-x 1 root root 110 Sep 18 20:34 **var**
**erlangen:~ #**
**erlangen:~ #** ll /TW-rescue/@/.snapshots/1/snapshot/etc/fstab
-rw-r--r-- 1 root root 1202 May 4 13:58 /TW-rescue/@/.snapshots/1/snapshot/etc/fstab
**erlangen:~ #**
Thank you for your reply I found the subvolumes, but I am still struggling repairing the bootloader.
Appreciate your help!
bobpeo
September 22, 2022, 9:38pm
7
I couldn’t repair the boot load because the install is badly damaged, but I was able to recover the data.
Thanks everyone for the replies, I would mark this issue as solved.