Repair of Linux DISH Netork external UBS Drive

Using TestDisk to repair the filesystem
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
freecat
Posts: 4
Joined: 06 Feb 2015, 17:19

Repair of Linux DISH Netork external UBS Drive

#1 Post by freecat »

Howdy, I have filled up several external USB drives over the years using my DISH DVR. Normally, I have no problem loading files and then downloading to view or even viewing on the external USB drive. I had been using Toshiba UBS drives for this.

However, the latest 2GB Toshiba USB drive had been accepting files that I put into it for several months and suddenly there is an 855 error which DISH says is due to an error on the drive.

I installed TestDisk 6.14 on my Windows 7 machine and started it after I attached the "broken" USB drive. TestDisk registered the drive as containing Linux file system. I choose the Analysis from the menu and after that choose deeper analysis. TD has been running for 12 hours and progress % says "22%".

I will let it complete (in the next 64 hours), but I am unsure of what to do next. I am unfamiliar with Linus file system (only know the very basics) and need some guidance on what to do after the TD run is completed to repair whatever may be wrong with the USB drive. Thanks in advance for any help. :)

jackdup
Posts: 8
Joined: 07 Feb 2015, 17:37

Re: Repair of Linux DISH Netork external UBS Drive

#2 Post by jackdup »

First I don't have an answer to your question but am curious to know if you have found a way to access the video that is on the drive to use outside of the Dish Network receiver? I have a couple of hard drives that are full as well and would like to find a way to access some of the videos as I would like to put them on an NAS drive but have never found a way to do that so if you have a way to do it I would certainly appreciate if you would share it.

Thank you.

freecat
Posts: 4
Joined: 06 Feb 2015, 17:19

Re: Repair of Linux DISH Netork external UBS Drive

#3 Post by freecat »

Hi Jack - Thanks for your inquiry. There are a lot us who have this challenge.

Unfortunately, I have not found an answer. I have several drives like you, and would like to retrieve the information.

I have been "in" computers for 50 years and I know instinctively that there is a solution and am quite surprised that someone has not posted it. I got involved in this one bad drive (Toshiba 2GB) and have just been "hung up" on fixing that. It is my intention to do some searching for the algorithm or programmer that has invented a solution. I have noticed a pattern, but being a Microsoftie oriented person (not that I really like MS) my universe of knowledge does not overlap with Linux; was an IBM main-framer and FORTH programmer for many years and just got stuck with MS from NT3 to present and now have too much regular work to dig too far into Linux.

Let's make a deal that we do some searching together? Maybe we can talk on the phone or with email. Is there a way to swap emails or phone numbers without making them public?

God Bless.

freecat

freecat
Posts: 4
Joined: 06 Feb 2015, 17:19

Re: Repair of Linux DISH Netork external UBS Drive

#4 Post by freecat »

Well, after running for 79 hours, the Testdisk program cranked out about 16 disk addresses on the "Linux command screen" and then the program ended and the "Linux command screen" went away.

I supposed the only thing to do is to do it again and capture some of those addresses and see it they tell me anything about how to correct the errors. So I am starting again now 2015 02 14 5PM EST.

freecat
Posts: 4
Joined: 06 Feb 2015, 17:19

Re: Repair of Linux DISH Netork external UBS Drive

#5 Post by freecat »

OK. So, I restarted Testdisk and found that on the initial screen some errors were identified. See attachment.
Also, I see that there is a log file that seems like it identified bad spots, but I am not sure how to correct them.

Note: I have also printed the logfile in this message, below.

Some of these errors in the logfile seem to exist in the initial screen.

Should I just continue and re-run? Can anyone help?

Thanks, in advance?

freecat

LOGFILE:

Thu Feb 5 18:08:46 2015
Command line: TestDisk

TestDisk 6.14, Data Recovery

Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows 7 (7601) SP1
Compiler: GCC 4.7, Cygwin

1007.17
Compilation date: 2013-07-30T14:08:52
ext2fs lib: 1.42.2, ntfs lib:

10:0:0, reiserfs lib: 0.3.1-rc8, ewf lib: 20120504
disk_get_size_win32

IOCTL_DISK_GET_LENGTH_INFO(/dev/sda)=160000000000
disk_get_size_win32

IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=2000398931968
disk_get_size_win32

IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=160000000000
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)

=2000398931968
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)

=159791448064
filewin32_getfilesize(\\.\D:) GetFileSize err Incorrect

function.

filewin32_setfilepointer(\\.\D:) SetFilePointer err Incorrect function.

Warning: can't get size for \\.\D:
Hard disk list
Disk /dev/sda - 160 GB /

149 GiB - CHS 19452 255 63, sector size=512 - ST316031 8AS, S/N:V93YX3FF,

FW:CC44
Disk /dev/sdb - 2000 GB / 1863 GiB - CHS 243201 255 63, sector

size=512 - TOSHIBA External USB 3.0, S/N:20131231011657, FW:5438

Partition

table type (auto): Intel
Disk /dev/sdb - 2000 GB / 1863 GiB - TOSHIBA

External USB 3.0
Partition table type: Intel

Analyse Disk /dev/sdb - 2000 GB

/ 1863 GiB - CHS 243201 255 63
BAD_RS LBA=2048 4294967295
BAD_RS LBA=2099200

4294967295
BAD_RS LBA=1050675200 4294967295
BAD_RS LBA=2099251200 4294967295
BAD_RS LBA=2099253248 4294967295
BAD_RS LBA=3147829248 4294967295
BAD_RS

LBA=3147831296 4294967295
check_part_i386 failed for partition type 83
Current partition structure:
1 P Linux 0 32 33 130

170 40 2097152

