Jump to content


Photo

Cutting a recording is impossible


  • Please log in to reply
49 replies to this topic

Re: Cutting a recording is impossible #21 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 15 April 2020 - 13:21

Best option is to remove the disk, connect it to a PC (internally or using an USB enclosure), boot the PC with a linux recovery CD/DVD (one that has ddrescue and safecopy), and use that to try to copy the files from the disk.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Cutting a recording is impossible #22 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 15 April 2020 - 15:53

You can try to use this binary. Not sure whether it works as it is dynamically linked (source is debian website).

Don't write the file onto the faulty disk. Write it e.g. on attached USB stick.

Attached Files


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Cutting a recording is impossible #23 -M-

  • Senior Member
  • 128 posts

+4
Neutral

Posted 16 April 2020 - 18:58

If that version of ddrescue doesn't work (and you want try it). Maybe someone can build it (if it isn't available for easy install). Should be quite easy, since it is a recipe for it in openpli-oe-core.


Edited by -M-, 16 April 2020 - 18:58.


Re: Cutting a recording is impossible #24 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 16 April 2020 - 19:01

ddrescue seems to have a build recipe in openembedded, so if needed I can build an ipk for you, if you let me know for which box.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Cutting a recording is impossible #25 mrvica

  • Senior Member
  • 1,224 posts

+81
Good

Posted 16 April 2020 - 19:05

according to his shell prompt it is a DM8000, mipsel box, the binary above is OK for mipsel



Re: Cutting a recording is impossible #26 polkwan

  • Senior Member
  • 97 posts

0
Neutral

Posted 17 April 2020 - 10:31

ddrescue seems to have a build recipe in openembedded, so if needed I can build an ipk for you, if you let me know for which box.

 

Wow that would be awesome :) It's a DM8000 indeed :)

 

I took an old laptop and installed Ubuntu. As I'm a total n00b on Linux please excuse me for the experience I had :

- I installed ddrescue (so far so good)

- I followed the tuto here : https://doc.ubuntu-fr.org/ddrescue

- ddrescue is now running for whole night and I feel like I had to do something not completely accurate when I typed the command. Let me explain. I first wanted to try with a specific small TS which suffered of this. When I typed the command (with the name of the file) it wasn't recognized. So I tried the command only with the folder name and from there the process could start. Now the process is ongoing but I wonder if this will really work as there are like 10 files in the source folder and that ddrescue requires to mention 1 name for the target file name...

- So I have now one "test.ts" on my external drive (usb stick) which is generated by ddrescue. It's 0 ko after 11 hours of ddrescue processing so I guess it's not doing what I expected... 

 

If such a great tool existed directly on OpenPLi it would be, I guess, much easier to use, right ?


Edited by polkwan, 17 April 2020 - 10:32.


Re: Cutting a recording is impossible #27 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 17 April 2020 - 10:50

If such a great tool existed directly on OpenPLi it would be, I guess, much easier to use, right ?

 

No, the tool would be identical.
 

The basic syntax is simple:

cd /tmp
rm -f mapfile
ddrescue -v <oldfilepath> <newfilepath> mapfile

this creates the mapfile in the tmp directory, and deletes the old one if it exists, before you start.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Cutting a recording is impossible #28 polkwan

  • Senior Member
  • 97 posts

0
Neutral

Posted 21 April 2020 - 00:24

Thanks.

 

So I place de content of the ddrescue.zip in /media/usb/

 

Then I sent this command : 

cd /tmp
rm -f mapfile
ddrescue -v /media/hdd/movie /media/usb mapfile

However Putty send me this error back : 

-sh: ddrescue: not found

Edited by polkwan, 21 April 2020 - 00:31.


Re: Cutting a recording is impossible #29 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 21 April 2020 - 06:48

/media/usb/ddrescue....
And maybe before
chmod 755 /media/usb/ddrescue
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Cutting a recording is impossible #30 polkwan

  • Senior Member
  • 97 posts

0
Neutral

Posted 21 April 2020 - 09:49

Same thing... :/

 
 

Attached Files



Re: Cutting a recording is impossible #31 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 21 April 2020 - 09:55

If you have manually installed it, it is not in the path.

 

So assuming you installed it in /media/usb, you need to use

/media/usb/ddrescue -v /media/hdd/movie /media/usb mapfile

 


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Cutting a recording is impossible #32 polkwan

  • Senior Member
  • 97 posts

0
Neutral

Posted 21 April 2020 - 10:09

Thanks ! Indeed that was this !

 

However it lets me know that the output file isn't a regular file. What does that mean ? 

