Unable to recover Partition but can copy files - Linux

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
christobal
Posts: 1
Joined: 14 Aug 2020, 13:24

Unable to recover Partition but can copy files - Linux

#1 Post by christobal »

Hello!

In my rush this morning I managed to delete my storage/backup drive. I am able to locate it and browse/copy files but after writing it does not show up post reboot.

Here are pictures of the steps I take, any help would be much appreciated :)

https://imgur.com/a/okGdEUT

And this is the log I get:

Code: Select all

Partition table type (auto): Intel
Disk /dev/sda - 1000 GB / 931 GiB - ST1000DM010-2EP102
Partition table type: Intel

Analyse Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 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 121601  57 56 1953521664
 1 * Linux                    0  32 33 121601  57 56 1953521664

search_part()
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63

block_group_nr 1

recover_EXT2: "e2fsck -b 32768 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=1/7452, 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 244190208
recover_EXT2: part_size 1953521664
Filesystem created: Mon Oct  1 22:23:59 2018
     Linux                    0  32 33 121601  57 56 1953521664 [Stuff]
     ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1000 GB / 931 GiB

Results
   * Linux                    0  32 33 121601  57 56 1953521664 [Stuff]
     ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1000 GB / 931 GiB

Hint for advanced users: dmsetup may be used if you prefer to avoid rewriting the partition table for the moment:
echo "0 1953521664 linear /dev/sda 2048" | dmsetup create test0

interface_write()
 1 * Linux                    0  32 33 121601  57 56 1953521664 [Stuff]
write!

write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition
Need to fix
 1 * Linux                    0  32 33 121601  57 56 1953521664 [Stuff]
     ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 1000 GB / 931 GiB
You will have to reboot for the change to take effect.

TestDisk exited normally.

recuperation
Posts: 2729
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: Unable to recover Partition but can copy files - Linux

#2 Post by recuperation »

You are better off uploading images here. Your pictures will disappear at some time in the future and this posting won't help others anymore.

You did not run deep search.

Unfortunately I have no experience with file systems from the ext family.
But there is a hint in the log file:

recover_EXT2: "e2fsck -b 32768 -B 4096 device" may be needed

Locked