我有一个在 AZURE VM 上运行的 MongoDB 实例,它删除了所有数据。我尝试使用以下命令查找某个文件是否仍在那里:
$ sudo extundelete --restore-all /dev/sda1
extundelete: Bad magic number in super-block when trying to open filesystem /dev/sda1
但是,它返回了错误。我也尝试了 debugfs,它返回了相同的错误。
我的服务器的磁盘列表如下:
$ sudo fdisk -lu
Disk /dev/sda: 32.2 GB, 32212254720 bytes, 62914560 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x00069ce8
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 62914559 31456256 83 Linux
Disk /dev/sdb: 7516 MB, 7516192768 bytes, 14680064 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x45acb57d
Device Boot Start End Blocks Id System
/dev/sdb1 128 14678015 7338944 83 Linux
有人能帮助我吗?