Warning: Bad starting sector (CHS and LBA don't match)
2 P

Linux 130 170 41 65401 129 8 1048576000

Warning: Bad

starting sector (CHS and LBA don't match)
3 P Linux 65401

129 9 130672 87 39 1048576000

Warning: Bad starting sector (CHS and LBA

don't match)
4 E Linux extended 130672 87 40 243201 80 59

1807777964

Warning: Bad starting sector (CHS and LBA don't match)
No

partition is bootable
5 L Linux 130672 120 9 195943 78 39

1048576000

Warning: Bad starting sector (CHS and LBA don't match)
X Linux

extended 195943 78 40 243201 48 27 759197868

Warning: Bad starting

sector (CHS and LBA don't match)
No ext2, JFS, Reiser, cramfs or XFS marker


6 L Linux 195943 111 9 243201 80 59 759197868
6 L Linux

195943 111 9 243201 80 59 759197868

Warning: Bad starting

sector (CHS and LBA don't match)

search_part()
Disk /dev/sdb - 2000 GB / 1863

GiB - CHS 243201 255 63

recover_EXT2: s_block_group_nr=0/8,

s_mnt_count=1/35, s_blocks_per_group=32768, s_inodes_per_group=16384
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 262144
recover_EXT2: part_size 2097152
Linux 0 32 33 130

170 40 2097152
ext3 blocksize=4096 Sparse superblock Recover, 1073

MB / 1024 MiB

recover_EXT2: s_block_group_nr=0/4000, s_mnt_count=85/24,

s_blocks_per_group=32768, s_inodes_per_group=32
recover_EXT2:

s_blocksize=4096
recover_EXT2: s_blocks_count 131072000
recover_EXT2:

part_size 1048576000
Linux 130 170 41 65401 129 8

1048576000
ext3 blocksize=4096 Large file Sparse superblock Recover,

536 GB / 500 GiB

recover_EXT2: s_block_group_nr=0/4000, s_mnt_count=1/32,

s_blocks_per_group=32768, s_inodes_per_group=32
recover_EXT2:

s_blocksize=4096
recover_EXT2: s_blocks_count 131072000
recover_EXT2:

part_size 1048576000
Linux 65401 129 9 130672 87 39

1048576000
ext3 blocksize=4096 Sparse superblock Recover, 536 GB / 500

GiB

recover_EXT2: s_block_group_nr=0/4000, s_mnt_count=1/36,

s_blocks_per_group=32768, s_inodes_per_group=32
recover_EXT2:

s_blocksize=4096
recover_EXT2: s_blocks_count 131072000
recover_EXT2:

part_size 1048576000
Linux 130672 120 9 195943 78 39

1048576000
ext3 blocksize=4096 Sparse superblock Recover, 536 GB / 500

GiB

block_group_nr 1

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

needed
recover_EXT2: s_block_group_nr=1/2896, s_mnt_count=0/37,

s_blocks_per_group=32768, s_inodes_per_group=32
recover_EXT2:

s_blocksize=4096
recover_EXT2: s_blocks_count 94899733
recover_EXT2:

part_size 759197864
Linux 195943 111 9 243201 80 55

759197864
ext3 blocksize=4096 Sparse superblock Backup superblock, 388

GB / 362 GiB
file_pread(5,16,buffer,3907029160(243201/80/56)) ReadFile Data

error (cyclic redundancy check).

file_pread(5,1,buffer,3907029165(243201/80/61)) lseek err Invalid argument
file_pread(5,8,buffer,3907029168(243201/81/1)) lseek err Invalid argument
file_pread(5,3,buffer,3907029176(243201/81/9)) lseek err Invalid argument
file_pread(5,3,buffer,3907029223(243201/81/56)) lseek err Invalid argument
file_pread(5,8,buffer,3907029239(243201/82/9)) lseek err Invalid argument
file_pread(5,11,buffer,3907029286(243201/82/56)) lseek err Invalid

argument
file_pread(5,2,buffer,3907031208(243201/113/25)) lseek err Invalid

argument
file_pread(5,5,buffer,3907029179(243201/81/12)) lseek err Invalid

argument
file_pread(5,3,buffer,3907029184(243201/81/17)) lseek err Invalid

argument
file_pread(5,3,buffer,3907029231(243201/82/1)) lseek err Invalid

argument
file_pread(5,8,buffer,3907029247(243201/82/17)) lseek err Invalid

argument
file_pread(5,8,buffer,3907029297(243201/83/4)) lseek err Invalid

argument
file_pread(5,2,buffer,3907031216(243201/113/33)) lseek err Invalid

argument

Results
* Linux 0 32 33 130 170 40

2097152
ext3 blocksize=4096 Sparse superblock Recover, 1073 MB / 1024

MiB
P Linux 130 170 41 65401 129 8 1048576000
ext3

blocksize=4096 Large file Sparse superblock Recover, 536 GB / 500 GiB
P

Linux 65401 129 9 130672 87 39 1048576000
ext3

blocksize=4096 Sparse superblock Recover, 536 GB / 500 GiB
L Linux

130672 120 9 195943 78 39 1048576000
ext3 blocksize=4096

Sparse superblock Recover, 536 GB / 500 GiB
L Linux 195943

111 9 243201 110 45 759199744
ext3 blocksize=4096 Sparse superblock

Backup superblock, 388 GB / 362 GiB
add_ext_part_i386: max
add_ext_part_i386:

max

interface_write()
1 * Linux 0 32 33 130 170 40

2097152
2 P Linux 130 170 41 65401 129 8 1048576000
3 P

Linux 65401 129 9 130672 87 39 1048576000
4 E extended LBA

130672 87 40 243201 110 45 1807779840
5 L Linux

130672 120 9 195943 78 39 1048576000
6 L Linux 195943 111

9 243201 110 45 759199744

Locked