<?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" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Kevin Deldycke &#187; windows</title> <atom:link href="http://kevin.deldycke.com/tag/windows/feed/" rel="self" type="application/rss+xml" /><link>http://kevin.deldycke.com</link> <description>Free software engineer &#38; wannabe videomaker</description> <lastBuildDate>Fri, 03 Feb 2012 19:08:27 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Windows glitches</title><link>http://kevin.deldycke.com/2012/01/windows-glitches/</link> <comments>http://kevin.deldycke.com/2012/01/windows-glitches/#comments</comments> <pubDate>Tue, 03 Jan 2012 11:32:39 +0000</pubDate> <dc:creator>Kev</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[glitches]]></category> <category><![CDATA[UI]]></category> <category><![CDATA[windows]]></category><guid isPermaLink="false">http://kevin.deldycke.com/?p=4367</guid> <description><![CDATA[Using the holidays to tidy up my archives, I stumble upon old screenshots of Windows glitches I encountered when I was a student. Yes, the base platform at school was Windows, but it was 10 years ago (if this can &#8230; <a href="http://kevin.deldycke.com/2012/01/windows-glitches/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Using the holidays to tidy up my archives, I stumble upon old screenshots of Windows glitches I encountered when I was a student. Yes, the base platform at school was Windows, but it was 10 years ago (if this can constitute a valid excuse to not use Linux). Wait. What ? 10 years ago ? How time flies !</p><p>Anyway. Without further ado, let&#8217;s start this moment of pure nostalgia with a 1.74 Gb floppy disk:</p><p><a href="http://kevin.deldycke.com/wp-content/uploads/2012/01/SizePB.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2012/01/SizePB.png" alt="" title="SizePB" width="277" height="222" class="aligncenter size-full wp-image-4368" /></a></p><p>This one was produced by repeatedly screenshoting the current screen in a Word document. I found it interesting because of the decaying pink color. I think this degradation was the result of cumulative color dithering or any other image compression artifact:</p><p><a href="http://kevin.deldycke.com/wp-content/uploads/2012/01/df.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2012/01/df-300x225.png" alt="" title="df" width="300" height="225" class="aligncenter size-medium wp-image-4369" /></a></p><p>The last ones are not glitches <em>per se</em> but major UI issues. Here automated system upgrades triggered a modal window you weren&#8217;t able to close or dismiss, leaving you with no choice but reboot the machine and lose any unsaved work:</p><p><a href="http://kevin.deldycke.com/wp-content/uploads/2012/01/update.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2012/01/update-300x225.png" alt="" title="update" width="300" height="225" class="aligncenter size-medium wp-image-4370" /></a></p><p><a href="http://kevin.deldycke.com/wp-content/uploads/2012/01/ie1.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2012/01/ie1-300x225.png" alt="" title="ie" width="300" height="225" class="aligncenter size-medium wp-image-4372" /></a></p> ]]></content:encoded> <wfw:commentRss>http://kevin.deldycke.com/2012/01/windows-glitches/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Convert Lotus Notes&#8217; nsf files to mbox with nlconverter</title><link>http://kevin.deldycke.com/2010/09/convert-lotus-notes-nsf-files-mbox-nlconverter/</link> <comments>http://kevin.deldycke.com/2010/09/convert-lotus-notes-nsf-files-mbox-nlconverter/#comments</comments> <pubDate>Thu, 02 Sep 2010 13:17:43 +0000</pubDate> <dc:creator>Kev</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[CLI]]></category> <category><![CDATA[email]]></category> <category><![CDATA[GUI]]></category> <category><![CDATA[IBM Lotus Notes]]></category> <category><![CDATA[iCal]]></category> <category><![CDATA[mail]]></category> <category><![CDATA[mbox]]></category> <category><![CDATA[nlconverter]]></category> <category><![CDATA[Python]]></category> <category><![CDATA[Script]]></category> <category><![CDATA[windows]]></category> <category><![CDATA[Windows 2000]]></category><guid isPermaLink="false">http://kevin.deldycke.com/?p=1848</guid> <description><![CDATA[There is a great piece of software called nlconverter. It&#8217;s a tool designed to convert Lotus Notes&#8217; .nsf files to mbox. It rely on win32&#8242;s COM/DDE API so it can only be used on Windows. If you want to extract &#8230; <a href="http://kevin.deldycke.com/2010/09/convert-lotus-notes-nsf-files-mbox-nlconverter/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>There is a great piece of software called <a href="http://code.google.com/p/nlconverter/">nlconverter</a>. It&#8217;s a tool designed to convert Lotus Notes&#8217; <code>.nsf</code> files to <code>mbox</code>. It rely on win32&#8242;s COM/DDE API so it can only be used on Windows.</p><p>If you want to extract mails out of your <code>.nsf</code> database, this might be the tool you&#8217;re looking for. Bonus point: it&#8217;s written in Python ! <img src='http://kevin.deldycke.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p><h2>Installing nlconverter and its dependencies</h2><p>Here is how I installed <code>nlconverter</code> on a <a href="http://www.amazon.com/gp/product/B0006HMWO4/ref=as_li_tf_tl?ie=UTF8&#038;tag=kevideld-20&#038;linkCode=as2&#038;camp=217145&#038;creative=399381&#038;creativeASIN=B0006HMWO4">Windows 2000</a> (SP4) machine:<img src="http://www.assoc-amazon.com/e/ir?t=kevideld-20&#038;l=as2&#038;o=1&#038;a=B0006HMWO4&#038;camp=217145&#038;creative=399381" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p><ol><li>First I downloaded and installed the <a href="http://www.python.org/download/releases/">official Python builds for Windows</a> (<a href="http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi">2.6.6 precisely</a>):<br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2010/08/001-python-266-install-on-windows-2000.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/08/001-python-266-install-on-windows-2000-300x255.png" alt="" title="001-python-266-install-on-windows-2000" width="300" height="255" class="aligncenter size-medium wp-image-1832" /></a><br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2010/08/002-python-266-install-on-windows-2000.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/08/002-python-266-install-on-windows-2000-300x255.png" alt="" title="002-python-266-install-on-windows-2000" width="300" height="255" class="aligncenter size-medium wp-image-1833" /></a><br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2010/08/003-python-266-install-on-windows-2000.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/08/003-python-266-install-on-windows-2000-300x255.png" alt="" title="003-python-266-install-on-windows-2000" width="300" height="255" class="aligncenter size-medium wp-image-1834" /></a><br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2010/08/004-python-266-install-on-windows-2000.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/08/004-python-266-install-on-windows-2000-300x255.png" alt="" title="004-python-266-install-on-windows-2000" width="300" height="255" class="aligncenter size-medium wp-image-1835" /></a><br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2010/08/005-python-266-install-on-windows-2000.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/08/005-python-266-install-on-windows-2000-300x255.png" alt="" title="005-python-266-install-on-windows-2000" width="300" height="255" class="aligncenter size-medium wp-image-1836" /></a></li><li>Then <a href="http://sourceforge.net/projects/pywin32/">Python for Windows extensions</a> (<a href="http://sourceforge.net/projects/pywin32/files/pywin32/Build%20214/pywin32-214.win32-py2.6.exe/download">build 214 for Python 2.6 in my case</a>):<br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2010/08/001-pywin32-214-install-on-windows-2000.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/08/001-pywin32-214-install-on-windows-2000-300x193.png" alt="" title="001-pywin32-214-install-on-windows-2000" width="300" height="193" class="aligncenter size-medium wp-image-1838" /></a><br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2010/08/002-pywin32-214-install-on-windows-2000.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/08/002-pywin32-214-install-on-windows-2000-300x193.png" alt="" title="002-pywin32-214-install-on-windows-2000" width="300" height="193" class="aligncenter size-medium wp-image-1839" /></a><br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2010/08/003-pywin32-214-install-on-windows-2000.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/08/003-pywin32-214-install-on-windows-2000-300x193.png" alt="" title="003-pywin32-214-install-on-windows-2000" width="300" height="193" class="aligncenter size-medium wp-image-1840" /></a><br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2010/08/004-pywin32-214-install-on-windows-2000.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/08/004-pywin32-214-install-on-windows-2000-300x193.png" alt="" title="004-pywin32-214-install-on-windows-2000" width="300" height="193" class="aligncenter size-medium wp-image-1841" /></a></li><li>Finally I had to <a href="http://pypi.python.org/pypi/icalendar">download the latest <code>icalendar</code> archive</a>, then extract the <code>\iCalendar-1.2\src\icalendar</code> folder to <code>C:\Python26\Lib\site-packages\</code>:<br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2010/08/extract-icalendar-python-package-on-windows.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/08/extract-icalendar-python-package-on-windows-300x217.png" alt="" title="extract-icalendar-python-package-on-windows" width="300" height="217" class="aligncenter size-medium wp-image-1843" /></a></li><li>Next step is to <a href="http://code.google.com/p/nlconverter/downloads">download nlconverter</a> itself and extract it:<br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2010/08/nlconverter-install-on-windows.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/08/nlconverter-install-on-windows-300x214.png" alt="" title="nlconverter-install-on-windows" width="300" height="214" class="aligncenter size-medium wp-image-1846" /></a></li></ol><h2>nlconverter GUI</h2><p>First thing you have to do is to create an <a href="http://kevin.deldycke.com/2010/06/how-to-export-backup-lotus-notes-mails/">export of your mails as a <code>.nsf</code> database</a>. Follow the previous link to get the instructions.</li><p>Now let&#8217;s convert this <code>nsf</code> to a <code>mbox</code>. <a href="http://code.google.com/p/nlconverter/wiki/Faq">nlconverter&#8217;s FAQ</a> tells you to run the <code>gui.exe</code> program to perform the conversion.</p><p>Unfortunately it didn&#8217;t work for me:<br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2010/08/nlconverter-gui-fail.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/08/nlconverter-gui-fail-300x91.png" alt="" title="nlconverter-gui-fail" width="300" height="91" class="aligncenter size-medium wp-image-1856" /></a></p><p>So I tried the alternative approach by using the command line.</p><h2>nlconverter command line</h2><p>Again, most of the things I&#8217;m writing here are based on <a href="http://code.google.com/p/nlconverter/wiki/Faq">nlconverter&#8217;s FAQ</a>:</p><ol><li>First, we have to <a href="http://nlconverter.googlecode.com/hg/notes2mbox.py">download the <code>notes2mbox.py</code> script</a> from <a href="http://code.google.com/p/nlconverter/source/browse/">nlconverter&#8217;s mercurial repository</a>, as this file is not distributed in the <code>winnlc-alpha-1.zip</code> archive I unzipped previously. Let&#8217;s put <code>notes2mbox.py</code> in <code>C:\winnlc-alpha-1\</code>:<br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2010/09/download-notes2mbox-python-script.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/09/download-notes2mbox-python-script-300x167.png" alt="" title="download-notes2mbox-python-script" width="300" height="167" class="aligncenter size-medium wp-image-1881" /></a></li><li>Now we&#8217;ll modify the <code>notes2mbox.py</code> script to set the password (via the <code>notesPasswd</code> variable) and location (<code>notesNsfPath</code> variable) of the <code>.nsf</code> file. Here are the modifications I applied:<pre class="brush: diff; title: ; notranslate">
--- notes2mbox.py.orig	2010-09-02 13:49:58.000000000 +0200
+++ notes2mbox.py	2010-09-02 13:51:24.000000000 +0200
@@ -14,8 +14,8 @@
 import NlconverterLib

 #Constantes
