<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://www.marcelpost.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Dd-mount-tar</id>
	<title>Dd-mount-tar - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.marcelpost.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Dd-mount-tar"/>
	<link rel="alternate" type="text/html" href="https://www.marcelpost.com/wiki/index.php?title=Dd-mount-tar&amp;action=history"/>
	<updated>2026-05-17T04:17:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://www.marcelpost.com/wiki/index.php?title=Dd-mount-tar&amp;diff=1265&amp;oldid=prev</id>
		<title>Admin at 01:00, 23 December 2013</title>
		<link rel="alternate" type="text/html" href="https://www.marcelpost.com/wiki/index.php?title=Dd-mount-tar&amp;diff=1265&amp;oldid=prev"/>
		<updated>2013-12-23T01:00:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* Extract from a .tar.gzipped dd file straight to another device&lt;br /&gt;
&lt;br /&gt;
  When creating a dd image of a whole disk it can be worthwhile compressing it using .tar.gz&lt;br /&gt;
&lt;br /&gt;
  The resulting file can still be extracted and dd&amp;#039;ed to a new disk all in one go:&lt;br /&gt;
&lt;br /&gt;
  # tar xz0f disk-image_dd.tar.gz | dd of=/dev/sda bs=1M&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* To watch the progress of an ongoing dd command, send it the -USR1 kill signal:&lt;br /&gt;
&lt;br /&gt;
  - find the pid of the dd command&lt;br /&gt;
  - send the kill command: &lt;br /&gt;
&lt;br /&gt;
       # kill -USR1 &amp;lt;pid&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   This will not kill the running dd process, it&amp;#039;s just a method of communicating signals to the dd program.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* mount a partition inside a whole-disk dd image&lt;br /&gt;
&lt;br /&gt;
  - install parted if you haven&amp;#039;t done so already&lt;br /&gt;
  - run parted on the dd file&lt;br /&gt;
  - switch to bytes  &amp;#039;unit B&amp;#039;&lt;br /&gt;
  - print the partition table &amp;#039;print&amp;#039;&lt;br /&gt;
  - take note of the Start value of the partition you wish to mount (drop the &amp;#039;B&amp;#039; at the end of the number!)&lt;br /&gt;
  - quit parted &amp;#039;quit&amp;#039;&lt;br /&gt;
  - mount the partition using the offset argument&lt;br /&gt;
     &lt;br /&gt;
       # mount whole-disk.dd -o loop,offset=&amp;lt;startposition&amp;gt; /mnt/partition&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* mount a partition inside a tar.gzipped whole-disk dd image&lt;br /&gt;
&lt;br /&gt;
  - use the above technique to obtain the offset for the partition you wish to mount&lt;br /&gt;
  - install kpartx if you haven&amp;#039;t done so already&lt;br /&gt;
&lt;br /&gt;
  (http://unix.stackexchange.com/questions/31669/is-it-possible-to-mount-a-gzip-compressed-dd-image-on-the-fly)&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>