“驗證光碟”在燒錄後驗證資料的實際操作是什麼?

“驗證光碟”功能非常有助於確保新刻錄的光碟效果良好,但它究竟是如何工作的呢?今天的超級使用者問答帖子回答了一位好奇的讀者的問題。...

“驗證光碟”在燒錄後驗證資料的實際操作是什麼?

“驗證光碟”功能非常有助於確保新刻錄的光碟效果良好,但它究竟是如何工作的呢?今天的超級使用者問答帖子回答了一位好奇的讀者的問題。

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。

圖片由cobalt123(Flickr)提供。

問題

超級使用者讀卡器user1301428想知道光碟燒錄後如何進行驗證:

What does verify disc after burning actually do to verify the data? I imagine it is some kind of comparison between the original files and the files that have been burned on the disc, but does anybody know how it is really done at a low level?

I mean, does it create a hash of the source and destination content, then compares them? If so, does it store the hash of the burned content in RAM? Or does it save it in a temporary file on the hard drive? Is there a log file of what is going on?

Just curious to know exactly how this feature works. And I am referring to Windows Image Burner.

光碟驗證過程是如何工作的?

答案

超級使用者貢獻者frankthomas和Synetech為我們提供了答案。首先,弗蘭克·托馬斯:

Check out these MSDN pages on windows API for the IBurnVerification interface and the IMAPI_BURN_VERIFICATION_LEVEL enum.

For data discs, it looks like in quick mode it does not checksum the entire disc, just a selection of sectors. It then makes sure that the API calls READ_DISC_INFO and READ_TRACK_INFO succeed against the new disc.

For full verification, it performs the above checks, then does a full checksum on the last session on the new disc against a checksum computed on the memory stream being burned. The checksums have to be stored in ram, but they are likely short lived values. Note that the comparison is against the disc image in RAM, not the source media itself, so if the source data did not read correctly, it will be written incorrectly. Verification will not detect this.

For music discs, it focuses on checking READ_TRACK_INFO and the disc table of contents, but does not perform a checksum calculation. There is no full verification mode for music.

接著是Synetech的回答:

Frank nicely explained the Windows-specific verification. I will give a more general answer.

  • What does Verify disc after burning actually do to verify the data?
  • I mean, does it create a hash of the source and destination content, then compares them? If so, does it store the hash of the burned content in RAM? Or does it save it in a temporary file on the hard drive? Is there a log file of what is going on?

That is certainly one way a comparison can be implemented: hash one file (hopefully with a sufficiently large—read low chance of collision algorithm), repeat for the other, and compare hashes. If that is how a verification is implemented, then you will be able to see the drive-LED flash for a while, then the CD/DVD-LED flash for a while.

Another way to implement the verification is to read a block of one file, then the same block from the other file, compare them, then repeat until the end of the file is reached. In this case, you will see the LEDs of the two drives alternating back and forth.

Of course, if the the hard-drive and optical drive do not have LEDs, then it will not be as obvious. But you can still see it with something like ProcessMonitor because it will log a series of reads from one, then the other either in a single, big burst or alternating, **all bursts.

  • I imagine it is some kind of comparison between the original files and the files that have been burned on the disc, but does anybody know how it is really done at a low level?

Actually, all it really does is to flush the drive cache so that the comparison function is reading the data from the actual disc instead of from the memory cache. Obviously this is a critical step because if the verification is done from cache, then it does not represent what is actually on the disc, so corruption can easily slip through.

You can see whether a comparison is done from the drive or from the cache in RAM by how fast it occurs. If you manually do a simple comparison (i.e. with WinDiff, WinMerge, or by hashing them with a hashing tool), you will notice that the comparison happens much faster than expected because it is reading the files from memory cache. You must flush the cache to force it to read from the actual disc. For optical drives (and other removable media like flash-drives and memory-cards), simply ejecting the drive is enough to flush the cache, but for hard-drives, it is not nearly as simple (though usually that does not matter because the new copy is the one you want to test).