-notesPasswd = &quot;foobar&quot;
-notesNsfPath = &quot;C:\\archive.nsf&quot;
+notesPasswd = &quot;XXXXXXXXXXXXX&quot;
+notesNsfPath = &quot;C:\\winnlc-alpha-1\\kevin-notes-big-backup-part-1.nsf&quot;

 #Connection à Notes
 db = NlconverterLib.getNotesDb(notesNsfPath, notesPasswd)
</pre></li><li>Before running the script, we have to register a Notes DLL used by nlconverter:<pre class="brush: bash; title: ; notranslate">
regsvr32 &quot;C:\Program Files\Notes\nlsxbe.dll&quot;
</pre><p><a href="http://kevin.deldycke.com/wp-content/uploads/2010/08/notes-nlsxbe-dll-registered1.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/08/notes-nlsxbe-dll-registered1-300x96.png" alt="" title="notes-nlsxbe-dll-registered" width="300" height="96" class="aligncenter size-medium wp-image-1868" /></a><br /> And make the Python interpreter available system-wide:</p><pre class="brush: bash; title: ; notranslate">
C:\winnlc-alpha-1&gt;SET Path=%Path%;C:\Python26
</pre></li><li>Now we can run the <code>notes2mbox.py</code> script:<pre class="brush: bash; title: ; notranslate">
C:\winnlc-alpha-1&gt;C:\Python26\python.exe notes2mbox.py
</pre></li></ol><p>If you&#8217;re lucky, you&#8217;ll get a nice mbox at the end of the process.</p><p>But I was not and the <code>notes2mbox.py</code> ended up with the following error:</p><pre class="brush: python; title: ; notranslate">
Traceback (most recent call last):
  File &quot;notes2mbox.py&quot;, line 21, in &lt;module&gt;
    db = NlconverterLib.getNotesDb(notesNsfPath, notesPasswd)
  File &quot;C:\winnlc-alpha-1\NlconverterLib.py&quot;, line 43, in getNotesDb
    session = win32com.client.Dispatch(r'Lotus.NotesSession')
  File &quot;C:\Python26\lib\site-packages\win32com\client\__init__.py&quot;, line 95, in Dispatch
    dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
  File &quot;C:\Python26\lib\site-packages\win32com\client\dynamic.py&quot;, line 104, in _GetGoodDispatchAndUserName
    return (_GetGoodDispatch(IDispatch, clsctx), userName)
  File &quot;C:\Python26\lib\site-packages\win32com\client\dynamic.py&quot;, line 84, in _GetGoodDispatch
    IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch)
