<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.thatoldtech.net/index.php?action=history&amp;feed=atom&amp;title=Virtualize_disk_with_minimal_space</id>
	<title>Virtualize disk with minimal space - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.thatoldtech.net/index.php?action=history&amp;feed=atom&amp;title=Virtualize_disk_with_minimal_space"/>
	<link rel="alternate" type="text/html" href="https://wiki.thatoldtech.net/index.php?title=Virtualize_disk_with_minimal_space&amp;action=history"/>
	<updated>2026-04-14T14:21:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.thatoldtech.net/index.php?title=Virtualize_disk_with_minimal_space&amp;diff=74&amp;oldid=prev</id>
		<title>Admin at 10:44, 8 August 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.thatoldtech.net/index.php?title=Virtualize_disk_with_minimal_space&amp;diff=74&amp;oldid=prev"/>
		<updated>2022-08-08T10:44:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:44, 8 August 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Clean things up&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Clean things up&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Boot from separate media e.g. boot-repair live iso, shrink partition to desired size with gparted  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Boot from separate media e.g. boot-repair live iso, shrink partition to desired size with gparted  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* On other system connect disk, check partition layout with fdisk -l, dd if=source of=file bs=[Units in fdisk] count=[end of last partition +1 to cover last +33 for backup gpt table] (https://serverfault.com/a/853753 https://forums.raspberrypi.com/viewtopic.php?t=288670#p1745543)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* On other system connect disk, check partition layout with fdisk -l, dd if=source of=file bs=[Units in fdisk] count=[end of last partition +1 to cover last +33 for backup gpt table &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;if gpt&lt;/ins&gt;] (https://serverfault.com/a/853753 https://forums.raspberrypi.com/viewtopic.php?t=288670#p1745543)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Boot from separate media with image attached, gparted likely will show unpartitioned&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Boot from separate media with image attached, gparted likely will show unpartitioned&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Use &lt;/del&gt;sgdisk -e /dev/disk to recreate backup gpt partition table at end of disk (https://askubuntu.com/a/1370440)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;If GPT disk: use &lt;/ins&gt;sgdisk -e /dev/disk to recreate backup gpt partition table at end of disk (https://askubuntu.com/a/1370440)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* If wanting to make a sparse qcow2 image:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;** Mount image, fill empty space with zeroes with dd if=/dev/zero of=tmpfile, rm tmpfile&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;** qemu-img convert -f raw -O qcow2 -S 4k [source] [dest]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key my_wiki-wk:diff:1.41:old-73:rev-74:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.thatoldtech.net/index.php?title=Virtualize_disk_with_minimal_space&amp;diff=73&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;* Clean things up * Boot from separate media e.g. boot-repair live iso, shrink partition to desired size with gparted  * On other system connect disk, check partition layout w...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.thatoldtech.net/index.php?title=Virtualize_disk_with_minimal_space&amp;diff=73&amp;oldid=prev"/>
		<updated>2022-08-03T21:48:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;* Clean things up * Boot from separate media e.g. boot-repair live iso, shrink partition to desired size with gparted  * On other system connect disk, check partition layout w...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* Clean things up&lt;br /&gt;
* Boot from separate media e.g. boot-repair live iso, shrink partition to desired size with gparted &lt;br /&gt;
* On other system connect disk, check partition layout with fdisk -l, dd if=source of=file bs=[Units in fdisk] count=[end of last partition +1 to cover last +33 for backup gpt table] (https://serverfault.com/a/853753 https://forums.raspberrypi.com/viewtopic.php?t=288670#p1745543)&lt;br /&gt;
* Boot from separate media with image attached, gparted likely will show unpartitioned&lt;br /&gt;
* Use sgdisk -e /dev/disk to recreate backup gpt partition table at end of disk (https://askubuntu.com/a/1370440)&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>