bug-ddrescue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-ddrescue] Feature request: "Preview" of recently read data


From: Felix Ehlermann
Subject: [Bug-ddrescue] Feature request: "Preview" of recently read data
Date: Tue, 12 Aug 2014 16:55:29 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Dear Antonio,

the somewhat erratic behavior of a filing drive I have on my desk right now gave me the idea to suggest the following feature to be added to ddrescue:

The screen output could be extended by an area displaying a preview of the data most recently read.

This way users could tell rather easily if the currently read area of the drive is filled or empty, if e.g. the drive is returning garbage data (maybe some USB bridge has decided to return only zeroes on all requests).

If it is not too much effort it could be displayed "hex editor" style and the number of preview-lines could be made configurable? Assuming that there is some kind of input buffer in the current implementation just the last few n*16 bytes from it could be included in the output.

E.g. my terminal at the office is something around 300x120 characters in fullscreen so I could get a full sector "previewed".


If someone on this list has an idea how to achieve this by using some external tool (e.g. something like less with follow-mode but for binary data..) I would be happy to hear about it. Since ddrescue does also perform "random-access" writes the image-file I would not know of any easy way to follow the writes to the file with an external program..


Kind Regards
Felix


P.S:
Mockup output (additions are blue):

# ddrescue --data-preview=3 --input-position=315G /dev/sdb sdb.img sdb.log

GNU ddrescue 1.18.1
Press Ctrl-C to interrupt
Initial status (read from logfile)
(sizes below are limited to the domain 315000 MB to 500107 MB)
rescued:     7274 kB,  errsize:       0 B,  errors:       0

Most read data:
16E33A 05 00 50 89 05 00 51 89 05 00 52 89 05 00 53 89 ..P...Q...R...S. 16E34A 05 00 54 89 05 00 55 89 05 00 56 89 05 00 57 89 ..T...U...V...W. 16E35A 05 00 58 89 05 00 59 89 05 00 5a 89 05 00 5b 89 ..X...Y...Z...[.

Current status
rescued:    49217 kB,  errsize:       0 B,  current rate:    21845 B/s
   ipos:   327911 MB,   errors:       0,    average rate:    21788 B/s
   opos:   327911 MB, run time:   32.08 m,  successful read:       0 s ago
Copying non-tried blocks... Pass 1 (forwards)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]