pywintypes.com_error: (-2147221231, 'ClassFactory ne peut pas fournir la classe demand\xe9e', None, None)
</pre><p>As you can see, I tried hard to make nlconverter working, without any success. But this should not stop you to try. In fact I suspect the Lotus Notes installed on my machine to be crippled or corrupted (can&#8217;t really tell). So you may be more lucky than me. In any case, feel free to report any success or failure in the comment section below !</p> ]]></content:encoded> <wfw:commentRss>http://kevin.deldycke.com/2010/09/convert-lotus-notes-nsf-files-mbox-nlconverter/feed/</wfw:commentRss> <slash:comments>19</slash:comments> </item> <item><title>How-to export/backup Lotus Notes mails</title><link>http://kevin.deldycke.com/2010/06/how-to-export-backup-lotus-notes-mails/</link> <comments>http://kevin.deldycke.com/2010/06/how-to-export-backup-lotus-notes-mails/#comments</comments> <pubDate>Fri, 25 Jun 2010 09:30:11 +0000</pubDate> <dc:creator>Kev</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[Backup]]></category> <category><![CDATA[Databases]]></category> <category><![CDATA[E-mail]]></category> <category><![CDATA[export]]></category> <category><![CDATA[IBM Lotus Notes]]></category> <category><![CDATA[windows]]></category><guid isPermaLink="false">http://kevin.deldycke.com/?p=1574</guid> <description><![CDATA[You are using Lotus Notes as your mail platform. Unfortunately your mailbox has a quota you&#8217;ve already reached and you need space. A solution consist in exporting regularly your mails on your local machine to free up your inbox. Here &#8230; <a href="http://kevin.deldycke.com/2010/06/how-to-export-backup-lotus-notes-mails/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>You are using Lotus Notes as your mail platform. Unfortunately your mailbox has a quota you&#8217;ve already reached and you need space. A solution consist in exporting regularly your mails on your local machine to free up your inbox. Here is a little article documenting the export procedure using the fat desktop client.</p><p>If screenshots were taken with a french version, instructions given here are for the english one. This will give you enough clues to perform the export whatever the localisation is. The Lotus Notes version I used was the 7.0.2 release.</p><p>So first, let&#8217;s start Notes and open your mailbox. You should be on a screen similar to this one:<br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2010/06/lotus-notes-mail-main-screen.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/06/lotus-notes-mail-main-screen-300x217.png" alt="" title="lotus-notes-mail-main-screen" width="300" height="217" class="aligncenter size-medium wp-image-1577" /></a></p><p>Then, go to the <code>File</code> › <code>Database</code> › <code>New Copy</code> menu:<br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2010/06/lotus-notes-database-export-menu.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/06/lotus-notes-database-export-menu-300x217.png" alt="" title="lotus-notes-database-export-menu" width="300" height="217" class="aligncenter size-medium wp-image-1578" /></a></p><p>And you&#8217;ll get an export screen that&#8217;ll let you choose where to create a local copy of your database:<br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2010/06/export-screen.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/06/export-screen-300x199.png" alt="" title="export-screen" width="300" height="199" class="aligncenter size-medium wp-image-1579" /></a><br /> This will generate a <code>.nsf</code> file containing all your current mail.</p><p>Now that you have a backup, you are free to delete all your mails in Lotus Notes. By following this procedure regulary, you can create yearly or monthly archives of you mails without reaching the mailbox quota ! For example, this is how my local archive folder looks like:<br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2010/06/lotus-notes-exported-mail-archives.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/06/lotus-notes-exported-mail-archives.png" alt="" title="lotus-notes-exported-mail-archives" width="150" height="138" class="aligncenter size-full wp-image-1580" /></a></p> ]]></content:encoded> <wfw:commentRss>http://kevin.deldycke.com/2010/06/how-to-export-backup-lotus-notes-mails/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>My PuTTY profile template</title><link>http://kevin.deldycke.com/2010/04/putty-profile-template/</link> <comments>http://kevin.deldycke.com/2010/04/putty-profile-template/#comments</comments> <pubDate>Mon, 19 Apr 2010 21:49:40 +0000</pubDate> <dc:creator>Kev</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[PuTTY]]></category> <category><![CDATA[shell]]></category> <category><![CDATA[SSH]]></category> <category><![CDATA[Template]]></category> <category><![CDATA[terminal]]></category> <category><![CDATA[windows]]></category><guid isPermaLink="false">http://kevin.deldycke.com/?p=1301</guid> <description><![CDATA[Inspired by a recent friend&#8217;s post about an annoying PuTTY behavior (fix included), here is my template for PuTTY profiles. It&#8217;s just a slightly modified version of Ilya Grigorik&#8217;s &#8220;Desert&#8221; color theme, with some tweaks that suit my needs.]]></description> <content:encoded><![CDATA[<p><a href="http://kevin.deldycke.com/wp-content/uploads/2010/04/putty-template-preview.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/04/putty-template-preview-150x150.png" alt="" title="putty-template-preview" width="150" height="150" class="alignleft size-thumbnail wp-image-1307" /></a> Inspired by a recent friend&#8217;s post about an <a href="http://www.think-underground.com/post/2010/04/13/Supprimer-le-comportement-%C3%A9trange-du-pav%C3%A9-num%C3%A9rique-dans-Putty">annoying PuTTY behavior (fix included)</a>, here is <a href="http://kevin.deldycke.com/static/documents/putty-template.reg">my template for PuTTY profiles</a>.</p><p>It&#8217;s just a slightly modified version of <a href="http://www.igvita.com/2008/04/14/custom-putty-color-themes/">Ilya Grigorik&#8217;s &#8220;Desert&#8221; color theme</a>, with some tweaks that suit my needs.</p> ]]></content:encoded> <wfw:commentRss>http://kevin.deldycke.com/2010/04/putty-profile-template/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How-to grow any Qemu system image</title><link>http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/</link> <comments>http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/#comments</comments> <pubDate>Sun, 08 Apr 2007 15:10:56 +0000</pubDate> <dc:creator>Kev</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[gparted]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[qcow]]></category> <category><![CDATA[Qemu]]></category> <category><![CDATA[system]]></category> <category><![CDATA[windows]]></category><guid isPermaLink="false">http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/</guid> <description><![CDATA[Qemu images can&#8217;t be growed. In this example I will show you a little hack to grow a 6GiB qcow image to a 10GiB image. Beware: these operations can take a lot of time to perform and require lots of &#8230; <a href="http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Qemu images can&#8217;t be growed. In this example I will show you a little hack to grow a 6GiB <code>qcow</code> image to a 10GiB image. Beware: these operations can take a lot of time to perform and require lots of free space.</p><p>First, convert your <code>qcow</code> image to a plain raw file:</p><pre class="brush: bash; title: ; notranslate">
qemu-img convert system.qcow -O raw system.raw
</pre><p>Then, create a dummy file (filled with zeros) of the size of extra space you want to add to your image. In this case, 4GiB (=10GiB &#8211; 6GiB):</p><pre class="brush: bash; title: ; notranslate">
dd if=/dev/zero of=zeros.raw bs=1024k count=4096
</pre><p>Fearlessly, add your extra space to your raw system image:</p><pre class="brush: bash; title: ; notranslate">
cat system.raw zeros.raw &gt; big10G.raw
</pre><p>After that you can boot qemu to verify that added free space is available:</p><pre class="brush: bash; title: ; notranslate">
qemu -hda big10G.raw
</pre><p>Here is an real case example of what you can see in a qemu image on which Windows XP was installed:<br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2007/04/growed-image1.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2007/04/growed-image1-300x233.png" alt="" title="Windows XP in Qemu - Primary Disk Extra Free Space" width="300" height="233" class="aligncenter size-medium wp-image-3010" /></a></p><p>Now, to grow your primary partition, I suggest you to download a Live CD like <a href="http://gparted.sourceforge.net/livecd.php">gparted Live CD</a> or <a href="http://www.sysresccd.org">System Rescue CD</a>, and boot on the <code>.iso</code> file with qemu:</p><pre class="brush: bash; title: ; notranslate">
qemu -hda big10G.raw -cdrom gparted-livecd-0.3.4-5.iso -boot d
</pre><p>This will allow you to grow and manipulate all your partitions safely thanks to <a href="http://www.gnu.org/software/parted/index.shtml">parted</a> and other open source system tools.</p><p>Finally you can convert back your <code>raw</code> image to a <code>qcow</code> one to not waste space:</p><pre class="brush: bash; title: ; notranslate">
qemu-img convert big10G.raw -O qcow growed-system.qcow
</pre><p>That&#8217;s all !</p><p>By the way, I think it&#8217;s possible to perform the second and third step of this how-to in a single operation using <code>dd</code> only.</p><p><u>Update</u>: I missed it, but this issue is also described in the FAQ from the <a href="http://kidsquid.com/cgi-bin/moin.cgi">unofficial #qemu wiki</a> (look at &#8220;<a href="http://kidsquid.com/cgi-bin/moin.cgi/FrequentlyAskedQuestions#head-b46370d3ad030e6c1712338f0e5112228c51212a">How do I resize a disk image?</a>&#8221; question).</p> ]]></content:encoded> <wfw:commentRss>http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/feed/</wfw:commentRss> <slash:comments>16</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/23 queries in 0.016 seconds using apc
Object Caching 739/782 objects using apc

Served from: kevin.deldycke.com @ 2012-02-08 10:30:12 -->