有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。

  • 發表於 2021-04-11 10:16
  • 閱讀 ( 51 )
  • 分類:網際網路

你可能感興趣的文章

如何對mac上的檔案和資料夾進行密碼保護

...後轉到“檔案”>“設定密碼”。輸入密碼,然後驗證密碼。如果需要提示來幫助您記住密碼,請輸入密碼提示。然後,單擊設定密碼。 ...

  • 發佈於 2021-03-14 01:15
  • 閲讀 ( 61 )

如何徹底擦除硬碟

... 也可以啟用驗證模式(V),儘管這會延長擦除過程。 ...

  • 發佈於 2021-03-22 16:06
  • 閲讀 ( 65 )

在計算機上備份資料的最佳方法是什麼?

... 它可能已經過時了,但將資料儲存到光碟上仍然是建立備份的一種令人驚訝的可靠方法。 ...

  • 發佈於 2021-03-22 23:11
  • 閲讀 ( 64 )

使用以下10個工具從iso建立一個可引導usb

... 壞扇區:一些ISO到USB工具允許您執行壞扇區檢查。在燒錄開始之前,您的USB將被掃描,修復任何不規則之處,以確保您的安裝順利進行。有點像整理桌面碎片,但規模要小得多。 ...

  • 發佈於 2021-03-23 17:58
  • 閲讀 ( 72 )

7個認證資料科學課程,透過coursera提升您的工作技能

想圍繞資料科學開始職業道路嗎?為什麼不從Coursera開始呢? ...

  • 發佈於 2021-03-23 20:25
  • 閲讀 ( 60 )

如何在windows 7中燒錄照片和影片DVD(無需額外軟體)

...個指南。 第一步:載入媒體 開啟DVD驅動器並**一張空白光碟。只要您的DVD燒錄機支援,任何型別的可燒錄DVD(DVD-R、DVD+R、DVD-RW等)都可以使用。 單擊開始按鈕,然後鍵入“dvd”。Windows dvd Maker應是第一個結果單擊它啟動程式...

  • 發佈於 2021-04-07 15:21
  • 閲讀 ( 46 )

如何將任何影片檔案刻錄到可播放dvd

...和重新開始的機會。如果您想格外小心,請選中“燒錄後驗證光碟”。這將執行一系列檢查,以確保光碟燒錄完成後正常工作。 完成後,單擊“接受”。 在此之後,您可以調整DVD Flick將新增的DVD選單。雖然這並不是絕對必要的...

  • 發佈於 2021-04-07 17:07
  • 閲讀 ( 58 )

如何將任何影片檔案刻錄到可播放的dvd

...和重新開始的機會。如果您想格外小心,請選中“燒錄後驗證光碟”。這將執行一系列檢查,以確保光碟燒錄完成後正常工作。 完成後,單擊“接受”。 在此之後,您可以調整DVD Flick將新增的DVD選單。雖然這並不是絕對必要的...

  • 發佈於 2021-04-07 17:19
  • 閲讀 ( 57 )

如何在xbox one上玩xbox 360遊戲

...e實際上並沒有從光碟上玩遊戲。Xbox One只需要檢查光碟並驗證它是什麼。真正的遊戲是從微軟的伺服器上下載,並從你的Xbox One的硬碟上執行。只要Xbox One能識別光碟,你就沒事。 拿到光碟後,將其**Xbox One。Xbox One會告訴你需要...

  • 發佈於 2021-04-09 00:07
  • 閲讀 ( 66 )

在何處合法下載windows 10、8.1和7 isos

...金鑰,請轉到Windows7下載頁,輸入產品金鑰,然後單擊“驗證”開始下載過程。 驗證產品金鑰後,選擇要下載的產品語言,然後單擊“確認” 接下來,選擇您想要的是32位還是64位版本的Windows 7。當您單擊您想要的任何版本時...

  • 發佈於 2021-04-09 10:57
  • 閲讀 ( 58 )
蘿蔔那麼萌
蘿蔔那麼萌

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