LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-23-2021, 05:44 AM   #1
iscsi
LQ Newbie
 
Registered: Jan 2021
Posts: 1

Rep: Reputation: Disabled
HDD recovery


Hi,

Unfortunately I f@cked up my linux hdd-s under windows, so now I would like to recover. These 2 HDD are the same 2 TB hdd disk, and had only one (probably ext4) partition just storing photos. Actually one of those has just stored some not important things, so I started my recovery "research" on that.

I've try to use testdisk, when I select the None media type and analyze it shows this (quick search result):

Disk /dev/sdb - 2000 GB / 1863 GiB - CHS 243201 255 63
Partition Start End Size in sectors
>P ext4 0 0 1 243201 80 63 3907029168 [Photo2]
Structure: Ok.

when I press continue here, I've got this error message:

Write isn't available because the partition table type "None" has been selected.


When I choose advanced-> superblock option : I've got this:

Partition Start End Size in sectors

ext4 0 0 1 243201 80 63 3907029168 [Photo2]
superblock 0, blocksize=4096 [Photo2]
superblock 32768, blocksize=4096 [Photo2]
superblock 98304, blocksize=4096 [Photo2]
superblock 163840, blocksize=4096 [Photo2]
superblock 229376, blocksize=4096 [Photo2]
superblock 294912, blocksize=4096 [Photo2]
superblock 819200, blocksize=4096 [Photo2]
superblock 884736, blocksize=4096 [Photo2]
superblock 1605632, blocksize=4096 [Photo2]
superblock 2654208, blocksize=4096 [Photo2]

To repair the filesystem using alternate superblock, run
fsck.ext4 -p -b superblock -B blocksize device

after that I've tried to run: fsck.ext4 -p -b 32768 -B 4096 /dev/sdb command, the result :

Photo2: Superblock needs_recovery flag is clear, but journal has data.
Photo2: Recovery flag not set in backup superblock, so running journal anyway.
Photo2: recovering journal
Photo2: Padding at end of inode bitmap is not set. FIXED.
Photo2: 11/122101760 files (0.0% non-contiguous), 7947223/488378646 blocks

but unfortunately the recover data just contains a lost+found (empty) directory.

If I choose other than none media type its just showing some weird probably windows related thing. Could you help me what should I try?
What kind of type should I choose in the testdisk? Is the above fsck command correct, or I just made the things more worse?

Thanks
 
Old 01-23-2021, 07:22 AM   #2
TorC
Member
 
Registered: Dec 2020
Location: as far S and E as I want to go in the U.S.
Distribution: Fossapup64
Posts: 224

Rep: Reputation: 78
My favorite for recovery of files is Puppy Linux
Take the ISO and make it Live on either CD or USB, boot to it, and recover desired files onto a USB stick or other USB device

I use Tahrpup 6.0.5 for non-UEFI
& use Xenialpup for UEFI

Creating a Live Puppy Linux CD
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Run customised HDD driver for external HDD while generic HDD driver for bootable purpose sonia49 Linux - Newbie 1 09-28-2016 08:52 PM
New HDD install w/data recovery from old HDD w/different distro w/encrypted /home forbinproject Linux - Laptop and Netbook 1 02-27-2012 10:18 PM
HDD partition recovery - HDD works but no partitions are accessible? stevod333 Linux - Software 6 10-01-2009 05:24 AM
LXer: How to backup MySQL and recovery Using Zmanda Recovery Manager LXer Syndicated Linux News 0 09-10-2008 04:30 AM
LXer: Linux Data Recovery on Windows - Is possible through Disk Doctors Linux Recovery Software LXer Syndicated Linux News 0 10-22-2006 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration