MyBook salvage, newbie questions Topic is solved

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
horomancer
Posts: 4
Joined: 22 May 2020, 18:21

MyBook salvage, newbie questions

#1 Post by horomancer »

Hello! I have a MyBook external HD that crapped out on me, and I was hoping to salvage it. I've been reading through the testdisk.pdf and currently have a ddrescue disk-to-disk copy of the HD on a dedicated partition on a new drive

Code: Select all

[horo@recovery ~]$ sudo fdisk -l
[sudo] password for horo: 
Disk /dev/sda: 465.78 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDC WD5000AVDS-6
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xdb2203ee

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048 209717247 209715200   100G 83 Linux
/dev/sda2       209717248 230688767  20971520    10G 82 Linux swap / Solaris
/dev/sda3       230688768 587204607 356515840   170G 83 Linux
/dev/sda4       587204608 976773167 389568560 185.8G 83 Linux


Disk /dev/sdb: 149.1 GiB, 160000000000 bytes, 312500000 sectors
Disk model: ST3160815AS     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
[horo@recovery ~]$ sudo ddrescue -f -n /dev/sdb /dev/sda3 rescue.map
[sudo] password for horo: 
GNU ddrescue 1.25
Press Ctrl-C to interrupt
     ipos:   33710 MB, non-trimmed:        0 B,  current rate:    6656 B/s
     opos:   33710 MB, non-scraped:     3072 B,  average rate:  55096 kB/s
non-tried:        0 B,  bad-sector:     1024 B,    error rate:     170 B/s
  rescued:  159999 MB,   bad areas:        2,        run time:     48m 24s
pct rescued:   99.99%, read errors:        3,  remaining time:          1s
                              time since last successful read:          0s
Finished                                      
[horo@recovery ~]$ sudo ddrescue -d -f -r3 /dev/sdb /dev/sda3 rescue.map
[sudo] password for horo: 
GNU ddrescue 1.25
Press Ctrl-C to interrupt
Initial status (read from mapfile)
rescued: 159999 MB, tried: 4096 B, bad-sector: 1024 B, bad areas: 2

Current status
     ipos:   33710 MB, non-trimmed:        0 B,  current rate:       0 B/s
     opos:   33710 MB, non-scraped:        0 B,  average rate:     256 B/s
non-tried:        0 B,  bad-sector:      512 B,    error rate:     170 B/s
  rescued:  159999 MB,   bad areas:        1,        run time:         14s
pct rescued:   99.99%, read errors:        4,  remaining time:         n/a
                              time since last successful read:          6s
Finished 
I'm also currently making an .img file in it's own separate partition.

When running TestDisk, do I indicate the partition the clonded disk is on (/dev/sda3)? or the whole sda drive then look for missing partitions?

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

Re: MyBook salvage, newbie questions

#2 Post by recuperation »

horomancer wrote: 29 Aug 2020, 08:06 Hello! I have a MyBook external HD that crapped out on me, and I was hoping to salvage it. I've been reading through the testdisk.pdf and currently have a ddrescue disk-to-disk copy of the HD on a dedicated partition on a new drive

Code: Select all

[horo@recovery ~]$ sudo fdisk -l
[sudo] password for horo: 
Disk /dev/sda: 465.78 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDC WD5000AVDS-6
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xdb2203ee

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048 209717247 209715200   100G 83 Linux
/dev/sda2       209717248 230688767  20971520    10G 82 Linux swap / Solaris
/dev/sda3       230688768 587204607 356515840   170G 83 Linux
/dev/sda4       587204608 976773167 389568560 185.8G 83 Linux


Disk /dev/sdb: 149.1 GiB, 160000000000 bytes, 312500000 sectors
Disk model: ST3160815AS     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
[horo@recovery ~]$ sudo ddrescue -f -n /dev/sdb /dev/sda3 rescue.map
[sudo] password for horo: 
GNU ddrescue 1.25
Press Ctrl-C to interrupt
     ipos:   33710 MB, non-trimmed:        0 B,  current rate:    6656 B/s
     opos:   33710 MB, non-scraped:     3072 B,  average rate:  55096 kB/s
non-tried:        0 B,  bad-sector:     1024 B,    error rate:     170 B/s
  rescued:  159999 MB,   bad areas:        2,        run time:     48m 24s
pct rescued:   99.99%, read errors:        3,  remaining time:          1s
                              time since last successful read:          0s
Finished                                      
[horo@recovery ~]$ sudo ddrescue -d -f -r3 /dev/sdb /dev/sda3 rescue.map
[sudo] password for horo: 
GNU ddrescue 1.25
Press Ctrl-C to interrupt
Initial status (read from mapfile)
rescued: 159999 MB, tried: 4096 B, bad-sector: 1024 B, bad areas: 2

Current status
     ipos:   33710 MB, non-trimmed:        0 B,  current rate:       0 B/s
     opos:   33710 MB, non-scraped:        0 B,  average rate:     256 B/s
non-tried:        0 B,  bad-sector:      512 B,    error rate:     170 B/s
  rescued:  159999 MB,   bad areas:        1,        run time:         14s
pct rescued:   99.99%, read errors:        4,  remaining time:         n/a
                              time since last successful read:          6s
Finished 
I'm also currently making an .img file in it's own separate partition.
That is not necessary. Keep your map-file, it tells you where your broken sectors are!
When running TestDisk, do I indicate the partition the clonded disk is on (/dev/sda3)? or the whole sda drive then look for missing partitions?
Neither sda3 nor the whole drive!
As the main Testdisk menu does not allow file selection you would need to integrate your file-based ddrescue copy as a device in Linux.

horomancer
Posts: 4
Joined: 22 May 2020, 18:21

Re: MyBook salvage, newbie questions

#3 Post by horomancer »

I ran Testdisk on the original faulty drive. After a Quick search and Deep search I did not detect any partition. At this point do i try the MBR Code option? Do I move to Photorec?

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

Re: MyBook salvage, newbie questions

#4 Post by recuperation »

horomancer wrote: 29 Aug 2020, 16:32 I ran Testdisk on the original faulty drive. After a Quick search and Deep search I did not detect any partition. At this point do i try the MBR Code option?
That won't affect the findings.
Do I move to Photorec?
Yes.

horomancer
Posts: 4
Joined: 22 May 2020, 18:21

Re: MyBook salvage, newbie questions

#5 Post by horomancer »

Thank you. I'll move to Photorec and cross my fingers. Do partitions need to be mounted for Photorec to do it's thing?

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

Re: MyBook salvage, newbie questions

#6 Post by recuperation »

horomancer wrote: 30 Aug 2020, 03:43 Thank you. I'll move to Photorec and cross my fingers. Do partitions need to be mounted for Photorec to do it's thing?
No.

horomancer
Posts: 4
Joined: 22 May 2020, 18:21

Re: MyBook salvage, newbie questions

#7 Post by horomancer »

Thank you, I have managed to salvage many thousands of image files.

Locked