<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/main.xsl"?>
<b:blog xmlns="http://www.w3.org/1999/xhtml" xmlns:b="http://blog.othree.net"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://blog.othree.net http://blog.othree.net/blooog.xsd">
	<b:blogTitle>O3noBLOG</b:blogTitle>
	<b:blogDescription></b:blogDescription>
	<b:entries>
		<b:entriesMeta>
			<b:listType>s</b:listType>
			<b:listData listID="000472" baseName="par2">PAR2 檔案修復</b:listData>

			<b:previous>
				<b:mTitle>PDF的親和力</b:mTitle>
				<b:mDate>2007/11/03</b:mDate>
				<b:mBase>pdf-accessibility</b:mBase>
			</b:previous>


			<b:next>
				<b:mTitle>Firefox開YouTube的分頁上限？</b:mTitle>
				<b:mDate>2007/11/12</b:mDate>
				<b:mBase>youtube-limited-to-10-tabs</b:mBase>
			</b:next>

		</b:entriesMeta>
		<b:entry entryID="000472" baseName="par2">
			<b:author>
				<b:authorName>othree</b:authorName>
				<b:authorEmail>othree@gmail.com</b:authorEmail>
				<b:authorUrl></b:authorUrl>
			</b:author>
			<b:datetime>
				<b:date>2007-11-08</b:date>
				<b:time>11:14:58</b:time>
			</b:datetime>
			<b:category>software</b:category>

			<b:CommentsAccepted>1</b:CommentsAccepted>



			<b:PingsAccepted>1</b:PingsAccepted>


			<b:title>PAR2 檔案修復</b:title>
			<b:content>
				<b:summary>PTT小軟體版前兩天有人問：「如果傳輸大檔案的過程有錯誤產生，造成檔案部份內容不正確的話，有沒有什麼軟體可以只修復壞掉的地方？」剛好我才看過par2這種檔案格式，當時搜尋找到的敘述是說這種檔案是用來做為檔案錯誤修正用的，所以昨天就先告訴他有這種東西，順便也給他了程式的位置，不過當時我還沒使用過，一直到剛剛才自己測試，自己隨便用文字編輯軟體產生一個檔案，然後用par2命令列工具產生par2檔後，用16進位編輯模式把檔案內容改掉，然後再用par2工具做驗證和修復的動作，結果都是很成功的，以下簡單說一下操作方法。 首先到par2.net的PRODUCTS下載Par2 command Line for windows這個檔案，解壓後把par2.exe放到你想放的地方，接著到你要處理檔案的位置，執行par2 c [filename]，他就會產生一些檔案，副檔名都是par2，但是檔案數量不一定，接著隨便找個方法把原始檔案的內容修改掉，我是用MadEdit的16進位編輯模式來做小修改，這樣你就得到一個算是壞掉的檔案了，這時可以有兩種動作，一是驗證案內容是否正確，二是修復，兩種動作只差在參數不一樣，驗證是執行par2 v [filename]，修復是執行par2 r [filename]，另外修復能力還是有極限的，不過在產生par2檔案時可以調整修復極限的比例，如果要10%（這很大，只是隨便舉例），就改成執行par2 c -r10 [filename]。這樣說明應該足夠一般使用了，還有其他選項可以調整就自己看說明吧，不過我想大部分人需求也是檢查和修復網路上抓來的檔案吧XD。...</b:summary>
				<b:mainContent><p><span class="caps">PTT</span>小軟體版前兩天有人問：「如果傳輸大檔案的過程有錯誤產生，造成檔案部份內容不正確的話，有沒有什麼軟體可以只修復壞掉的地方？」剛好我才看過<strong>par2</strong>這種檔案格式，當時搜尋找到的敘述是說這種檔案是用來做為檔案錯誤修正用的，所以昨天就先告訴他有這種東西，順便也給他了程式的位置，不過當時我還沒使用過，一直到剛剛才自己測試，自己隨便用文字編輯軟體產生一個檔案，然後用par2命令列工具產生par2檔後，用16進位編輯模式把檔案內容改掉，然後再用par2工具做驗證和修復的動作，結果都是很成功的，以下簡單說一下操作方法。</p>

<p>首先到<a href="http://www.par2.net/">par2.net</a>的PRODUCTS下載<strong>Par2 command Line for windows</strong>這個檔案，解壓後把par2.exe放到你想放的地方，接著到你要處理檔案的位置，執行<strong><code>par2 c [filename]</code></strong>，他就會產生一些檔案，副檔名都是par2，但是檔案數量不一定，接著隨便找個方法把原始檔案的內容修改掉，我是用MadEdit的16進位編輯模式來做小修改，這樣你就得到一個算是壞掉的檔案了，這時可以有兩種動作，一是驗證案內容是否正確，二是修復，兩種動作只差在參數不一樣，驗證是執行<strong><code>par2 v [filename]</code></strong>，修復是執行<strong><code>par2 r [filename]</code></strong>，另外修復能力還是有極限的，不過在產生par2檔案時可以調整修復極限的比例，如果要10%（這很大，只是隨便舉例），就改成執行<strong><code>par2 c -r10 [filename]</code></strong>。這樣說明應該足夠一般使用了，還有其他選項可以調整就自己看說明吧，不過我想大部分人需求也是檢查和修復網路上抓來的檔案吧XD。</p></b:mainContent>
				<b:extendContent></b:extendContent>
			</b:content>
			<b:comments commentCount="7">

				<b:comment commentID="031769" entryID="000472">
					<b:author>
						<b:authorName></b:authorName>
						<b:authorEmail></b:authorEmail>
						<b:authorUrl></b:authorUrl>
					</b:author>
					<b:datetime>
						<b:date>2007-11-08</b:date>
						<b:time>12:12:48</b:time>
					</b:datetime>
					<b:content>
						<b:mainContent><p>以前在 irc fserv 時代，<br />
