<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Home</title>
	<atom:link href="http://catncat.blog.ubuntu.org.cn/feed" rel="self" type="application/rss+xml" />
	<link>http://catncat.blog.ubuntu.org.cn</link>
	<description>...</description>
	<pubDate>Fri, 27 Jun 2008 06:56:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>vmdk2vdi</title>
		<link>http://catncat.blog.ubuntu.org.cn/archives/35</link>
		<comments>http://catncat.blog.ubuntu.org.cn/archives/35#comments</comments>
		<pubDate>Thu, 26 Jun 2008 06:53:33 +0000</pubDate>
		<dc:creator>catncat</dc:creator>
		
		<category><![CDATA[*]]></category>

		<guid isPermaLink="false">http://catncat.blog.ubuntu.org.cn/archives/35</guid>
		<description><![CDATA[    $ qemu-img convert win.vmdk -O win-raw.bin
$ export LD_LIBRARY_PATH=&#8221;/opt/virtualbox&#8221;
$ vditool DD win.vdi win-raw.bin
$ vditool SHRINK win.vdi
]]></description>
			<content:encoded><![CDATA[<p>    $ qemu-img convert win.vmdk -O win-raw.bin</p>
<p>$ export LD_LIBRARY_PATH=&#8221;/opt/virtualbox&#8221;</p>
<p>$ <a href="http://www.virtualbox.org/download/testcase/vditool" title="下载">vditool</a> DD win.vdi win-raw.bin</p>
<p>$ vditool SHRINK win.vdi</p>
]]></content:encoded>
			<wfw:commentRss>http://catncat.blog.ubuntu.org.cn/archives/35/feed</wfw:commentRss>
		</item>
		<item>
		<title>挂载 vdi 文件</title>
		<link>http://catncat.blog.ubuntu.org.cn/archives/34</link>
		<comments>http://catncat.blog.ubuntu.org.cn/archives/34#comments</comments>
		<pubDate>Thu, 26 Jun 2008 06:45:13 +0000</pubDate>
		<dc:creator>catncat</dc:creator>
		
		<category><![CDATA[*]]></category>

		<guid isPermaLink="false">http://catncat.blog.ubuntu.org.cn/archives/34</guid>
		<description><![CDATA[$ vditool DUMP NTFS.vdi
vditool    Copyright (c) 2004-2005 InnoTek Systemberatung GmbH.
Dumping VDI image file=&#8221;NTFS.vdi&#8221; into the log file&#8230;
Log created: 2008-06-26T07:23:24.202875000Z
Executable: /public/bin/vditool
Arg[0]: vditool
Arg[1]: DUMP
Arg[2]: NTFS.vdi
&#8212; Dumping VDI Disk, Images=1
Dumping VDI image &#8220;NTFS.vdi&#8221; mode=r/o fOpen=1 File=00000003
Header: Version=00010001 Type=2 Flags=0 Size=2147483648
Header: cbBlock=1048576 cbBlockExtra=0 cBlocks=2048 cBlocksAllocated=2048
Header: offBlocks=512 offData=8704
Header: Geometry: C/H/S=520/128/63 cbSec×=512
Header: uuidCreation={2f6d1089-800d-4489-e596-646722a2f13d}
Header: uuidModification={19664572-879b-459f-539e-b52a2af62469}
Header: uuidParent={00000000-0000-0000-0000-000000000000}
Header: uuidParentModification={00000000-0000-0000-0000-000000000000}
Image:  fFlags=00000000 offStartBlocks=512 offStartData=8704
Image:  uBlockMask=000FFFFF uShiftIndex2Offset=20 [...]]]></description>
			<content:encoded><![CDATA[<p>$ vditool DUMP NTFS.vdi<br />
vditool    Copyright (c) 2004-2005 InnoTek Systemberatung GmbH.</p>
<p>Dumping VDI image file=&#8221;NTFS.vdi&#8221; into the log file&#8230;<br />
Log created: 2008-06-26T07:23:24.202875000Z<br />
Executable: /public/bin/vditool<br />
Arg[0]: vditool<br />
Arg[1]: DUMP<br />
Arg[2]: NTFS.vdi<br />
&#8212; Dumping VDI Disk, Images=1<br />
Dumping VDI image &#8220;NTFS.vdi&#8221; mode=r/o fOpen=1 File=00000003<br />
Header: Version=00010001 <strong>Type=2</strong> Flags=0 Size=2147483648<br />
Header: cbBlock=1048576 cbBlockExtra=0 cBlocks=2048 cBlocksAllocated=2048<br />
Header: offBlocks=512 offData=8704<br />
Header: Geometry: C/H/S=520/128/63 cbSec×=512<br />
Header: uuidCreation={2f6d1089-800d-4489-e596-646722a2f13d}<br />
Header: uuidModification={19664572-879b-459f-539e-b52a2af62469}<br />
Header: uuidParent={00000000-0000-0000-0000-000000000000}<br />
Header: uuidParentModification={00000000-0000-0000-0000-000000000000}<br />
Image:  fFlags=00000000 offStartBlocks=512 offStartData=8704<br />
Image:  uBlockMask=000FFFFF uShiftIndex2Offset=20 uShiftOffset2Index=20 offStartBlockData=0<br />
The operation completed successfully!</p>
<p>Type=1 ：动态大小 (不能挂载)</p>
<p>Type=2：固定大小(可以挂载)</p>
<p>offData=8704：数据区偏移</p>
<p>跳过MBR，数据从 8704+63*512 = 40960 开始</p>
<p>$ sudo mount -t ntfs-3g -o rw,noatime,noexec,loop,offset=40960 NTFS.vdi /mnt/ef</p>
<p>挂载的是实际的“磁盘”，不包含快照。</p>
]]></content:encoded>
			<wfw:commentRss>http://catncat.blog.ubuntu.org.cn/archives/34/feed</wfw:commentRss>
		</item>
		<item>
		<title>firefox 关联 ed2k://</title>
		<link>http://catncat.blog.ubuntu.org.cn/archives/33</link>
		<comments>http://catncat.blog.ubuntu.org.cn/archives/33#comments</comments>
		<pubDate>Thu, 26 Jun 2008 06:35:14 +0000</pubDate>
		<dc:creator>catncat</dc:creator>
		
		<category><![CDATA[*]]></category>

		<guid isPermaLink="false">http://catncat.blog.ubuntu.org.cn/archives/33</guid>
		<description><![CDATA[ $ cat ~/.mozilla/firefox/Default/user.js
user_pref(&#8221;network.protocol-handler.external.ed2k&#8221;, true);
]]></description>
			<content:encoded><![CDATA[<p> $ cat ~/.mozilla/firefox/Default/user.js<br />
user_pref(&#8221;network.protocol-handler.external.ed2k&#8221;, true);</p>
]]></content:encoded>
			<wfw:commentRss>http://catncat.blog.ubuntu.org.cn/archives/33/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
