Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
1
answers
1947
views
Error: ext4magic Error 13 while opening filesystem
I'm trying to recover an accidentally removed directory (`/home/garid/.gnupg`) with `ext4magic`. However, It outputs following error: ```sh $ ext4magic /dev/nvme0n1p3 -f /home/garid/.gnupg/ -a $(date -d -5days +%s) /dev/nvme0n1p3 Error 13 while opening filesystem ext4magic : EXIT_SUCCESS ``` I'm not...
I'm trying to recover an accidentally removed directory (
/home/garid/.gnupg
) with ext4magic
. However, It outputs following error:
$ ext4magic /dev/nvme0n1p3 -f /home/garid/.gnupg/ -a $(date -d -5days +%s)
/dev/nvme0n1p3 Error 13 while opening filesystem
ext4magic : EXIT_SUCCESS
I'm not sure what I'm doing wrong. What is Error 13
? And How can I make it work?
---------------------------------------
My distro is Archlinux. My Partition table:
nvme0n1 259:0 0 476.9G 0 disk
├─nvme0n1p1 259:1 0 1G 0 part /efi
├─nvme0n1p2 259:2 0 32G 0 part [SWAP]
└─nvme0n1p3 259:3 0 443.9G 0 part /
---------------------
As suggested in below, running as root outputs below:
$ sudo ext4magic /dev/nvme0n1p3 -f /home/garid/.gnupg/ -a $(date -d -5days +%s)
[sudo] password for garid:
Filesystem in use: /dev/nvme0n1p3
Using internal Journal at Inode 8
Activ Time after : Sun Feb 26 20:15:57 2023
Activ Time before : Fri Mar 3 20:15:58 2023
zsh: segmentation fault sudo ext4magic /dev/nvme0n1p3 -f /home/garid/.gnupg/ -a $(date -d -5days +%s)
Garid Z.
(552 rep)
Mar 3, 2023, 10:59 AM
• Last activity: May 8, 2025, 12:04 AM
0
votes
1
answers
1023
views
rescue image with ext4magic or extundelete
Some rescue operations and similar need to be done with the the drive or volume unmounted. Previously I have downloaded an .iso of GParted which I put on a USB stick and booted up from it into a basic gui from which it was possible to rearrange the partitions on the disk. Now I just deleted a single...
Some rescue operations and similar need to be done with the the drive or volume unmounted.
Previously I have downloaded an .iso of GParted which I put on a USB stick and booted up from it into a basic gui from which it was possible to rearrange the partitions on the disk.
Now I just deleted a single file I've been working on for days with
rm
(I know..) and need to really try to get it back.
ext4magic
should be able to do it, I have the command ready to go.
extundelete
maybe but that one is unmaintained.
I just put my debian-11.3.0-amd64-DVD-1.iso
onto the USB from a dd
command and booted from it. There was a 'rescue mode' option. That provided a semi-useless terminal with almost no commands or otherwise it allowed the root partition of the PC to be brought to life in a terminal. So I did that but the partition with the file I wanted to recover being /home was also mounted but I needed it unmounted.
There are a few rescue things out there such as -
https://www.supergrubdisk.org/
https://www.system-rescue.org/
...which don't look like they have it.
I just tested
https://www.finnix.org/
- dd'd it to the USB and booted it into its terminal. It had a lot of commands but none to recover ext4
Does anyone know where can I find a bootable CD .iso image to put on the USB-stick which will boot into some kind of live system, not insist on partitioning the drive or installing itself, and have available the command ext4magic
or otherwise extundelete
?
cardamom
(662 rep)
Aug 16, 2023, 05:06 PM
• Last activity: Aug 16, 2023, 11:32 PM
Showing page 1 of 2 total questions