我就有幸用過 zidrav 這個軟體，<br />
原理應該是一樣的，不妨試試。</p></b:mainContent>
					</b:content>
				</b:comment>

				<b:comment commentID="031775" entryID="000472">
					<b:author>
						<b:authorName></b:authorName>
						<b:authorEmail></b:authorEmail>
						<b:authorUrl></b:authorUrl>
					</b:author>
					<b:datetime>
						<b:date>2007-11-09</b:date>
						<b:time>01:58:19</b:time>
					</b:datetime>
					<b:content>
						<b:mainContent><p>以前在日本 UG 時代，<br />
我就有幸用過 TBTB 這個軟體，<br />
原理應該是一樣的，不妨試試。</p></b:mainContent>
					</b:content>
				</b:comment>

				<b:comment commentID="031777" entryID="000472">
					<b:author>
						<b:authorName>ooo</b:authorName>
						<b:authorEmail>othree@gmail.com</b:authorEmail>
						<b:authorUrl>http://blog.othree.net</b:authorUrl>
					</b:author>
					<b:datetime>
						<b:date>2007-11-09</b:date>
						<b:time>02:17:30</b:time>
					</b:datetime>
					<b:content>
						<b:mainContent><p>怎麼兩篇都一樣格式XD，irc fserv時代我沒經歷，所以zidrav其實是第一次聽到，至於TBTB只有日文介面啊～～。</p></b:mainContent>
					</b:content>
				</b:comment>

				<b:comment commentID="031782" entryID="000472">
					<b:author>
						<b:authorName>Alica</b:authorName>
						<b:authorEmail>alicaccs@gn.tpemail.net.tw</b:authorEmail>
						<b:authorUrl>http://www.alica.idv.tw/</b:authorUrl>
					</b:author>
					<b:datetime>
						<b:date>2007-11-09</b:date>
						<b:time>17:49:26</b:time>
					</b:datetime>
					<b:content>
						<b:mainContent><p>老實說重抓才是真的吧？如果網路傳大檔會爛掉（由md5得知），那麼一樣要透過網路傳輸才能給對方的par2檔難道就不會爛掉？到頭來還是找個好網路重抓才能一勞永逸。</p></b:mainContent>
					</b:content>
				</b:comment>

				<b:comment commentID="031810" entryID="000472">
					<b:author>
						<b:authorName>#1</b:authorName>
						<b:authorEmail></b:authorEmail>
						<b:authorUrl></b:authorUrl>
					</b:author>
					<b:datetime>
						<b:date>2007-11-10</b:date>
						<b:time>20:38:46</b:time>
					</b:datetime>
					<b:content>
						<b:mainContent><p><br />
要是 server 上有相應的指令，當然是使用修復的好…<br />
至少你只要確保修正檔的 hash 沒有壞，<br />
傳壞的機率也小一點。</p>

<p>如果遇到幾 GB 的檔案，常會這麼想啊…</p></b:mainContent>
					</b:content>
				</b:comment>

				<b:comment commentID="031912" entryID="000472">
					<b:author>
						<b:authorName>ooo</b:authorName>
						<b:authorEmail>othree@gmail.com</b:authorEmail>
						<b:authorUrl>http://blog.othree.net</b:authorUrl>
					</b:author>
					<b:datetime>
						<b:date>2007-11-12</b:date>
						<b:time>23:55:09</b:time>
					</b:datetime>
					<b:content>
						<b:mainContent><p>如果是P2P抓來的大概也是希望能用修復的就好了吧～</p></b:mainContent>
					</b:content>
				</b:comment>

				<b:comment commentID="032424" entryID="000472">
					<b:author>
						<b:authorName>321</b:authorName>
						<b:authorEmail></b:authorEmail>
						<b:authorUrl></b:authorUrl>
					</b:author>
					<b:datetime>
						<b:date>2007-11-29</b:date>
						<b:time>02:23:23</b:time>
					</b:datetime>
					<b:content>
						<b:mainContent><p>如果你抓的是25G的1080P影片<br />
你會選擇重抓??</p>

<p>如果沒太糟的時，我會選擇修復</p></b:mainContent>
					</b:content>
				</b:comment>

			</b:comments>
			<b:trackbacks trackbackCount="0" trackbackURL="http://othree.net/mt/mt-tb.cgi/471">

			</b:trackbacks>
		</b:entry>
	</b:entries>
</b:blog>