I was experimenting with QEMU when suddenly my drive icon disappeared from the desktop.
Rebooting didn't help
I was playing with drive switches.
It appears the file system has been corrupted. Below is from testdisk.log.
Code: Select all
Fri Jan 10 09:04:02 2025
Command line: TestDisk
TestDisk 7.2, Data Recovery Utility, February 2024
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
OS: Linux, kernel 6.10.2 (#4 SMP PREEMPT_DYNAMIC Sun Aug 11 02:22:58 AEST 2024) x86_64
Compiler: GCC 12.2
ext2fs lib: 1.47.0, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none, curses lib: ncurses 6.4
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size 5860533168 sectors
/dev/sda: user_max 5860533168 sectors
/dev/sda: native_max 5860533168 sectors
/dev/sdb: LBA, HPA, LBA48 support
/dev/sdb: size 5860533168 sectors
/dev/sdb: user_max 5860533168 sectors
/dev/sdb: native_max 5860533168 sectors
/dev/sdc: LBA, HPA, LBA48, DCO support
/dev/sdc: size 468862128 sectors
/dev/sdc: user_max 468862128 sectors
/dev/sdc: native_max 468862128 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop10 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop11 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop12 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop13 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop14 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop15 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop2 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop3 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop4 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop5 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop6 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop7 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop8 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop9 - 0 B - 0 sectors, sector size=512
Hard disk list
Disk /dev/sda - 3000 GB / 2794 GiB - CHS 364801 255 63, sector size=512 - TOSHIBA DT01ACA3, FW:ABB0
Disk /dev/sdb - 3000 GB / 2794 GiB - CHS 364801 255 63, sector size=512 - WDC WD3001FAEX-0, FW:1L01
Disk /dev/sdc - 240 GB / 223 GiB - CHS 29185 255 63, sector size=512 - WDC WDS240G1G0A-, FW:1000
Disk /dev/sdd - 123 GB / 114 GiB - CHS 14959 255 63, sector size=512 - SanDisk 3.2Gen1, FW:1.00
Disk /dev/mdev.seq - 4 B - CHS 1 255 63, sector size=512
Disk /dev/loop0 - 161 MB / 154 MiB - 315680 sectors (RO), sector size=512
Disk /dev/loop1 - 481 MB / 459 MiB - 941056 sectors, sector size=512
Partition table type (auto): Intel
Disk /dev/sdc - 240 GB / 223 GiB - WDC WDS240G1G0A-
Partition table type: Intel
Analyse Disk /dev/sdc - 240 GB / 223 GiB - CHS 29185 255 63
Geometry from i386 MBR: head=255 sector=63
check_part_i386 failed for partition type 83
Current partition structure:
No ext2, JFS, Reiser, cramfs or XFS marker
1 * Linux 0 32 33 29185 61 60 468858880
1 * Linux 0 32 33 29185 61 60 468858880
search_part()
Disk /dev/sdc - 240 GB / 223 GiB - CHS 29185 255 63
block_group_nr 1
recover_EXT2: "e2fsck -b 32768 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=1/1788, s_mnt_count=0/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 58607360
recover_EXT2: part_size 468858880
Filesystem created: Sun Jul 29 17:50:08 2018
Linux 0 32 33 29185 61 60 468858880
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 240 GB / 223 GiB
Results
* Linux 0 32 33 29185 61 60 468858880
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 240 GB / 223 GiB
Hint for advanced users: dmsetup may be used if you prefer to avoid rewriting the partition table for the moment:
echo "0 468858880 linear /dev/sdc 2048" | dmsetup create test0
interface_write()
1 P Linux 0 32 33 29185 61 60 468858880
write!
write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition
Need to fix
1 P Linux 0 32 33 29185 61 60 468858880
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 240 GB / 223 GiB
You will have to reboot for the change to take effect.
SIGHUP detected! PhotoRec has been killed.
SIGTERM detected! PhotoRec has been killed.
Gparted can see the drive but doesn't recognize the filesystem.
Code: Select all
lsblk /dev/sdc1
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sdc1 8:33 0 223.6G 0 part
#
There is a lot of information on this drive I would like to recover.
Does anyone have a reliable solution in restoring this SSD drive please?
Thanks