<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>LinuxQuestions.org - Blogs - dr_agon</title>
		<link>http://www.linuxquestions.org/questions/blog/dr_agon-365450/</link>
		<description>LinuxQuestions.org offers a free Linux forum where Linux newbies can ask questions and Linux experts can offer advice. Topics include security, installation, networking and much more.</description>
		<language>en</language>
		<lastBuildDate>Mon, 20 May 2013 02:08:06 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>https://lqo-thequestionsnetw.netdna-ssl.com/questions/images/misc/rss.jpg</url>
			<title>LinuxQuestions.org - Blogs - dr_agon</title>
			<link>http://www.linuxquestions.org/questions/blog/dr_agon-365450/</link>
		</image>
		<item>
			<title>Which MUA for Linux?</title>
			<link>http://www.linuxquestions.org/questions/blog/dr_agon-365450/which-mua-for-linux-35190/</link>
			<pubDate>Sun, 09 Dec 2012 13:40:13 GMT</pubDate>
			<description>applies to: linux, KMail, Opera, Balsa, Claws 
 
Recently I got sick of new KMail. I tried to be patient and after upgrading to new KDE4 (together...</description>
			<content:encoded><![CDATA[<div><font size="1"><div align="right">applies to: linux, KMail, Opera, Balsa, Claws</div></font><br />
Recently I got sick of new KMail. I tried to be patient and after upgrading to new KDE4 (together with Kubuntu 12.04, which is &quot;Long Term Support&quot;, so it was ment to be &quot;stable&quot;) I ran trough all pains with migrating my e-mails and configuring it together with Akonadi, Nepomuk, and Virtuoso. I hoped to get the whole KDE-PIM usable again. Now, after half a year, I gave up and searched for replacement. <br />
I needed Mail User Agent with graphical interface (GUI), POP3 support, ability to store locally several thousands of e-mails, have not only spam but other filter capabilities, and support custom message tags to help me organize messsages.<br />
Here are options I considered with short comments about each program:<br />
<br />
1. KMail2 (the last version I used was 4.9.4)<br />
It theoretically has all required features and works well with other parts of KDE-PIM. Unfortunately, it has major bugs and disadvantages:<ul><li>It caused some e-mail loss for me, in unknown and not repeatable situations, so I could not file a bug for it.</li>
<li>It installs and uses separate MySQL database for storing metadata about e-mails, which consumes resources (well, it is really Akonadi, but you cannot use KMail without it). It may be possible to combine it with system-wide MySQL installation, but due to unstable and unpredictable behavior of KMail - I did't try it.</li>
<li>For simple task of custom tagging of messages it requires Nepomuk Semantic Desktop running - another huge, resource-greedy subsystem. Couple of times all my tags just disappeared, leaving my hundreds of mails bare.</li>
<li>Due to asynchronous processing it frequently asks user for resolving conflicts due to trivial problems. For example when spam filter tries to move message to another folder, and I managed to view the message during &quot;filtering&quot;, one version of message is &quot;unread, spam&quot;, but other becomes &quot;read&quot; and the poor KMail can't manage it itself. I'd rather wait until it finishes filtering, but it reports finishing right after queuing the messages for filter, so how can I know when the filtering ends?</li>
<li>The annoying &quot;synchronizing folder&quot; messages seem just a small inconvenience in this circumstances.</li>
</ul><br />
2. Opera Mail<br />
Opera is my primary browser, so I decided to give OperaMail a try. I knew about its convenient message tagging(=labelling) method, and I think this is the main advantage of OperaMail. But it lacks other important things:<ul><li>It does not support filtering message through external program.</li>
<li>It seems that Opera uses its own spam detection mechanism, which would require training from the beginning, and probably would not be transferable.</li>
<li>The thing that convinced me to drop OperaMail was the format of message folders. It is neither mbox, maildir, nor mh. I asked myself - what if I wanted to switch from Opera to other mail client - how would I import messages FROM OperaMail to another MUA? Manually copying?</li>
</ul><br />
3. Balsa (<a href="http://pawsa.fedorapeople.org/balsa/features.html" target="_blank" rel="nofollow">http://pawsa.fedorapeople.org/balsa/features.html</a>)<br />
Its feature list looked promising.<ul><li>Since it supports maildir I was able to configure it to use the same directories as KMail (local mail folder), so the problem of importing all my mails just disappeared. This was a nice surprise. In fact I could use both KMail and Balsa with the same maildir. And Balsa was soooo much faster!</li>
<li>The filtering capabilities were sufficient, but to get best results one would probably need procmail.</li>
<li>It was easy configurable, and had many useful options.</li>
<li>Yet, Balsa doesn't support custom message tags. The message can be either &quot;flagged&quot; or &quot;unflagged&quot;, no more. Maybe when this gets implemented, I'll try it again.</li>
</ul><br />
4. Claws mail (<a href="http://www.claws-mail.org/" target="_blank" rel="nofollow">http://www.claws-mail.org/</a>)<ul><li>I installed version 3.9.0 from <a href="https://launchpad.net/~claws-mail/+archive/ppa" target="_blank" rel="nofollow">Ubuntu PPA</a>. This was convenient.</li>
<li>Then, I had to import messages from KMail to MH folder. This was done easily using a <a href="http://www.claws-mail.org/tools/claws-mail_kmail-mailbox2claws-mail.tar.gz" target="_blank" rel="nofollow">script</a>.</li>
<li>There are lots of filtering and processing options which may seem confusing at the beginning, but overall it can be very useful.</li>
<li>I managed to configure filters to use qsf as spam recognition program, so my well trained database remained valid!</li>
<li>Creating and adding custom tags to messages was flawless, and that's what I rely on in my work.</li>
<li>Searching through big folders is quick.</li>
</ul><br />
The overall performance of Claws Mail is very pleasant in comparison to KMail, and for now it remains my e-mail client.<br />
<br />
Giving up KMail, I also searched for replacement of KCalendar. This is another story, but just to mention it shortly, I use <a href="http://chandlerproject.org/" target="_blank" rel="nofollow">Chandler</a>.</div>

]]></content:encoded>
			<dc:creator>dr_agon</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/dr_agon-365450/which-mua-for-linux-35190/</guid>
		</item>
		<item>
			<title>Where are desktop icons stored in KDE4 Plasma?</title>
			<link>http://www.linuxquestions.org/questions/blog/dr_agon-365450/where-are-desktop-icons-stored-in-kde4-plasma-3631/</link>
			<pubDate>Sun, 06 Mar 2011 12:34:44 GMT</pubDate>
			<description>After switching to KDE4 I was little confused with its new philosophy of Plasma containers and activities. As it looked interesting, I tried to find...</description>
			<content:encoded><![CDATA[<div>After switching to KDE4 I was little confused with its new philosophy of Plasma containers and activities. As it looked interesting, I tried to find more information. Now, there are some nice posts showing how to use it, but I couldn't find the answer for a simple question: where the information about desktop icons is stored on a disk?<br />
<br />
Just for the record, in KDE 4.4.5 it is in<br />
<i>'~/.kde/share/config/plasma-desktop-appletsrc'</i></div>

]]></content:encoded>
			<dc:creator>dr_agon</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/dr_agon-365450/where-are-desktop-icons-stored-in-kde4-plasma-3631/</guid>
		</item>
		<item>
			<title>batch resize images using find, xargs and convert</title>
			<link>http://www.linuxquestions.org/questions/blog/dr_agon-365450/batch-resize-images-using-find-xargs-and-convert-3602/</link>
			<pubDate>Sun, 20 Feb 2011 22:30:43 GMT</pubDate>
			<description><![CDATA[applies to: linux, find, xargs, convert, image processing 
 
'convert' command, which is a part of ImageMagick package can be used for image...]]></description>
			<content:encoded><![CDATA[<div><font size="1"><div align="right">applies to: linux, find, xargs, convert, image processing</div></font><br />
'<i>convert</i>' command, which is a part of ImageMagick package can be used for image resizing, but it lacks ability to process multiple files (in version of ImageMagick 6.5.7-8 2010-12-02). Instead of writing a shell script you can use <i>find</i> and <i>xargs</i> commands to collect filenames and invoke convert with one filename at a time, like this:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 50px;
		text-align: left;
		overflow: auto">find -iname &quot;*.jpg&quot; -printf &quot;%f\0&quot; \
 | xargs -0 -I {} convert -resize 50% {} small/{}</pre>
</div>The general form would be:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 50px;
		text-align: left;
		overflow: auto">find [directory to search, if omitted = current] -iname [search pattern] -printf &quot;%f\0&quot; \
 | xargs -0 -I {} convert -resize [% or widthxheight] [directory for converted images]/{}</pre>
</div>Little explanation:<br />
The <i>find</i> parameters make search case-insensitive and output NULL delimited filenames without path. The <i>xargs</i> -I {} parameter makes {} a &quot;placeholder&quot; for data from <i>find</i>.<br />
See man pages for details.</div>

]]></content:encoded>
			<dc:creator>dr_agon</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/dr_agon-365450/batch-resize-images-using-find-xargs-and-convert-3602/</guid>
		</item>
		<item>
			<title>Differencies between OpenOffice.org under Windows and Linux</title>
			<link>http://www.linuxquestions.org/questions/blog/dr_agon-365450/differencies-between-openoffice-org-under-windows-and-linux-1379/</link>
			<pubDate>Tue, 02 Dec 2008 21:53:44 GMT</pubDate>
			<description>applies to OpenOffice.org, Linux, Windows, Python, XML 
 
Recently I try to develop modules for already existing, big project using Python and...</description>
			<content:encoded><![CDATA[<div><font size="1"><div align="right">applies to OpenOffice.org, Linux, Windows, Python, XML</div></font><br />
Recently I try to develop modules for already existing, big project using Python and OpenOffice.org. The application is meant to work both under Linux and Windows. Unfortunately, it is not easy.<ol style="list-style-type: decimal"><li>Python-UNO bridge to OpenOffice, which is part of OO suite, is different. Under Linux it works flawlessly with the fairly new Python v. 2.5. Under Windows it works only with supplied Python v. 2.3.4. It wouldn't be so bad if recent wxWidgets worked with this version, but they don't.<br /></li>
<li>Under Linux OpenOffice.org is shipped with 'OpenDocument Text Flat XML' filter for importing/exporting .fodt files. I don't know why, but Windows version lacks this filter. I did not find this filter available for download anywhere. The solution is simple, but not obvious: you can export this filter from Linux version and import under Windows. (Many thanks to <i>r4zoli</i> for this suggestion on the <a href="http://user.services.openoffice.org/en/forum/viewtopic.php?f=15&amp;t=11103&amp;start=0&amp;st=0&amp;sk=t&amp;sd=a" target="_blank" rel="nofollow">forum</a>.</li>
</ol>Now, I cannot manipulate OO documents using UNO, but I can prepare XML files which are properly loaded into OO both under Linux and Windows, and are very easy to generate and change. I must say I like XML.</div>

]]></content:encoded>
			<dc:creator>dr_agon</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/dr_agon-365450/differencies-between-openoffice-org-under-windows-and-linux-1379/</guid>
		</item>
		<item>
			<title>Avoiding wxPython PrintPreview segmentation fault or double free error</title>
			<link>http://www.linuxquestions.org/questions/blog/dr_agon-365450/avoiding-wxpython-printpreview-segmentation-fault-or-double-free-error-1344/</link>
			<pubDate>Sat, 29 Nov 2008 02:23:40 GMT</pubDate>
			<description>applies to: Python, wxPython (v.2.8), wxWidgets, wx.PrintPreview, wx.Printout 
 
When creating wx.PrintPreview class, you must pass 2 parameters of...</description>
			<content:encoded><![CDATA[<div><div align="right"><font size="-2">applies to: Python, wxPython (v.2.8), wxWidgets, wx.PrintPreview, wx.Printout</font></div><br />
When creating wx.PrintPreview class, you must pass 2 parameters of wxPrintout class (see <a href="http://docs.wxwidgets.org/stable/wx_wxprintpreview.html#wxprintpreview" target="_blank" rel="nofollow">doc</a>)<br />
If someone (like me) gets a silly idea of passing the same instance of wxPrintout class as both parameters, on closing the preview frame he will get segmentation fault or double free error. <br />
Example (<font color="Red">don't do this!</font>):<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 114px;
		text-align: left;
		overflow: auto">class MyPrintout(wx.Printout):
  
  #rest of code
  
printout = MyPrintout(MyParameters) #  instance of class based on wx.Printout 
printpreview = wx.PrintPreview(printout, printout, MyPrintData)</pre>
</div>Even if both parameters must refer to the same class, they should be passed as different instances, like this:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 130px;
		text-align: left;
		overflow: auto">class MyPrintout(wx.Printout):
  
  #rest of code
  
printout_preview = MyPrintout(MyParameters) # first instance of class based on wx.Printout 
printout_printing = MyPrintout(MyParameters) # second instance of class based on wx.Printout 
printpreview = wx.PrintPreview(printout_preview, printout_printing, MyPrintData)</pre>
</div>Now, it seems logical to me, but cost me lots of time to figure it out.</div>

]]></content:encoded>
			<dc:creator>dr_agon</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/dr_agon-365450/avoiding-wxpython-printpreview-segmentation-fault-or-double-free-error-1344/</guid>
		</item>
		<item>
			<title>Setting udev permission for raw host disk access by virtualbox machine.</title>
			<link>http://www.linuxquestions.org/questions/blog/dr_agon-365450/setting-udev-permission-for-raw-host-disk-access-by-virtualbox-machine-1232/</link>
			<pubDate>Tue, 14 Oct 2008 14:02:16 GMT</pubDate>
			<description>applies to: linux, udev, permissions, device node, virtualbox 
 
 
To allow raw host disk access by guest machine on VirtualBox the user must have...</description>
			<content:encoded><![CDATA[<div><div align="right"><font size="-2">applies to: linux, udev, permissions, device node, virtualbox</font></div><br />
<br />
To allow raw host disk access by guest machine on VirtualBox the user must have read-write permission to all partitions which are to be accessed. You can do this by something like<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">sudo chmod a+rw /dev/sda7</pre>
</div>but executing it every time you need to boot virtual machine is annoying. You may want to set the permissions at boot time. <br />
In modern kernels (since 2.6) you can use the udev rules for setting default permissions to selected devices. I created a file /etc/udev/rules.d/60-<i>whatever</i>.rules with a following rule:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">KERNEL==&quot;sda[78]*&quot;,		MODE=&quot;0666&quot;</pre>
</div>This sets the permission for everyone to read-write /dev/sda7 and /dev/sda8.<br />
<br />
That's all I needed.<br />
<br />
</div>

]]></content:encoded>
			<dc:creator>dr_agon</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/dr_agon-365450/setting-udev-permission-for-raw-host-disk-access-by-virtualbox-machine-1232/</guid>
		</item>
		<item>
			<title>How to remove selected messages left on the POP3 server.</title>
			<link>http://www.linuxquestions.org/questions/blog/dr_agon-365450/how-to-remove-selected-messages-left-on-the-pop3-server-1230/</link>
			<pubDate>Mon, 13 Oct 2008 21:46:01 GMT</pubDate>
			<description>applies to: KMail, Evolution, Perl, POP3, mail client 
 
Unfortunatelly my favourite mail client (Kmail) cannot leave messages on the POP3 server...</description>
			<content:encoded><![CDATA[<div><div align="right"><font size="-2">applies to: KMail, Evolution, Perl, POP3, mail client</font></div><br />
Unfortunatelly my favourite mail client (Kmail) cannot leave messages on the POP3 server while retrieving them and delete them later, eg. when they are moved to 'Trash&quot; folder (like Thunderbird). The same applies to Evolution. Of course I know there are IMAP servers, but that's not the solution I like most. I also did not want to periodically erase <b>all</b> messages left on POP3 server. I did not find any reasonable solution, so I made it myself. It is available as <a href="http://sourceforge.net/projects/deletefrompop3/" target="_blank" rel="nofollow">DeleteFromPOP3</a> project at Sourceforge.net(tm). <br />
&lt;!--break--&gt;<br />
The idea is simple:<ol style="list-style-type: decimal"><li>mark messages for deleting in the mail client - It is not so difficult to do it manually. I just delete mails from my inbox or mark them as spam. Then, from time to time I mark all files in the trash and spam folder for removal from POP3 server. When you create a mail filter and add it to the toolbar, it just requires one click to mark messages for removal.</li>
<li>pass the list of messages marked for deletion to the external program - This is done together with marking for removal. No additional action required.</li>
<li>run external program to delete messages from the server - You can run it automatically if you wish. </li>
</ol>To achieve this, I wrote two Perl scripts, and created a mail filter in Kmail. <br />
How it works<ul><li>A filter is invoked which executes a helper script passing the message as input.</li>
<li>A message from mail client is parsed and information needed for<br />
identification of message on the server is collected.<br />
The script produces a pair of &lt;host name&gt; and &lt;Message-Id&gt; for<br />
every message. <br />
The pairs of &lt;host name&gt; and &lt;Message-Id&gt; are stored in<br />
separate file, each in separate line</li>
<li>The second script, which actually deletes messages from POP3<br />
server, is executed whenever you like.<br />
This script requires a list of messages created by previous<br />
script.<br />
It also requires POP3 account details to connect to server(s).<br />
After connecting to the POP3 server it looks through all<br />
messages and checks if a message is on the list and should be<br />
deleted.<br />
After deleting messages it truncates the message list file.</li>
</ul><br />
This may not be the best solution, but it works for me, and there is a good chance it will work for others, too. Any comments are welcomed.<br />
<br />
Enjoy.</div>

]]></content:encoded>
			<dc:creator>dr_agon</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/dr_agon-365450/how-to-remove-selected-messages-left-on-the-pop3-server-1230/</guid>
		</item>
		<item>
			<title>CVS diff default behavior</title>
			<link>http://www.linuxquestions.org/questions/blog/dr_agon-365450/cvs-diff-default-behavior-1229/</link>
			<pubDate>Mon, 13 Oct 2008 20:55:48 GMT</pubDate>
			<description>applies to: linux, cvs, diff 
 
I spent some time wondering why cvs diff does not show the local files which differ from the most recent revision. It...</description>
			<content:encoded><![CDATA[<div><div align="right"><font size="-2">applies to: linux, cvs, diff</font></div><br />
I spent some time wondering why <i>cvs diff</i> does not show the local files which differ from the most recent revision. It turned out that this is simply the default behavior, as described in man page:<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="3" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="bbcodeblock" style="border:1px inset">
			
				The default action is to compare your working files  with  the  revisions  they were based on
			
		</td>
	</tr>
	</table>
</div>To see differences with other revision, you must use -D or -r option.<br />
For example to compare with newest revisions:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">cvs diff --brief -D now</pre>
</div>Another way to see which files would be updated, without actually updating them, is to use -n global option, meaning 'Do not change any files'.<br />
Example:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">cvs -n update -dP</pre>
</div>Now, back to work.</div>

]]></content:encoded>
			<dc:creator>dr_agon</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/dr_agon-365450/cvs-diff-default-behavior-1229/</guid>
		</item>
		<item>
			<title>How to allow ordinary (not root) users to mount/unmount everything.</title>
			<link>http://www.linuxquestions.org/questions/blog/dr_agon-365450/how-to-allow-ordinary-not-root-users-to-mount-unmount-everything-1215/</link>
			<pubDate>Mon, 06 Oct 2008 18:50:48 GMT</pubDate>
			<description>applies to: linux, debian based (Mepis), mount, sudo 
 
While testing many things often I have to mount/unmount resources, and I became tired of...</description>
			<content:encoded><![CDATA[<div><div align="right"><font size="-2">applies to: linux, debian based (Mepis), mount, sudo</font></div><br />
While testing many things often I have to mount/unmount resources, and I became tired of using 'su' and supplying password.<br />
<br />
The easy but not very secure solution is to allow some (or all) users to execute mount/unmount as root without being prompted for password by adding them to /etc/sudoers file like this:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">%users  ALL=NOPASSWD: /bin/mount, /bin/umount</pre>
</div>'users' is a group name.<br />
Now I can use<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">$ sudo mount ......</pre>
</div>without password.<br />
<br />
Be careful about possible security risk!<br />
For more informations: man sudoers.<br />
</div>

]]></content:encoded>
			<dc:creator>dr_agon</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/dr_agon-365450/how-to-allow-ordinary-not-root-users-to-mount-unmount-everything-1215/</guid>
		</item>
		<item>
			<title><![CDATA[recover from HP Backup&Recovery partition mess]]></title>
			<link>http://www.linuxquestions.org/questions/blog/dr_agon-365450/recover-from-hp-backup-and-recovery-partition-mess-926/</link>
			<pubDate>Sat, 07 Jun 2008 13:13:04 GMT</pubDate>
			<description>After initial OS installation (WindowsXP) on a HP laptop I created a set of recovery DVDs. The user installed more and more unnecessary programs and...</description>
			<content:encoded><![CDATA[<div>After initial OS installation (WindowsXP) on a HP laptop I created a set of recovery DVDs. The user installed more and more unnecessary programs and remnants after applications removal started to build up, so I decided to revert it to the fresh state after the first run. The important thing is, that <b>after</b> creating the backup DVDs I resized the first (<i>system</i>) partition, created another for user files, and removed the HP Recovery partition, because I decided to keep my backups elsewhere. &lt;!--break--&gt; I didn't change the partitions before first OS installation, because there was a factory preinstalled WindowsXP image on the hard disk. <br />
So, <font color="darkgreen">I had a hard disk with 2 partitions: <i>system</i> and <i>user</i></font>.<br />
<br />
I booted from the recovery DVD and chose to restore &quot;entire disk&quot;, because other options were to leave existing files on disk, and I wanted to get rid of them. There was no option for choosing the place to which restore the disk contents, neither an option to restore only one partition. I spent a while considering this, but decided to give it a try, thinking that Windows usually named a partition - &quot;disk&quot; (&quot;Disk C: full&quot; etc.). I hoped it will <font color="darkgreen">restore the entire backed-up contents to the first partition</font>. I had a full, fresh backup of my disk anyway.<br />
Well, it did exactly that. But... also something more!<br />
<br />
<font color="darkgreen">It recreated the HP Restore partition, but in wrong way! It shrunk the NTFS filesystem inside the first partition (<i>system</i>), shrunk the second partition (<i>user</i>) without updating the NTFS information inside it, and put the contents of the <i>restore</i> partition at the end of the disk! </font><br />
<br />
The result made me laugh:<br />
I had:<font color="darkgreen"><ul><li>the first (<i>system</i>) partition in the original size, but with shrunken filesystem,</li>
<li>the second partition (<i>user</i>) shrunken in partition table, but unusable because NTFS was not adjusted to smaller partition,</li>
<li>and the third partition (<i>recovery</i>) present as a ghost at the end of the disk, without proper partition table entry.</li>
</ul>The system was bootable, but I could not access the <i>user</i> partition files from WindowsXP.</font><br />
<br />
I had to straighten things up. <br />
Using my favourite <a href="http://www.sysresccd.org" target="_blank" rel="nofollow">SystemRescueCd</a>, which I found most helpful many times, I did the following modifications:<ul><li><i>testdisk</i> found the <i>recovery</i> partition and restored it putting necessary information into the partition table,  and also updated the partition table entry for the <i>system</i> partition, shrinking it to the size of filesystem - not very wise, it left unpartitioned space.</li>
<li>I tried <i>ntfsfix</i> on the <i>user</i> partition, which probably fixed the problem with different size of filesystem and partition (although I'm not sure, maybe <i>testdisk</i> did it)</li>
<li>To resize the <i>system</i> partition to fill the free space I had to use <i>Ranish Partition Manager</i>, because I had trouble with <i>fdisk</i>, <i>parted</i>, and <i>gparted</i> trying to use 255 heads  geometry, while all partition table entries were using 240 heads.</li>
<li><i>ntfsresize</i> adjusted the NTFS on the <i>system</i> partition without any problems.</li>
</ul><font color="darkgreen">I have now <i>system</i>, <i>user</i> and <i>recovery</i> partition working.</font><br />
<br />
Many thanks to <a href="http://www.sysresccd.org" target="_blank" rel="nofollow">SystemRescueCd</a> team and <a href="http://www.linux-ntfs.org/doku.php?id=ntfsprogs" target="_blank" rel="nofollow">NTFS utils team</a>.</div>

]]></content:encoded>
			<dc:creator>dr_agon</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/dr_agon-365450/recover-from-hp-backup-and-recovery-partition-mess-926/</guid>
		</item>
		<item>
			<title>Intro</title>
			<link>http://www.linuxquestions.org/questions/blog/dr_agon-365450/intro-925/</link>
			<pubDate>Sat, 07 Jun 2008 10:11:48 GMT</pubDate>
			<description>Hello everybody! 
I sometimes solve a problem, that may be of interest to others. It usually takes a lot of internet search, and taking information...</description>
			<content:encoded><![CDATA[<div>Hello everybody!<br />
I sometimes solve a problem, that may be of interest to others. It usually takes a lot of internet search, and taking information from many sources. That's why it is not easy to find the  most appropriate place to put a feedback or post a &quot;thank-you&quot;. I think the easiest way will be to start this blog. If it helps someone else, I will be happy.<br />
-----------<br />
<a href="http://www.digits.com" target="_blank" rel="nofollow"><a href="http://www.leksoft.com.pl/digits-wc.gif" target="_blank" rel="nofollow">http://www.leksoft.com.pl/digits-wc.gif</a><a href="http://counter.digits.com/wc/-d/4/nchd" target="_blank" rel="nofollow">http://counter.digits.com/wc/-d/4/nchd</a></a></div>

]]></content:encoded>
			<dc:creator>dr_agon</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/dr_agon-365450/intro-925/</guid>
		</item>
	</channel>
</rss>