root@dm8000:/var/volatile/tmp# /media/usb/ddrescue -v /media/hdd/movie /media/usb mapfile
ddrescue: Output file exists and is not a regular file.
ddrescue: Use '--force' if you really want to overwrite it, but be
          aware that all existing data in the output file will be lost.
Try '/media/usb/ddrescue --help' for more information.



Re: Cutting a recording is impossible #33 polkwan

  • Senior Member
  • 97 posts

0
Neutral

Posted 21 April 2020 - 10:41

As I have pretty no skills with such a sort of tools and manipulations please forgive my questions but I'd like to do things well.

 

So, reading the -help section, I understood that I should type my command this way :

 

/media/usb/ddrescue [options] infile outfile [mapfile]

 

[options] stands for the commands listed in -help

[mapfile] stands for some sort of logfile as I understood highly recommended

Am I right so far ?

 

So, it's now that it gets much harder for me. What sort of command should I use in order to retrieve all my damaged TS files from /media/hdd/movie ?


Edited by polkwan, 21 April 2020 - 10:42.


Re: Cutting a recording is impossible #34 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 21 April 2020 - 11:11

As far as I know you can only easily recover file after file and not the whole directory at once. For a whole directory you need to write a little script.
How many recordings are on the disk?

To recover one file, execute this:
/media/usb/ddrescue -v /media/hdd/movie/filename /media/usb/filename /media/usb/mapfile
Replace filename with the correct recording filename. If it contains spaces use “” or escape spaces with \<space>
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Cutting a recording is impossible #35 polkwan

  • Senior Member
  • 97 posts

0
Neutral

Posted 21 April 2020 - 11:32

As far as I know you can only easily recover file after file and not the whole directory at once. For a whole directory you need to write a little script.
How many recordings are on the disk?

 

I'm left with 8 TS on /hdd/media/movie (all others were ok and I could copy/transfer them)



Re: Cutting a recording is impossible #36 polkwan

  • Senior Member
  • 97 posts

0
Neutral

Posted 21 April 2020 - 12:05

So I ran ddrescue with my smallest ts file (~174MB).

I don't think it went the way it was supposed to as the output file is about 64ko... Here is the log from the mapfile :

# Mapfile. Created by GNU ddrescue version 1.21
# Command line: /media/usb/ddrescue -v /media/hdd/movie/rts.ts /media/usb/test.ts /media/usb/mapfile
# Start time:   1970-01-01 13:13:56
# Current time: 1970-01-01 13:13:56
# current_pos  current_status
0x00000000     ?
#      pos        size  status
0x00000000  0x0A5F8000  ?

And from putty

root@dm8000:/var/volatile/tmp# /media/usb/ddrescue -v /media/hdd/movie/rts.ts /m
edia/usb/test.ts /media/usb/mapfile
GNU ddrescue 1.21
About to copy 174030 kBytes from /media/hdd/movie/rts.ts to /media/usb/test.ts.
    Starting positions: infile = 0 B,  outfile = 0 B
    Copy block size: 128 sectors       Initial skip size: 128 sectors
Sector size: 512 Bytes


Press Ctrl-C to interrupt
     ipos:        0 B, non-trimmed:        0 B,  current rate:       0 B/s
     opos:        0 B, non-scraped:        0 B,  average rate:       0 B/s
non-tried:  174030 kB,     errsize:        0 B,      run time:          0s
  rescued:        0 B,      errors:        0,  remaining time:         n/a
percent rescued:   0.00%      time since last successful read:          0s
Copying non-tried blocks... Pass 1 (forwards)Illegal instruction
root@dm8000:/var/volatile/tmp#
 

Edited by polkwan, 21 April 2020 - 12:06.


Re: Cutting a recording is impossible #37 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 21 April 2020 - 13:24

"Illegal instruction" suggests the binary isn't compatible after all...


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Cutting a recording is impossible #38 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 21 April 2020 - 18:08

Please try this ddrescue. This time self build. It's a static binary, so no libs are needed. It's quite large as it's static and not stripped.

Attached Files


Edited by betacentauri, 21 April 2020 - 18:09.

Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Cutting a recording is impossible #39 polkwan

  • Senior Member
  • 97 posts

0
Neutral

Posted 21 April 2020 - 21:07

Thank you very much betacentauri :)

 

I'm trying it right away !



Re: Cutting a recording is impossible #40 polkwan

  • Senior Member
  • 97 posts

0
Neutral

Posted 21 April 2020 - 21:55

Perfect ! It works now !! I could save already 2 files and I've got good hope for the remaining ones :)

 

Again, thanks to all of you who helped me with this !




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users