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.
Cutting a recording is impossible
Re: Cutting a recording is impossible #21
Posted 15 April 2020 - 13:21
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
Re: Cutting a recording is impossible #23
Re: Cutting a recording is impossible #24
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
Re: Cutting a recording is impossible #26
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
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
Re: Cutting a recording is impossible #29
Re: Cutting a recording is impossible #30
Re: Cutting a recording is impossible #31
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
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
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
Posted 21 April 2020 - 11:11
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/mapfileReplace filename with the correct recording filename. If it contains spaces use “” or escape spaces with \<space>
Re: Cutting a recording is impossible #35
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
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
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
Re: Cutting a recording is impossible #39
Re: Cutting a recording is impossible #40
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users