<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>Cyconet Blog &#187; Linux</title>
	<atom:link href="http://blog.waja.info/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.waja.info</link>
	<description>Just a place to be!</description>
	<lastBuildDate>Wed, 28 Apr 2010 08:22:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
		<item>
		<title>[selfnote] Cloning/Backing up NTFS systems</title>
		<link>http://blog.waja.info/2009/09/18/cloningbacking-up-ntfs-systems/</link>
		<comments>http://blog.waja.info/2009/09/18/cloningbacking-up-ntfs-systems/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 21:27:34 +0000</pubDate>
		<dc:creator>cyco</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[planet]]></category>
		<category><![CDATA[selfnote]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.waja.info/?p=262</guid>
		<description><![CDATA[For some reasons, you may need to clone/backup NTFS based systems. Lets say your NTFS system is located at /dev/sda1 and /dev/sdb1 is a spare partition where you can store your image. At first you need to boot a live system to take an image: mount /dev/sdb1 /mnt/sdb1 dd bs=512 count=1 if=/dev/sda of=/mnt/sdb1/xp_vbox.mbr ntfsclone -s [...]]]></description>
			<content:encoded><![CDATA[<p>For some reasons, you may need to clone/backup NTFS based systems. Lets say your NTFS system is located at /dev/sda1 and /dev/sdb1 is a spare partition where you can store your image.</p>
<p>At first you need to boot a live system to take an image:</p>
<p class="code">
mount /dev/sdb1 /mnt/sdb1<br />
dd bs=512 count=1 if=/dev/sda of=/mnt/sdb1/xp_vbox.mbr<br />
ntfsclone -s -o &#8211; /dev/sda1 | bzip2 -9 -c > \<br />
 /mnt/sdb1/xp_vbox.img.bz2
</p>
<p>To restore the image you just need:</p>
<p class="code">
mount /dev/sdb1 /mnt/sdb1<br />
dd count=1 bs=446 if=/mnt/sdb1/xp_vbox.mbr of=/dev/sda<br />
cat /mnt/sdb1/xp_vbox.img.bz2 | bunzip2 -c | \<br />
ntfsclone -r -O /dev/sda1 -
</p>
<p>P.S. If you are elective in germany, have a look at <a href="http://blog.waja.info/tag/politics/">this</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2009/09/18/cloningbacking-up-ntfs-systems/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Oh happy day &#8230;</title>
		<link>http://blog.waja.info/2009/02/15/oh-happy-day/</link>
		<comments>http://blog.waja.info/2009/02/15/oh-happy-day/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 10:01:20 +0000</pubDate>
		<dc:creator>cyco</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Party]]></category>
		<category><![CDATA[planet]]></category>

		<guid isPermaLink="false">http://blog.waja.info/?p=214</guid>
		<description><![CDATA[What a happy day &#8230; on the wedding anniversary of our civil marriage we got a great gift. Our favorite distribution released a new major version. Like every time &#8230; it&#8217;s the best distribution our project released so far. Many thanks to all those people who did make that happen. If you not married today, [...]]]></description>
			<content:encoded><![CDATA[<p>What a happy day &#8230; on the wedding anniversary of our civil marriage we got a great gift. Our <a target="new" href="http://www.debian.org">favorite distribution</a> <a target="new" href="http://www.debian.org/News/2009/20090214">released a new major version</a>.<br />
Like every time &#8230; it&#8217;s the best distribution our project released so far. Many thanks to all those people who did make that happen. If you not married today, maybe you have the possibility to dedicate <a target="new" href="http://www.debian.org/releases/lenny/releasenotes">Lenny</a> to your valentine. :)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2009/02/15/oh-happy-day/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Booting Linux on Cisco 7513</title>
		<link>http://blog.waja.info/2007/06/18/booting-linux-on-cisco-7513/</link>
		<comments>http://blog.waja.info/2007/06/18/booting-linux-on-cisco-7513/#comments</comments>
		<pubDate>Mon, 18 Jun 2007 12:15:57 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[planet]]></category>

		<guid isPermaLink="false">http://blog.waja.info/2007/06/18/booting-linux-on-cisco-7513/</guid>
		<description><![CDATA[Today I was reconfiguring a Cisco 7513 with a RSP 16 and a FastEthernet module inside. So I did a &#8220;erase nvram&#8221; and a &#8220;reload&#8221;. After booting I was surprised to see the following in my Terminal: Would you like to enter the initial configuration dialog? [yes/no]: Loading pxelinux.0 from 10.42.10.50 (via FastEthernet4/0/0): !!! [OK [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was reconfiguring a <a target="new" href="http://www.cisco.com/en/US/products/hw/routers/ps359/ps362/index.html">Cisco 7513</a> with a <a target="new" href="http://www.cisco.com/en/US/products/hw/routers/ps359/products_data_sheet09186a008009201c.html">RSP 16</a> and a <a target="new" href="http://www.cisco.com/en/US/products/hw/modules/ps2033/ps2546/index.html">FastEthernet</a> module inside.<br />
So I did a &#8220;erase nvram&#8221; and a &#8220;reload&#8221;. After booting I was surprised to see the following in my Terminal:</p>
<p class="code">
Would you like to enter the initial configuration dialog? [yes/no]:<br />
Loading pxelinux.0 from 10.42.10.50 (via FastEthernet4/0/0): !!!<br />
[OK - 13156 bytes]
</p>
<p>So the box took an IP via DHCP and tried to netboot. (Un)fortunately it only breaks my terminal, so no worries! ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2007/06/18/booting-linux-on-cisco-7513/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Pimp my T5725</title>
		<link>http://blog.waja.info/2007/05/19/pimp-my-t5725/</link>
		<comments>http://blog.waja.info/2007/05/19/pimp-my-t5725/#comments</comments>
		<pubDate>Sat, 19 May 2007 17:18:16 +0000</pubDate>
		<dc:creator>cyco</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[planet]]></category>

		<guid isPermaLink="false">http://blog.waja.info/2007/05/19/pimp-my-t5725/</guid>
		<description><![CDATA[Yesterday my ordered HP Thin Client T5725 arrived. The clue is, Debian sarge is and no moving parts (no noise) are inside. It&#8217;s a really nice thin client and it can be used as Surfstation out of the box. There is also a &#8220;HP Connection Administrator&#8221; which can manage &#8216;Citrix&#8216;, &#8216;rdesktop&#8216; and &#8216;XDMCP&#8216; connections. After [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday my ordered <a target="new" href="http://h10010.www1.hp.com/wwpc/us/en/sm/WF05a/12454-12454-321959-338927-89307-3221863.html">HP Thin Client T5725</a> arrived. The clue is, Debian <a target="new" href="http://www.debian.org/releases/sarge/">sarge</a> is and no moving parts (no noise) are inside. It&#8217;s a really nice thin client and it can be used as Surfstation out of the box. There is also a &#8220;HP Connection Administrator&#8221; which can manage &#8216;<a target="new" href="http://en.wikipedia.org/wiki/Citrix_Presentation_Server">Citrix</a>&#8216;, &#8216;<a target="new" href="http://www.rdesktop.org/">rdesktop</a>&#8216; and &#8216;<a target="new" href="http://en.wikipedia.org/wiki/XDMCP">XDMCP</a>&#8216; connections.<br />
After taking a short overview, I decided to update to <a target="new" href="http://www.debian.org/releases/etch/">etch</a>. This was a kind tricky, cause packages did need to update in correct order to save the HP packages. Due the switch from <a target="new" href="http://www.xfree86.org/">Xfree</a> to <a target="new" href="http://en.wikipedia.org/wiki/X.org">xorg</a> with etch, the graphical frontend for configuring the X server didn&#8217;t work anymore, but in my environment this is no issue.<br />
So now I&#8217;m really happy with a HP Thin Client and bleeding edge software on it, for xdmcp use. ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2007/05/19/pimp-my-t5725/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Taking Xen guests (domU) alive via routed network</title>
		<link>http://blog.waja.info/2007/03/29/taking-guests-alive/</link>
		<comments>http://blog.waja.info/2007/03/29/taking-guests-alive/#comments</comments>
		<pubDate>Thu, 29 Mar 2007 12:02:46 +0000</pubDate>
		<dc:creator>cyco</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[planet]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://blog.waja.info/2007/03/29/taking-guests-alive/</guid>
		<description><![CDATA[The xend config looks like this: playground:~# grep -v ^# /etc/xen/xend-config.sxp (network-script &#8216;network-bridge netdev=dummy0&#8242;) (vif-script vif-bridge) (dom0-min-mem 196) (dom0-cpus 0) Creating volume group for Xen domU (/dev/hdb2 was allready created with id 8e): playground:~# pvcreate /dev/hdb2 Physical volume &#8220;/dev/hdb2&#8243; successfully created playground:~# vgcreate xen-vol /dev/hdb2 Volume group &#8220;xen-vol&#8221; successfully created playground:~# vgscan Reading all physical [...]]]></description>
			<content:encoded><![CDATA[<p>The xend config looks like this:</p>
<p class="code">
playground:~# grep -v ^# /etc/xen/xend-config.sxp<br />
(network-script &#8216;network-bridge netdev=dummy0&#8242;)<br />
(vif-script vif-bridge)<br />
(dom0-min-mem 196)<br />
(dom0-cpus 0)
</p>
<p>Creating volume group for Xen domU (/dev/hdb2 was allready created with id 8e):</p>
<p class="code">
playground:~# pvcreate /dev/hdb2<br />
  Physical volume &#8220;/dev/hdb2&#8243; successfully created<br />
playground:~# vgcreate xen-vol /dev/hdb2<br />
  Volume group &#8220;xen-vol&#8221; successfully created<br />
playground:~# vgscan<br />
  Reading all physical volumes.  This may take a while&#8230;<br />
  Found volume group &#8220;xen-vol&#8221; using metadata type lvm2
</p>
<p>Creating first domU:</p>
<p class="code">
playground:~# xen-create-image &#8211;ip 192.168.222.50 &#8211;hostname xetch.blubb.cyconet.org<br />
General Infomation<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Hostname       :  xetch.blubb.cyconet.org<br />
Distribution   :  etch<br />
Fileystem Type :  ext3<br />
Size Information<br />
&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Image size     :  4Gb<br />
Swap size      :  1024Mb<br />
Image type     :  full<br />
Memory size    :  128Mb<br />
Kernel path    :  /boot/vmlinuz-2.6.18-4-xen-vserver-686<br />
Initrd path    :  /boot/initrd.img-2.6.18-4-xen-vserver-686<br />
Networking Information<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
IP Address 1   : 192.168.222.50<br />
Netmask        : 255.255.255.0<br />
Gateway        : 192.168.222.1<br />
Creating ext3 filesystem on /dev/xen-vol/xetch.blubb.cyconet.org-disk<br />
Done<br />
Installing your system with debootstrap mirror ftp://ftp.de.debian.org/debian/<br />
Done<br />
Running hooks<br />
Done<br />
No role script specified.  Skipping<br />
Creating Xen configuration file<br />
Done<br />
Setting up root password<br />
Enter new UNIX password:<br />
etype new UNIX password:<br />
passwd: password updated successfully<br />
All done<br />
Logfile produced at:<br />
         /var/log/xen-tools/xetch.blubb.cyconet.org.log
</p>
<p>Add the following to /etc/network/interfaces:</p>
<p class="code">
auto dummy0<br />
iface dummy0 inet static<br />
        address 192.168.222.1<br />
        netmask 255.255.255.0<br />
        network 192.168.222.0<br />
        broadcast 192.168.222.255
</p>
<p>Bringing up network interface, restarting xen and starting the domU:</p>
<p class="code">
playground:~# ifup dummy0<br />
playground:~# /etc/init.d/xendomains stop<br />
playground:~# /etc/init.d/xend restart<br />
playground:~# /etc/init.d/xendomains start<br />
playground:~# xm create xetch.blubb.cyconet.org.cfg -c<br />
Using config file &#8220;/etc/xen/xetch.blubb.cyconet.org.cfg&#8221;.<br />
&#8230;
</p>
<p>If you want to autostart your domUs, you have to symlink the configfile to /etc/xen/auto:</p>
<p class="code">
playground:~# mkdir /etc/xen/auto/<br />
playground:~# ln -s /etc/xen/xetch.blubb.cyconet.org.cfg /etc/xen/auto/xetch.blubb.cyconet.org.cfg</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2007/03/29/taking-guests-alive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Getting started with XEN on etch</title>
		<link>http://blog.waja.info/2007/03/28/getting-started-with-xen-on-etch/</link>
		<comments>http://blog.waja.info/2007/03/28/getting-started-with-xen-on-etch/#comments</comments>
		<pubDate>Wed, 28 Mar 2007 16:32:10 +0000</pubDate>
		<dc:creator>cyco</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[planet]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://blog.waja.info/2007/03/28/getting-started-with-xen-on-etch/</guid>
		<description><![CDATA[Today I thought it&#8217;s time to look deeper into the Xen hype. So I decided to install xen on etch. I followed Ganneffs recommandation playground:~# aptitude install bridge-utils iproute \ xen-ioemu-3.0.3-1 xen-utils-3.0.3-1\ xen-linux-system-2.6.18-4-xen-vserver-686 libc6-xen Booting the dom0 leeds me into kernel panic, cause no root device was found. Hmm &#8230; there seems to be the [...]]]></description>
			<content:encoded><![CDATA[<p>Today I thought it&#8217;s time to look deeper into the <a target="new" href="http://www.xensource.com/">Xen</a> hype. So I decided to install xen on <a taregt="new" href="http://www.debian.org/releases/etch/">etch</a>. I followed <a target="new" href="http://kosh.ganneff.de/~joerg/clt2007_xen.pdf">Ganneffs recommandation</a></p>
<p class="code">
playground:~# aptitude install bridge-utils iproute \<br />
xen-ioemu-3.0.3-1 xen-utils-3.0.3-1\<br />
xen-linux-system-2.6.18-4-xen-vserver-686 libc6-xen
</p>
<p>Booting the dom0 leeds me into kernel panic, cause no root device was found. Hmm &#8230; there seems to be the driver missing. Right &#8211; there wasn&#8217;t any /boot/initrd.img-2.6.18-4-xen-vserver-686.<br />
<a target="new" href="http://bblank.thinkmo.de/blog">Waldi</a> did hint me to /var/lib/dpkg/info/linux-image-2.6.18-4-xen-vserver-686.postinst and I got my ramdisk this way:</p>
<p class="code">
playground:~# update-initramfs -c -t -k \<br />
2.6.18-4-xen-vserver-686<br />
playground:~# command -v update-grub > \<br />
/dev/null &#038;&#038; update-grub
</p>
<p>After booting dom0 successfully, my serial console disappeared. After some digging around, I got the clue I need to tell xen, that there is one.<br />
I modified /boot/grub/menu.lst:</p>
<p class="code">
# xenhopt=com1=115200,8n1 console=com1<br />
..<br />
# xenkopt=console=vga
</p>
<p>Dom0 is running now, lets see what we can do next, maybe:</p>
<p class="code">
playground:~# aptitude install xen-tools</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2007/03/28/getting-started-with-xen-on-etch/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Serial console with VMWare</title>
		<link>http://blog.waja.info/2007/02/25/serial-console-with-vmware/</link>
		<comments>http://blog.waja.info/2007/02/25/serial-console-with-vmware/#comments</comments>
		<pubDate>Sun, 25 Feb 2007 17:26:20 +0000</pubDate>
		<dc:creator>cyco</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[planet]]></category>

		<guid isPermaLink="false">http://blog.waja.info/2007/02/25/serial-console-with-vmware/</guid>
		<description><![CDATA[In your config file of virtual machine you need the following: # grep serial openwrt.vmx serial0.present = &#34;TRUE&#34; serial0.fileType = &#34;pipe&#34; serial0.fileName = &#34;./serial1&#34; serial0.pipe.endPoint = &#34;server&#34; serial0.hardwareFlowControl = &#34;TRUE&#34; Redirect output to stdio or a port: # socat &#60;path_to_virtual_machine_dir&#62;/serial1 &#60;stdio &#124;tcp4-listen:&#60;port&#62;&#62;]]></description>
			<content:encoded><![CDATA[<p>In your config file of virtual machine you need the following:</p>
<p class="code">
# grep serial openwrt.vmx<br />
serial0.present = &quot;TRUE&quot;<br />
serial0.fileType = &quot;pipe&quot;<br />
serial0.fileName = &quot;./serial1&quot;<br />
serial0.pipe.endPoint = &quot;server&quot;<br />
serial0.hardwareFlowControl = &quot;TRUE&quot;
</p>
<p>Redirect output to stdio or a port:</p>
<p class="code">
# socat  &lt;path_to_virtual_machine_dir&gt;/serial1 &lt;stdio |tcp4-listen:&lt;port&gt;&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2007/02/25/serial-console-with-vmware/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Remove (obliterate) trees from subversion repository</title>
		<link>http://blog.waja.info/2006/10/17/remove-obliterate-trees-from-subversion-repository/</link>
		<comments>http://blog.waja.info/2006/10/17/remove-obliterate-trees-from-subversion-repository/#comments</comments>
		<pubDate>Tue, 17 Oct 2006 11:22:39 +0000</pubDate>
		<dc:creator>cyco</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[planet]]></category>
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://blog.waja.info/2006/10/17/remove-obliterate-trees-from-subversion-repository/</guid>
		<description><![CDATA[If you need to wipe all traces for some objects in your svn repository, you can do something like this: # svnadmin dump REPOS_PATH &#124; svndumpfilter &#92 &#60;include&#124;exclude&#62; $string &#124; &#92 svnadmin load REPOS_PATH_NEW # mv REPOS_PATH REPOS_PATH_backup &#038;&#038; REPOS_PATH_NEW &#92 REPOS_PATH]]></description>
			<content:encoded><![CDATA[<p>If you need to wipe all traces for some objects in your svn repository, you can do something like this:</p>
<p class="code">
# svnadmin dump REPOS_PATH | svndumpfilter &#92<br />
&lt;include|exclude&gt; $string | &#92<br />
svnadmin load REPOS_PATH_NEW<br />
# mv REPOS_PATH REPOS_PATH_backup &#038;&#038; REPOS_PATH_NEW &#92<br />
REPOS_PATH</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2006/10/17/remove-obliterate-trees-from-subversion-repository/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Backup and restore a Windows partition</title>
		<link>http://blog.waja.info/2006/10/11/backup-and-restore-a-windows-partition/</link>
		<comments>http://blog.waja.info/2006/10/11/backup-and-restore-a-windows-partition/#comments</comments>
		<pubDate>Wed, 11 Oct 2006 18:48:51 +0000</pubDate>
		<dc:creator>cyco</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>

		<guid isPermaLink="false">http://blog.waja.info/2006/10/11/backup-and-restore-a-windows-partition/</guid>
		<description><![CDATA[Today I discovered &#8216;ntfsclone&#8217; which is included in debian in the &#8216;ntfsprogs&#8217; package. For example if you wonna try to backup your &#8216;/dev/hda3&#8242; to a remote host: foobar:~ # ntfsclone &#8211;save-image &#8211;output &#8211; /edv/hda3 &#124; &#92 ssh $remotehost &#8216;( cat > xp.img )&#8217; remotehost:~ # cat xp.img &#124; ssh $foobar &#92 &#8216;(ntfsclone &#8211;restore-image &#8211;overwrite /dev/hda3 [...]]]></description>
			<content:encoded><![CDATA[<p>Today I discovered &#8216;ntfsclone&#8217; which is included in debian in the &#8216;ntfsprogs&#8217; package.</p>
<p>For example if you wonna try to backup your &#8216;/dev/hda3&#8242; to a remote host:
</p>
<p class="code">
foobar:~ # ntfsclone &#8211;save-image &#8211;output &#8211; /edv/hda3 | &#92<br />
ssh $remotehost &#8216;( cat > xp.img )&#8217;
</p>
<p class="code">
remotehost:~ # cat xp.img | ssh $foobar &#92<br />
&#8216;(ntfsclone &#8211;restore-image &#8211;overwrite /dev/hda3 &#8211; )&#8217;
</p>
<p>Maybe you you also will have a look into &#8216;ntfsresize&#8217;! ;-)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2006/10/11/backup-and-restore-a-windows-partition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>LVM and Quota with Vserver on Debian</title>
		<link>http://blog.waja.info/2006/07/20/lvm-and-quota-with-vserver-on-debian/</link>
		<comments>http://blog.waja.info/2006/07/20/lvm-and-quota-with-vserver-on-debian/#comments</comments>
		<pubDate>Thu, 20 Jul 2006 13:34:49 +0000</pubDate>
		<dc:creator>cyco</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[vserver]]></category>

		<guid isPermaLink="false">http://blog.waja.info/2006/07/20/lvm-and-quota-with-vserver-on-debian/</guid>
		<description><![CDATA[This article is based on the excellent article on 5dollarwhitebox.org. At first install nessesary packages: # aptitude -t sarge-backports install lvm2&#92; util-vserver coreutils linux-image-2.6-vserver-686 Create Volume and Group: Replace &#8216;/dev/hda3&#8242; to your own needs! # pvcreate /dev/hda3 Physical volume &#8220;/dev/hda3&#8243; successfully created # vgcreate vg0 /dev/hda3 Volume group &#8220;vg0&#8243; successfully created Create a Logical Volume [...]]]></description>
			<content:encoded><![CDATA[<p>This article is based on the excellent article on <a href="http://www.5dollarwhitebox.org/wiki/index.php/Howtos_Linux-Vserver_With_LVM_And_Quotas"> 5dollarwhitebox.org</a>.</p>
<p>At first install nessesary packages:</p>
<p class="code">
# aptitude -t sarge-backports install lvm2&#92;<br />
util-vserver coreutils linux-image-2.6-vserver-686
</p>
<p><span id="more-92"></span><br />
Create Volume and Group:</p>
<p class="alert">
<font size="-1">Replace &#8216;/dev/hda3&#8242; to your own needs!</font>
</p>
<p class="code">
# pvcreate /dev/hda3<br />
Physical volume &#8220;/dev/hda3&#8243; successfully created<br />
# vgcreate vg0 /dev/hda3<br />
Volume group &#8220;vg0&#8243; successfully created
</p>
<p>Create a Logical Volume</p>
<p class="code">
# lvcreate -L2048 -n vserver1 vg0<br />
Logical volume &#8220;vserver1&#8243; created
</p>
<p>Create and mount Filesystem, installing base system into vserver and stopping it:</p>
<p class="code">
# mkfs -t ext3 -j /dev/vg0/vserver1<br />
# mkdir /var/lib/vservers/vserver1<br />
# mount -t ext3 /dev/vg0/vserver1 /var/lib/vservers/vserver1<br />
# vserver vserver1 build -n vserver1 &#92;<br />
&#8211;hostname vserver1.vs.domain.net &#92;<br />
&#8211;interface eth0:10.0.0.1/32 -m debootstrap &#8212; -d sarge &#92;<br />
-m ftp://ftp.debian.org/debian<br />
# vserver vserver1 stop<br />
# umount /var/lib/vservers/vserver1
</p>
<p>Vroot operations and attaching vroot to LVM partition (and detaching again)</p>
<p class="alert">
<font size="-1">&#8216;/dev/vroot3&#8242; is used, cause we use &#8216;/dev/hda3&#8242; in our example. Please adjust it!</font>
</p>
<p class="code">
# e2fsck -p /dev/vg0/vserver1<br />
# mount /dev/vg0/vserver1 /var/lib/vservers/vserver1<br />
# rm -f /var/lib/vservers/vserver1/dev/hdv1<br />
# vrsetup /dev/vroot3 /dev/vg0/vserver1 # vroot3 cause /dev/hda3<br />
# cp -fa /dev/vroot3 /var/lib/vservers/vserver1/dev/hdv1<br />
# mount -o remount,ro /dev/vg0/vserver1<br />
# umount /dev/vg0/vserver1<br />
# vrsetup -d /dev/vroot3
</p>
<p>Enable Quota Capabilities:</p>
<p class="code">
# echo &#8220;quota_ctl&#8221; >> /etc/vservers/vserver1/ccapabilites
</p>
<p>Starting Vserver:</p>
<p class="code">
# e2fsck -p /dev/vg0/vserver1<br />
# mount /dev/vg0/vserver1 /var/lib/vservers/vserver1<br />
# rm -f /var/lib/vservers/vserver1/dev/hdv1<br />
# vrsetup /dev/vroot3 /dev/vg0/vserver1<br />
# cp -fa /dev/vroot3 /var/lib/vservers/vserver1/dev/hdv1<br />
# vserver vserver1 start
</p>
<p>Make it start and stopping automaticaly:</p>
<p class="code">
# vserver vserver1 stop<br />
# sed -i s/MARK=default/MARK=production/ /etc/default/util-vserver<br />
# echo &#8220;production&#8221; > /etc/vservers/vserver1/apps/init/mark<br />
# sed -i s/AUTO=false/AUTO=true/ /etc/default/util-vserver<br />
# wget -O /usr/local/sbin/vserver-mount-fs &#92;<br />
ftp://ftp.cyconet.org/pub/debian/scripts/vserver-mount-fs<br />
# wget -O /usr/local/sbin/mount-lvm-vservers &#92;<br />
ftp://ftp.cyconet.org/pub/debian/scripts/mount-lvm-vservers<br />
# chmod 700 /usr/local/sbin/mount-lvm-vservers<br />
# chmod 700 /usr/local/sbin/vserver-mount-fs<br />
# echo &#8220;/dev/vg0&#8243; &gt; /etc/vservers/vserver1/apps/init/lv_exists<br />
# update-rc.d mount-lvm-vservers defaults 20 21
</p>
<p>That should be all to make it work! :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2006/07/20/lvm-and-quota-with-vserver-on-debian/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->