<?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>Leonardo Borda</title>
	<atom:link href="http://www.leonardoborda.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leonardoborda.com/blog</link>
	<description>A bit of everything and answers that really work!</description>
	<lastBuildDate>Fri, 04 May 2012 14:15:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to configure sysstat/sar on Ubuntu/Debian</title>
		<link>http://www.leonardoborda.com/blog/how-to-configure-sysstatsar-on-ubuntudebian/</link>
		<comments>http://www.leonardoborda.com/blog/how-to-configure-sysstatsar-on-ubuntudebian/#comments</comments>
		<pubDate>Fri, 04 May 2012 14:15:22 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Knowledge Base]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.leonardoborda.com/blog/?p=358</guid>
		<description><![CDATA[Overview This article describes how to install and use sysstat (sar) a system performance tools for Linux. According to the package description it includes the following system performance tools: - sar: collects and reports system activity information; - iostat: reports CPU utilization and disk I/O statistics; - mpstat: reports global and per-processor statistics; - pidstat: [...]
Related posts:<ol>
<li><a href='http://www.leonardoborda.com/blog/127-0-1-1-ubuntu-debian/' rel='bookmark' title='127.0.1.1 ? Ubuntu / Debian'>127.0.1.1 ? Ubuntu / Debian</a></li>
<li><a href='http://www.leonardoborda.com/blog/127-0-0-08-127-0-1-1-127-0-0-1-ubuntu-debian/' rel='bookmark' title='127.0.0.0/8 127.0.1.1 127.0.0.1 &#8211; Ubuntu / Debian'>127.0.0.0/8 127.0.1.1 127.0.0.1 &#8211; Ubuntu / Debian</a></li>
<li><a href='http://www.leonardoborda.com/blog/how-to-addchange-preseed-files-on-ubuntu-dvdcd/' rel='bookmark' title='How to add/change preseed files on Ubuntu DVD/CD'>How to add/change preseed files on Ubuntu DVD/CD</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong>Overview</strong></p>
<p>This article describes how to install and use sysstat (sar) a system performance tools for Linux. According to the package description it includes the following system performance tools:<br />
- sar: collects and reports system activity information;<br />
- iostat: reports CPU utilization and disk I/O statistics;<br />
- mpstat: reports global and per-processor statistics;<br />
- pidstat: reports statistics for Linux tasks (processes);<br />
- sadf: displays data collected by sar in various formats.</p>
<p>The statistics reported by sar deal with I/O transfer rates,  paging activity, process-related activities, interrupts,  network activity, memory and swap space utilization, CPU  utilization, kernel activities and TTY statistics, among others. Both UP and SMP machines are fully supported.</p>
<p><strong>Step 1.  Install sysstat</strong><br />
<code>sudo apt-get install sysstat</code></p>
<p><strong>Step 2. Enable stat collection</strong><br />
<code>sudo vi /etc/default/sysstat</code><br />
change ENABLED=&#8221;false&#8221; to ENABLED=&#8221;true&#8221;<br />
save the file</p>
<p><strong>Step 3. Change the collection interval from every 10 minutes to every 2 minutes.</strong><br />
<code>sudo vi /etc/cron.d/sysstat</code><br />
Change<br />
<code>5-55/10 * * * * root command -v debian-sa1 &gt; /dev/null &amp;&amp; debian-sa1 1 1</code><br />
To<br />
<code>*/2 * * * * root command -v debian-sa1 &gt; /dev/null &amp;&amp; debian-sa1 1 1</code><br />
save the file</p>
<p><strong>Step 4. Restart sysstat</strong><br />
<code>sudo service sysstat restart</code></p>
<p><strong>Step 5. If you want to see all statistics you can type:</strong><br />
<code>sar -A</code></p>
<p><strong>Step 6. If you want to save the statistics for further analysis to a file use:</strong><br />
<code>sudo sar -A &gt; $(date +`hostname`-%d-%m-%y-%H%M.log)</code></p>
<p><strong>References</strong></p>
<p>man sysstat<br />
man sar</p>
<p>Related posts:<ol>
<li><a href='http://www.leonardoborda.com/blog/127-0-1-1-ubuntu-debian/' rel='bookmark' title='127.0.1.1 ? Ubuntu / Debian'>127.0.1.1 ? Ubuntu / Debian</a></li>
<li><a href='http://www.leonardoborda.com/blog/127-0-0-08-127-0-1-1-127-0-0-1-ubuntu-debian/' rel='bookmark' title='127.0.0.0/8 127.0.1.1 127.0.0.1 &#8211; Ubuntu / Debian'>127.0.0.0/8 127.0.1.1 127.0.0.1 &#8211; Ubuntu / Debian</a></li>
<li><a href='http://www.leonardoborda.com/blog/how-to-addchange-preseed-files-on-ubuntu-dvdcd/' rel='bookmark' title='How to add/change preseed files on Ubuntu DVD/CD'>How to add/change preseed files on Ubuntu DVD/CD</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.leonardoborda.com/blog/how-to-configure-sysstatsar-on-ubuntudebian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gdb Series &#8211; Attach gdb to a program that is already running &#8211; Part 1</title>
		<link>http://www.leonardoborda.com/blog/gdb-series-attach-gdb-to-a-program-that-is-already-running-part-1/</link>
		<comments>http://www.leonardoborda.com/blog/gdb-series-attach-gdb-to-a-program-that-is-already-running-part-1/#comments</comments>
		<pubDate>Mon, 23 Apr 2012 16:47:18 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Knowledge Base]]></category>
		<category><![CDATA[AIX]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[debugging linux]]></category>
		<category><![CDATA[Development Tools]]></category>
		<category><![CDATA[gdb]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.leonardoborda.com/blog/?p=329</guid>
		<description><![CDATA[Overview This article describes how to attach gdb (GNU Project debugger) to a program that is already running using the gdb [1] command, which is a source-level debugger, capable of breaking programs at any specific line, displaying variable values, and determining where errors occurred. Currently, it works for C, C++, Fortran, Modula 2 and Java [...]
Related posts:<ol>
<li><a href='http://www.leonardoborda.com/blog/how-to-add-a-new-partition-to-the-fstab-file/' rel='bookmark' title='How to add a new partition to the fstab file'>How to add a new partition to the fstab file</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h3>Overview</h3>
<p>This article describes how to attach gdb (GNU Project debugger) to a program that is already running using the gdb [1] command, which is a source-level debugger, capable of breaking programs at any specific line, displaying variable values, and determining where errors occurred. Currently, it works for C, C++, Fortran, Modula 2 and Java programs.</p>
<h3>Step 2.1 Attach gdb to a program that is already running</h3>
<p>This is useful for debugging processes that started up, but crashed when you perform a particular task.</p>
<p>Make sure the GNU Debugger is installed.</p>
<pre>$ sudo apt-get install gdb</pre>
<p>Find the process ID of &lt;program&gt;:</p>
<pre>$ pidof &lt;program&gt;</pre>
<p>Start gdb:</p>
<pre>$ gdb 2&gt;&amp;1 | tee gdb-&lt;program&gt;.txt
(gdb) handle SIG33 pass nostop noprint
(gdb) set pagination 0
(gdb) attach &lt;PID&gt;</pre>
<p>(If the program is running as root, use sudo gdb instead of just gdb above.)</p>
<p>Continue the &lt;program&gt;:</p>
<pre>(gdb) continue</pre>
<p>The program will continue running. Now you can perform any actions necessary to reproduce the crash. If the program hangs but doesn&#8217;t crash you can press ctrl+c in gdb while the program is frozen and then continue with the next step.</p>
<h3>Step 2.2 Retrieve a backtrace</h3>
<pre>(gdb) backtrace full
(gdb) info registers
(gdb) x/16i $pc
(gdb) thread apply all backtrace
(gdb) quit</pre>
<p>Attach the complete output from GDB, contained in gdb-&lt;program&gt;.txt, in your bug report or analyze the file accordingly.</p>
<p>Note that you can also set logging to a file like this:</p>
<pre>(gdb) set logging file gdb-&lt;program&gt;.txt
(gdb) set logging on</pre>
<h3>References</h3>
<p>• [1] &#8211; man gdb • <a target="_blank" href="https://wiki.ubuntu.com/Backtrace%7C">https://wiki.ubuntu.com/Backtrace|</a> Generating Backtraces</p>
<p>&nbsp;</p>
<p>Related posts:<ol>
<li><a href='http://www.leonardoborda.com/blog/how-to-add-a-new-partition-to-the-fstab-file/' rel='bookmark' title='How to add a new partition to the fstab file'>How to add a new partition to the fstab file</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.leonardoborda.com/blog/gdb-series-attach-gdb-to-a-program-that-is-already-running-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add a new partition to the fstab file</title>
		<link>http://www.leonardoborda.com/blog/how-to-add-a-new-partition-to-the-fstab-file/</link>
		<comments>http://www.leonardoborda.com/blog/how-to-add-a-new-partition-to-the-fstab-file/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 16:00:28 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Knowledge Base]]></category>
		<category><![CDATA[AIX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.leonardoborda.com/blog/?p=325</guid>
		<description><![CDATA[Overview This article will cover the scenario where we want to add new partitions to be mounted upon system start-up. The /etc/fstab [2] is the file that contains the necessary information for the operating system mount partitions at the system start-up. The syntax of a fstab entry is described below : [Device] [Mount Point] [File [...]
Related posts:<ol>
<li><a href='http://www.leonardoborda.com/blog/how-to-create-lvm-on-ubuntu/' rel='bookmark' title='How to create LVM on Ubuntu'>How to create LVM on Ubuntu</a></li>
<li><a href='http://www.leonardoborda.com/blog/mount-command-using-cifs-protocol-does-not-mount-windows-2008r2-windows-vista-partitions-status_invalid_param/' rel='bookmark' title='&#8220;mount&#8221; command using CIFS protocol does not mount Windows 2008R2 / Windows Vista partitions &#8211; STATUS_INVALID_PARAM'>&#8220;mount&#8221; command using CIFS protocol does not mount Windows 2008R2 / Windows Vista partitions &#8211; STATUS_INVALID_PARAM</a></li>
<li><a href='http://www.leonardoborda.com/blog/path-environment-not-the-same-in-ubuntu-when-using-sudo/' rel='bookmark' title='Path not the same in Ubuntu when using sudo'>Path not the same in Ubuntu when using sudo</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h3>Overview</h3>
<p>This article will cover the scenario where we want to add new partitions to be mounted upon system start-up. The /etc/fstab [2] is the file that contains the necessary information for the operating system mount partitions at the system start-up.</p>
<p>The syntax of a fstab entry is described below :</p>
<pre>[Device] [Mount Point] [File System Type] [Options] [Dump] [Pass]</pre>
<p>Where:</p>
<ul>
<li><strong>Device</strong> &#8211; Device/partition (/dev location or UUID)</li>
<li><strong>Mount Point</strong> &#8211; The directory on your root file system (mount point)</li>
<li><strong>File System Type</strong> &#8211; Type of file system (ext4, ext3, ext2, jfs, reiserfs, vfat, and others)</li>
<li><strong>Options</strong> &#8211; Device/partition ( Mount options for accessing the device/partition (see the man page for mount)</li>
<li><strong>Dump</strong> &#8211; Used by the dump utility to decide when to make a backup. Default is 0</li>
<li><strong>Pass</strong> &#8211; Used by fsck to decide which order filesystems are to be checked. Possible entries are 0, 1 and 2. The root file system should have the highest priority 1 &#8211; other file systems you want to have checked must have a 2 and they will be checked sequentially. File systems with a value 0 will not be checked by the fsck utility.</li>
</ul>
<h3>Configuration</h3>
<p>By default Ubuntu uses UUID [1] to identify partitions. To list your partitions you must use the blkid command.</p>
<pre>$ sudo blkid</pre>
<p>You will find all the new disks found by the operation system. An example of the output can be seen below.</p>
<pre>/dev/sda1: UUID="2746087f-0e00-4429-a2f6-1ddae8a56cc0" TYPE="ext4"
/dev/sda5: UUID="bf4200b2-b938-48a2-bf77-c5ec1f4d86a8" TYPE="swap"
/dev/sdb1: UUID="bf4200b2-b938-48a2-bf77-c5ec1f4d86b9" TYPE="ext4"</pre>
<p>Once you know the UUID for the partition you want to configure in /etc/fstab you can proceed and create a mount point for the new partition. In this example we will be using /data. The mount point is the location where you will mount the new disk and/or partition</p>
<pre>$ mkdir /data</pre>
<h3>Add the new partition to the /etc/fstab file</h3>
<p>Before you edit system files, make a backup.</p>
<pre>$ sudo cp /etc/fstab /etc/fstab.old</pre>
<p>Add the following line to the /etc/fstab file.</p>
<pre># /data on /dev/sdb1
UUID=bf4200b2-b938-48a2-bf77-c5ec1f4d86b9	/data	ext4	errors=remount-ro	0	2</pre>
<p>Save the file and then run mount in order to make the changes effective without booting the system.</p>
<pre>$ sudo mount -a</pre>
<p>To view the current partitions mounted, run:</p>
<pre>$ sudo mount -v</pre>
<h3>fstab entries for other filesystems</h3>
<p>NFS</p>
<pre>nfs-server:/share /media/nfs-share	nfs4	_netdev,auto	0	0</pre>
<p>SSHFS</p>
<pre>sshfs#user@server:/share  fuse  user,allow_other  0  0</pre>
<h3>References</h3>
<ul>
<li>[1] &#8211; <a target="_blank" href="http://en.wikipedia.org/wiki/Universally_unique_identifier%7CUUID">http://en.wikipedia.org/wiki/Universally_unique_identifier|UUID</a></li>
<li>[2] &#8211; man 5 fstab</li>
</ul>
<p>Related posts:<ol>
<li><a href='http://www.leonardoborda.com/blog/how-to-create-lvm-on-ubuntu/' rel='bookmark' title='How to create LVM on Ubuntu'>How to create LVM on Ubuntu</a></li>
<li><a href='http://www.leonardoborda.com/blog/mount-command-using-cifs-protocol-does-not-mount-windows-2008r2-windows-vista-partitions-status_invalid_param/' rel='bookmark' title='&#8220;mount&#8221; command using CIFS protocol does not mount Windows 2008R2 / Windows Vista partitions &#8211; STATUS_INVALID_PARAM'>&#8220;mount&#8221; command using CIFS protocol does not mount Windows 2008R2 / Windows Vista partitions &#8211; STATUS_INVALID_PARAM</a></li>
<li><a href='http://www.leonardoborda.com/blog/path-environment-not-the-same-in-ubuntu-when-using-sudo/' rel='bookmark' title='Path not the same in Ubuntu when using sudo'>Path not the same in Ubuntu when using sudo</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.leonardoborda.com/blog/how-to-add-a-new-partition-to-the-fstab-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easily convert vdi to vmdk images</title>
		<link>http://www.leonardoborda.com/blog/easily-convert-vdi-to-vmdk-images/</link>
		<comments>http://www.leonardoborda.com/blog/easily-convert-vdi-to-vmdk-images/#comments</comments>
		<pubDate>Mon, 09 Apr 2012 16:54:18 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Knowledge Base]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[vdi to vmdk]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[vm]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.leonardoborda.com/blog/?p=336</guid>
		<description><![CDATA[Converting images from one format to another should not be that hard that&#8217;s why I wrote the article How to clone a vbox virtualbox disk and how to convert vdi to vmdk in Sun VirtualBox Vbox. Even though these articles have been written I still find a bit hard since there are other ways to convert [...]
Related posts:<ol>
<li><a href='http://www.leonardoborda.com/blog/how-to-convert-vdi-to-vmdk-in-sun-virtualbox-vbox/' rel='bookmark' title='how to convert vdi to vmdk in Sun VirtualBox Vbox'>how to convert vdi to vmdk in Sun VirtualBox Vbox</a></li>
<li><a href='http://www.leonardoborda.com/blog/how-to-clone-a-vbox-virtualbox-disk/' rel='bookmark' title='How to clone a vbox virtualbox disk'>How to clone a vbox virtualbox disk</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Converting images from one format to another should not be that hard that&#8217;s why I wrote the article <strong></strong><a target="_blank" title="How to clone a vbox virtualbox disk" href="http://www.leonardoborda.com/blog/how-to-clone-a-vbox-virtualbox-disk/">How to clone a vbox virtualbox disk</a> and <strong><a title="how to convert vdi to vmdk in Sun VirtualBox" href="http://www.leonardoborda.com/blog/how-to-convert-vdi-to-vmdk-in-sun-virtualbox-vbox/">how to convert vdi to vmdk in Sun VirtualBox</a> </strong><a href="../how-to-convert-vdi-to-vmdk-in-sun-virtualbox-vbox/" target="_blank"><strong>Vbox</strong></a>. Even though these articles have been written I still find a bit hard since there are other ways to convert VirtualBox to VMware.</p>
<p>In this article I am going to show how to convert vdi images to vmdk using the latest version of Oracle VM VirtualBox. This was tested using Windows although the steps should not change if performing them on a Linux machine.</p>
<p>1. If you&#8217;re running a Windows virtual machine make sure to uninstall Oracle VM VirtualBox guest. Go to the &#8220;Programs and Features&#8221; and unistall it.</p>
<p>2. Just to be safe make a backup of the current vdi. You can copy it to c:\\backup\\images</p>
<p>3. We will be using the VBoxManage command. First you need to identify the VM vdi file path of the VirtualBox machine you want to convert. To do so run the following:</p>
<pre>VBoxManage list hdds</pre>
<p>For a Linux OS you must run the following</p>
<pre>$ /usr/bin/vboxmanage list hdds</pre>
<p>4. Take notes of the VM vdi file path</p>
<pre>UUID:        368116e4-1c4a-49c4-9723-0e973f072948
Parent UUID: base
Format:      VDI
Location:    C:\\Images\\VirtualBox_VMs\\Windows_XP\\Windows_XP.vdi</pre>
<p>5. Convert your .vdi to .vmdk image</p>
<p>The syntax for VBoxManage is:</p>
<pre>VBoxManage clonehd "&lt;vdi file format&gt;" &lt;NewVM.vmdk&gt; --format vmdk</pre>
<pre>VBoxManage clonehd "C:\\Images\\VirtualBox_VMs\\Windows_XP\\Windows_XP.vdi" WinXP.vmdk --format vmdk</pre>
<p>The output will be similar to the one below:</p>
<pre>VBoxManage clonehd "C:\\Images\\VirtualBox_VMs\\Windows_XP\\Windows_XP.vdi" WinXP.vmdk --format vmdk
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'vmdk'. UUID: 17c15f43-4d10-4b92-b8c7-9143d3c63a0a</pre>
<p>6. Create a new virtual machine in VMware and replace the provided disk with the one created previously.</p>
<p><strong>Gotchas</strong>: If you are converting a linux machine, you must change at the boot time to boot from root=/dev/hda1 instead of root=/dev/sda1. To do so in the grub menu, press ‘e’ and adjust root=/dev/sda1 to be root=/dev/hda1.</p>
<p>That&#8217;s it!</p>
<p>Related posts:<ol>
<li><a href='http://www.leonardoborda.com/blog/how-to-convert-vdi-to-vmdk-in-sun-virtualbox-vbox/' rel='bookmark' title='how to convert vdi to vmdk in Sun VirtualBox Vbox'>how to convert vdi to vmdk in Sun VirtualBox Vbox</a></li>
<li><a href='http://www.leonardoborda.com/blog/how-to-clone-a-vbox-virtualbox-disk/' rel='bookmark' title='How to clone a vbox virtualbox disk'>How to clone a vbox virtualbox disk</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.leonardoborda.com/blog/easily-convert-vdi-to-vmdk-images/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>&#8220;mount&#8221; command using CIFS protocol does not mount Windows 2008R2 / Windows Vista partitions &#8211; STATUS_INVALID_PARAM</title>
		<link>http://www.leonardoborda.com/blog/mount-command-using-cifs-protocol-does-not-mount-windows-2008r2-windows-vista-partitions-status_invalid_param/</link>
		<comments>http://www.leonardoborda.com/blog/mount-command-using-cifs-protocol-does-not-mount-windows-2008r2-windows-vista-partitions-status_invalid_param/#comments</comments>
		<pubDate>Mon, 09 Apr 2012 16:46:33 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Knowledge Base]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[ntlmv2]]></category>
		<category><![CDATA[precise]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.leonardoborda.com/blog/?p=316</guid>
		<description><![CDATA[Overview When upgrading an Active Directory Domain to Windows 2008R2 the &#8220;mount&#8221; command does not work when an ubuntu machine tries to mount a partition on a remote Windows server. This problem occurs because of an additional security check [1] in Windows Server 2008 and in Windows Vista. Solution instead of using: mount -t cifs [...]
Related posts:<ol>
<li><a href='http://www.leonardoborda.com/blog/how-to-addchange-preseed-files-on-ubuntu-dvdcd/' rel='bookmark' title='How to add/change preseed files on Ubuntu DVD/CD'>How to add/change preseed files on Ubuntu DVD/CD</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h3>Overview</h3>
<p>When upgrading an Active Directory Domain to Windows 2008R2 the &#8220;mount&#8221; command does not work when an ubuntu machine tries to mount a partition on a remote Windows server. This problem occurs because of an additional security check [1] in Windows Server 2008 and in Windows Vista.</p>
<h3>Solution</h3>
<p>instead of using:</p>
<pre>mount -t cifs //&lt;ip_address&gt;/dir_to_mount /mnt/directory -o user=USERNAME,password=PASSWORD,domain=DOMAINNAME</pre>
<p>use:</p>
<pre>mount -t cifs //&lt;ip_address&gt;/dir_to_mount /mnt/directory -o user=USERNAME,password=PASSWORD,domain=DOMAINNAME,sec=ntlmv2</pre>
<h3>References</h3>
<p>[1] &#8211; <a target="_blank" href="http://support.microsoft.com/kb/957441">http://support.microsoft.com/kb/957441</a> | MS KB #957441 &#8211; Client connections return a &#8220;STATUS_INVALID_PARAM&#8221; error code when you use a &#8220;Send NTLMv2 response only&#8221; authentication level in Windows Server 2008 or in Windows Vista</p>
<p>&nbsp;</p>
<p>Related posts:<ol>
<li><a href='http://www.leonardoborda.com/blog/how-to-addchange-preseed-files-on-ubuntu-dvdcd/' rel='bookmark' title='How to add/change preseed files on Ubuntu DVD/CD'>How to add/change preseed files on Ubuntu DVD/CD</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.leonardoborda.com/blog/mount-command-using-cifs-protocol-does-not-mount-windows-2008r2-windows-vista-partitions-status_invalid_param/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>127.0.0.0/8 127.0.1.1 127.0.0.1 &#8211; Ubuntu / Debian</title>
		<link>http://www.leonardoborda.com/blog/127-0-0-08-127-0-1-1-127-0-0-1-ubuntu-debian/</link>
		<comments>http://www.leonardoborda.com/blog/127-0-0-08-127-0-1-1-127-0-0-1-ubuntu-debian/#comments</comments>
		<pubDate>Sun, 08 Apr 2012 17:33:55 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Knowledge Base]]></category>
		<category><![CDATA[127.0.1.1]]></category>
		<category><![CDATA[AIX]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.leonardoborda.com/blog/?p=332</guid>
		<description><![CDATA[Some time ago I wrote this article &#8220;what does 127.0.1.1 mean ?&#8221; and I explained why some applications like GNOME expects that the hostname to be resolved to an ip address with a canonical fully qualified domain name – FQDN. Another interesting thing that I have not said about it is that the range 127.0.0.0/8 [...]
Related posts:<ol>
<li><a href='http://www.leonardoborda.com/blog/127-0-1-1-ubuntu-debian/' rel='bookmark' title='127.0.1.1 ? Ubuntu / Debian'>127.0.1.1 ? Ubuntu / Debian</a></li>
<li><a href='http://www.leonardoborda.com/blog/install-ubuntudebian-development-tools/' rel='bookmark' title='install ubuntu/debian development tools'>install ubuntu/debian development tools</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Some time ago I wrote this article &#8220;<a title="127.0.1.1 ? Ubuntu / Debian" href="http://www.leonardoborda.com/blog/127-0-1-1-ubuntu-debian/" target="_blank">what does 127.0.1.1 mean ?</a>&#8221; and I explained why some applications like GNOME expects that the hostname to be resolved to an ip address with a canonical fully qualified domain name – FQDN.</p>
<p>Another interesting thing that I have not said about it is that the range 127.0.0.0/8 (IANA &#8211; Loopback) is entirely reserved for <a target="_blank" title="Loopback" href="http://en.wikipedia.org/wiki/Loopback">Loopback</a> (<a target="_blank" href="http://tools.ietf.org/html/rfc5735">RFC 5735</a>).</p>
<p>In other words anything that you ping within that range (127.0.0.0 &#8211; 127.255.255.255) will reply back to the localhost (loopback).</p>
<pre>$ ping 127.1.13.1
PING 127.1.13.1 (127.1.13.1) 56(84) bytes of data.
64 bytes from 127.1.13.1: icmp_req=1 ttl=64 time=0.072 ms</pre>
<p>One piece of advice is to not change the defaults in Ubuntu / Debian systems otherwise you can expect weird errors from some applications. Also do not configure anything to listen on port 127.0.1.1. If you want to know what is currently running on the loopback range type the following</p>
<pre>$ sudo netstat -tunelp | grep 127.0.[0-255].[0-255]
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      117        11880       1099/mysqld
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      0          13907       2061/dnsmasq
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      0          11116       1019/cupsd
tcp        0      0 127.0.0.1:9050          0.0.0.0:*               LISTEN      0          10944       1393/tor
udp        0      0 127.0.0.1:53            0.0.0.0:*                           0          13906       2061/dnsmasq
udp        0      0 127.0.0.1:715           0.0.0.0:*                           0          9455        963/rpc.statd
udp        0      0 127.0.0.1:34242         0.0.0.0:*                           1000       18458       2410/skype</pre>
<p>Related posts:<ol>
<li><a href='http://www.leonardoborda.com/blog/127-0-1-1-ubuntu-debian/' rel='bookmark' title='127.0.1.1 ? Ubuntu / Debian'>127.0.1.1 ? Ubuntu / Debian</a></li>
<li><a href='http://www.leonardoborda.com/blog/install-ubuntudebian-development-tools/' rel='bookmark' title='install ubuntu/debian development tools'>install ubuntu/debian development tools</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.leonardoborda.com/blog/127-0-0-08-127-0-1-1-127-0-0-1-ubuntu-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making wget downloads file with proper filenames</title>
		<link>http://www.leonardoborda.com/blog/making-wget-downloads-file-with-proper-filenames/</link>
		<comments>http://www.leonardoborda.com/blog/making-wget-downloads-file-with-proper-filenames/#comments</comments>
		<pubDate>Thu, 01 Mar 2012 19:40:03 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Knowledge Base]]></category>
		<category><![CDATA[wget ubuntu linux]]></category>

		<guid isPermaLink="false">http://www.leonardoborda.com/blog/?p=298</guid>
		<description><![CDATA[How many times have you tried to download files from a web page that has the following format: http://www.domainname.com/start-download?filename=foobar and you get ?filename=foobar as the filename? That&#8217;s because wget is not reading the Content-Disposition header. In order to make wget read that header one must add the following parameter: wget --content-disposition Example: wget --content-disposition http://www.ubuntu.com/start-download?distro=desktop&#38;bits=32&#38;release=latest [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>How many times have you tried to download files from a web page that has the following format: http://www.domainname.com/start-download?filename=foobar and you get ?filename=foobar as the filename?</p>
<p>That&#8217;s because wget is not reading the Content-Disposition header. In order to make wget read that header one must add the following parameter:</p>
<p><code>wget --content-disposition</code><br />
Example:</p>
<p><code>wget --content-disposition http://www.ubuntu.com/start-download?distro=desktop&amp;bits=32&amp;release=latest</code></p>
<p>PS: This only works for newer wget versions though. eg: wget (1.12-1)</p>
<p>keywords: nova, openstack, wget, content-disposition</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.leonardoborda.com/blog/making-wget-downloads-file-with-proper-filenames/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add/change preseed files on Ubuntu DVD/CD</title>
		<link>http://www.leonardoborda.com/blog/how-to-addchange-preseed-files-on-ubuntu-dvdcd/</link>
		<comments>http://www.leonardoborda.com/blog/how-to-addchange-preseed-files-on-ubuntu-dvdcd/#comments</comments>
		<pubDate>Mon, 13 Feb 2012 16:43:13 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Knowledge Base]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Kickstart]]></category>
		<category><![CDATA[Preseed]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.leonardoborda.com/blog/?p=289</guid>
		<description><![CDATA[Overview ====== Automation is usually the best thing you can do when you perform things/tasks more than once. When you automate a process you have more time and more time means more time spent doing things that you really enjoy. In this scenario I will explain how to add a Ubuntu / Debian preseed file [...]
Related posts:<ol>
<li><a href='http://www.leonardoborda.com/blog/path-environment-not-the-same-in-ubuntu-when-using-sudo/' rel='bookmark' title='Path not the same in Ubuntu when using sudo'>Path not the same in Ubuntu when using sudo</a></li>
<li><a href='http://www.leonardoborda.com/blog/how-to-create-lvm-on-ubuntu/' rel='bookmark' title='How to create LVM on Ubuntu'>How to create LVM on Ubuntu</a></li>
<li><a href='http://www.leonardoborda.com/blog/configure-apache-ssl-certificate-in-ubuntu-804/' rel='bookmark' title='Configure Apache SSL Certificate in Ubuntu 8.04'>Configure Apache SSL Certificate in Ubuntu 8.04</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Overview<br />
======<br />
Automation is usually the best thing you can do when you perform things/tasks more than once. When you automate a process you have more time and more time means more time spent doing things that you really enjoy. In this scenario I will explain how to add a Ubuntu / Debian preseed file into a Ubuntu Alternate DVD iso so you can automate the installation process from a CD install. It can be used for doing automatic Ubuntu cd installations.<br />
Important: This article does not explain how to create Ubuntu / Debian preseed files. If you&#8217;re interested in how to create a preseed file, please go to https://help.ubuntu.com/community/InstallCDCustomization.</p>
<p>1. Create environment<br />
<code>mkdir ~/lts-remaster<br />
mkdir ~/lts-remaster/iso<br />
mkdir ~/lts-remaster/cd-remaster<br />
cd ~/lts-remaster<br />
wget http://mirror.anl.gov/pub/ubuntu-iso/DVDs/ubuntu/10.04.3/release/ubuntu-10.04.3-dvd-amd64.iso</code></p>
<p>2. Mount ISO<br />
<code>sudo mount -o loop ubuntu-10.04.3-dvd-amd64.iso ~/lts-remaster/iso</code></p>
<p>2.1 Copy the ISO contents to the cd-remaster<br />
<code>rsync -avr iso/ cd-remaster/</code></p>
<p>3. Copy your already created seed file into the preseed directory.<br />
<code>sudo cp -v seed.seed ~/lts-remaster/cd-remaster/preseed/</code></p>
<p>4. Make changes to isolinux/text.cfg if necessary. Text.cfg is the file where you can configure the options menu.<br />
<code>sudo vi cd-remaster/isolinux/text.cfg</code></p>
<p>5. Burn the cd again<br />
<code>sudo mkisofs -r -V "Custom Ubuntu Install CD" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o custom-lts1043.iso ~/lts-remaster/cd-remaster</code></p>
<p>7. Boot the cd and add the following boot options or change the file isolinux/text.cfg :<br />
<code>file=/cdrom/preseed/seed.seed locale=en_US priority=critical console-setup/ask_detect=false console-setup/layoutcode=us hostname=your-hostname domain=your-domain initrd=/install/initrd.gz quiet --</code></p>
<p>PS: You must add those additional entries at boot time otherwise those questions/answers do not work.</p>
<p>Important:<br />
You may have to play a bit with your preseed file in order to have all the questions answered. Dustin Kirkland has made available a <a target="_blank" href="http://bit.ly/uinstall" target="_blank">preseed</a> file as an example.</p>
<p>References<br />
=======</p>
<p>https://help.ubuntu.com/11.04/installation-guide/i386/appendix-preseed.html</p>
<p>http://www.debian.org/releases/stable/i386/apbs04.html.en#preseed-l10n</p>
<p>Related posts:<ol>
<li><a href='http://www.leonardoborda.com/blog/path-environment-not-the-same-in-ubuntu-when-using-sudo/' rel='bookmark' title='Path not the same in Ubuntu when using sudo'>Path not the same in Ubuntu when using sudo</a></li>
<li><a href='http://www.leonardoborda.com/blog/how-to-create-lvm-on-ubuntu/' rel='bookmark' title='How to create LVM on Ubuntu'>How to create LVM on Ubuntu</a></li>
<li><a href='http://www.leonardoborda.com/blog/configure-apache-ssl-certificate-in-ubuntu-804/' rel='bookmark' title='Configure Apache SSL Certificate in Ubuntu 8.04'>Configure Apache SSL Certificate in Ubuntu 8.04</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.leonardoborda.com/blog/how-to-addchange-preseed-files-on-ubuntu-dvdcd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Increasing the number of #posts</title>
		<link>http://www.leonardoborda.com/blog/increasing-the-number-of-post/</link>
		<comments>http://www.leonardoborda.com/blog/increasing-the-number-of-post/#comments</comments>
		<pubDate>Mon, 13 Feb 2012 15:46:40 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Open Bar]]></category>
		<category><![CDATA[posts]]></category>

		<guid isPermaLink="false">http://www.leonardoborda.com/blog/?p=280</guid>
		<description><![CDATA[Hello, Today I&#8217;ve decided to increase the number of posts on this blog. I will be publishing one article/post a day week for 365 52 days weeks.While I can&#8217;t guarantee that they will be done on a weekly basis I will write 52 posts. Main topics will continue to be tech stuff although I might [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>Today I&#8217;ve decided to increase the number of posts on this blog. I will be publishing one article/post a <del>day</del> week for <del>365</del> 52 <del>days</del> weeks.While I can&#8217;t guarantee that they will be done on a weekly basis I will write 52 posts. Main topics will continue to be tech stuff although I might post some of the places I have traveled to.</p>
<p>Leo</p>
<p>#0</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.leonardoborda.com/blog/increasing-the-number-of-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Steve Jobs, Apple&#8217;s Visionary, Dies at 56</title>
		<link>http://www.leonardoborda.com/blog/steve-jobs-apples-visionary-dies-at-56/</link>
		<comments>http://www.leonardoborda.com/blog/steve-jobs-apples-visionary-dies-at-56/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 00:46:32 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Knowledge Base]]></category>
		<category><![CDATA[Apple]]></category>

		<guid isPermaLink="false">http://www.leonardoborda.com/blog/?p=262</guid>
		<description><![CDATA[It is sad to say but Steve Jobs died today at age of 56. RIP Steve. He leaves the message &#8220;Keep loving what you like till the end of your journey!&#8221; Hope to see a cure for cancer soon! http://www.youtube.com/watch?v=UF8uR6Z6KLc &#160; No related posts.
No related posts.]]></description>
			<content:encoded><![CDATA[<p>It is sad to say but Steve Jobs died today at age of 56. RIP Steve. He leaves the message &#8220;Keep loving what you like till the end of your journey!&#8221; Hope to see a cure for cancer soon!</p>
<p><a target="_blank" href="http://www.youtube.com/watch?v=UF8uR6Z6KLc">http://www.youtube.com/watch?v=UF8uR6Z6KLc</a></p>
<p>&nbsp;</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.leonardoborda.com/blog/steve-jobs-apples-visionary-dies-at-56/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

