当前位置:  开发笔记 > 运维 > 正文

从光学介质中恢复,忽略读取错误

如何解决《从光学介质中恢复,忽略读取错误》经验,为你挑选了2个好方法。

我备份了以光学媒体(CD和DVD)存档的文件.这些都有par2恢复文件,存储在不同的媒体上.即使在没有par2文件的情况下,在一个光驱上读取时的轻微错误也可以在另一个驱动器上正常读取.

问题是,当读取错误的媒体时,读取时间非常长,因为设备往往会多次重试.

问题是:我如何控制重试次数(即设置为不重试或只尝试一次)?一些系统调用?我可以下载的库吗?我是否必须处理SCSI层?

问题主要是关于Linux,但任何Win32指针都会受到欢迎.



1> derobert..:

man readom,cdrecord附带的程序:

   -noerror
          Do not abort if the high level error checking in readom found an
          uncorrectable error in the data stream.

   -nocorr
          Switch  the  drive  into  a mode where it ignores read errors in
          data sectors that are a result of uncorrectable  ECC/EDC  errors
          before reading.  If readom completes, the error recovery mode of
          the drive is switched back to the remembered old mode.
   ...

   retries=#
          Set the retry count for high level retries in readom to #.   The
          default  is  to do 128 retries which may be too much if you like
          to read a CD with many unreadable sectors.



2> motobói..:

最好的工具是dd_rhelp。只是

dd_rhelp /dev/cdrecorder /home/myself/DVD.img

,喝杯茶,观看漂亮的图形。

dd_rhelp rpm软件包信息:

dd_rhelp在整个磁盘上使用ddrescue,并尝试收集最大有效数据,然后再尝试对坏扇区进行老化。如果您使dd_rhelp无限期工作,则其效果与简单的dd_rescue类似。但是由于您可能没有这个无限的时间,dd_rhelp会跳过坏扇区并营救有效数据。从长远来看,它将使用dd_rescue解析所有设备。

您可以随时按Ctrl-C组合键,然后随意重新运行,由于dd_rescue所创建的日志文件的存在,dd_rhelp可以恢复作业。此外,正在救援的设备的ASCII图片中显示了进度。

我本人已经使用了很多,并且非常,容易实现。

您可以将其从DAG安装到发行版之类的Red Hat。

推荐阅读
郑小蒜9299_941611_G
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有