I have an arch linux with ext4 partition
I had a working system and decided to make some backups
Here's what I've did:
- Installed timeshift
- After opening it I've decided to install btrfs-progs (I was thinking it's some kind of a utility, not a filesystem), but did nothing with btrfs after that
- I've started backing up my system, but noticed it was backing up some of unnecessary files, so I've stop backing up
- I've edited the ignore list, and also noticed although I've stopped backup very early, 15GB of free space was gone
- Because there was nothing in the gui, I've decided to run ncdu and find the backup
- I've found something like
/timeshift/somelettersandnumbers/backupand decided to delete it from ncdu - After that my laptop decided to turn off(?) (like I've pressed the power button, it stopped the gnome and showed terminal as usual)
- But it was stuck and not turning off, so I've turn off it with long power button press
- And then I got error on boot
The error was root device mounted successfully but /sbin/init, but I think that is not important
The important part, that my partition now is almost empty.
I have made live usb, mounted the partition and tree returns:
/mnt boot dev etc cron.d timeshift-hourly home leviska (my username) .Xauthority .local share TelegramDesktop ... .zsh_history Desktop proc run sys tmp And the partition is basically empty, only 80kb is used
I've tried running e2fsck and ext4magic, but they didn't do/returned anything useful
ext4magic /dev/nvme0n1p2 -l Filesystem in use(...) Using internal Journal at Inode 8 Inode 2 is allocated 100% home/leviska/.zsh_history ext4magic : EXIT_SUCCESS With the exception of the above, I didn't write anything to the partition after reboot, and hope there is some way to restore files
I think the partition is the same, because it's UUID is the same (as in the grub on boot), but now it's just empty