<?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>{Complexity} &#187; System</title>
	<atom:link href="http://technote.wsjoung.com/category/system/feed/" rel="self" type="application/rss+xml" />
	<link>http://technote.wsjoung.com</link>
	<description>simple note</description>
	<lastBuildDate>Fri, 06 Aug 2010 19:03:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Ubuntu VM on Xen FIX: perl: warning: Setting locale failed.</title>
		<link>http://technote.wsjoung.com/2010/07/27/ubuntu-vm-on-xen-fix-perl-warning-setting-locale-failed/</link>
		<comments>http://technote.wsjoung.com/2010/07/27/ubuntu-vm-on-xen-fix-perl-warning-setting-locale-failed/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 04:28:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://technote.wsjoung.com/?p=153</guid>
		<description><![CDATA[perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to [...]]]></description>
			<content:encoded><![CDATA[<p><code>perl: warning: Setting locale failed.<br />
perl: warning: Please check that your locale settings:<br />
    LANGUAGE = (unset),<br />
    LC_ALL = (unset),<br />
    LANG = "en_US.UTF-8"<br />
    are supported and installed on your system.<br />
perl: warning: Falling back to the standard locale ("C").<br />
locale: Cannot set LC_CTYPE to default locale: No such file or directory<br />
locale: Cannot set LC_MESSAGES to default locale: No such file or directory<br />
locale: Cannot set LC_ALL to default locale: No such file or directory</p>
<p># locale-gen en_US en_US.UTF-8 hu_HU hu_HU.UTF-8</p>
<p># dpkg-reconfigure locales</code></p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2010/07/27/ubuntu-vm-on-xen-fix-perl-warning-setting-locale-failed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replace blank space in file name</title>
		<link>http://technote.wsjoung.com/2010/07/08/replace-blank-space-in-file-name/</link>
		<comments>http://technote.wsjoung.com/2010/07/08/replace-blank-space-in-file-name/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 18:08:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell Script]]></category>

		<guid isPermaLink="false">http://technote.wsjoung.com/?p=144</guid>
		<description><![CDATA[for f in *; do mv &#8220;$f&#8221; `echo $f &#124; tr &#8216; &#8216; &#8216;_&#8217;`; done]]></description>
			<content:encoded><![CDATA[<blockquote><p>
for f in *; do mv &#8220;$f&#8221; `echo $f | tr &#8216; &#8216; &#8216;_&#8217;`; done
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2010/07/08/replace-blank-space-in-file-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Server Configuration Job Log</title>
		<link>http://technote.wsjoung.com/2009/12/13/server-configuration-job-log/</link>
		<comments>http://technote.wsjoung.com/2009/12/13/server-configuration-job-log/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 22:12:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://technote.wsjoung.com/?p=120</guid>
		<description><![CDATA[Dell PowerEdge  SC1420 Dell CERC SATA 1.5/6ch RAID Controller Windows 2003 / MS SQL 2005 / Accpac ERP 1. Upgrade system BIOS, raid controller firmware on windows 2003 2. Attach a new hard disk and configure raid 0, virtual drive #1 3. Move all data on current D drive to new attached drive 4. Back [...]]]></description>
			<content:encoded><![CDATA[<p>Dell PowerEdge  SC1420</p>
<p>Dell CERC SATA 1.5/6ch RAID Controller</p>
<p>Windows 2003 / MS SQL 2005 / Accpac ERP</p>
<p><img class="aligncenter size-medium wp-image-123" title="IMG_0506" src="http://technote.wsjoung.com/wp-content/uploads/2009/12/IMG_0506-225x300.jpg" alt="IMG_0506" width="225" height="300" /></p>
<p>1. Upgrade system BIOS, raid controller firmware on windows 2003</p>
<p>2. Attach a new hard disk and configure raid 0, virtual drive #1</p>
<p>3. Move all data on current D drive to new attached drive</p>
<p>4. Back up C partition as a image: <a href="http://clonezilla.org/" target="_blank">Clonezilla</a></p>
<p>5. Reconfigure hard disk 1 &amp; 2 as raid 1, virtual drive #0</p>
<p>6. Restore backed up C drive image to new reconfigured virtual drive #0</p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2009/12/13/server-configuration-job-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Server Monitoring Tools</title>
		<link>http://technote.wsjoung.com/2009/11/04/linux-server-monitoring-tools/</link>
		<comments>http://technote.wsjoung.com/2009/11/04/linux-server-monitoring-tools/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 03:33:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Monitoring]]></category>

		<guid isPermaLink="false">http://technote.wsjoung.com/?p=115</guid>
		<description><![CDATA[- Network Monitoring tcptrack iptraf - CPU, Memory Monitoring top free - Disk I/O Monitoring iostat(sysstat)]]></description>
			<content:encoded><![CDATA[<p><strong>- Network Monitoring</strong><br />
tcptrack<br />
iptraf</p>
<p><strong>- CPU, Memory Monitoring</strong><br />
top<br />
free</p>
<p><strong>- Disk I/O Monitoring</strong><br />
iostat(sysstat)</p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2009/11/04/linux-server-monitoring-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mount LVM disk</title>
		<link>http://technote.wsjoung.com/2009/09/01/mount-lvm-disk/</link>
		<comments>http://technote.wsjoung.com/2009/09/01/mount-lvm-disk/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 19:03:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://technote.wsjoung.com/?p=107</guid>
		<description><![CDATA[#apt-get install lvm2 #pvscan PV /dev/sdb1 VG server-roma lvm2 [136.49 GB / 0 free] Total: 1 [136.49 GB] / in use: 1 [136.49 GB] / in no VG: 0 [0 ] #vgscan Reading all physical volumes. This may take a while&#8230; Found volume group &#8220;server-roma&#8221; using metadata type lvm2 #vgchange -a y 2 logical volume(s) [...]]]></description>
			<content:encoded><![CDATA[<p>#apt-get install lvm2</p>
<p>#pvscan<br />
PV /dev/sdb1   VG server-roma   lvm2 [136.49 GB / 0    free]<br />
Total: 1 [136.49 GB] / in use: 1 [136.49 GB] / in no VG: 0 [0   ]</p>
<p>#vgscan<br />
Reading all physical volumes.  This may take a while&#8230;<br />
Found volume group &#8220;server-roma&#8221; using metadata type lvm2</p>
<p>#<a href="http://linux.about.com/library/cmd/blcmdl8_vgchange.htm" target="_blank">vgchange -a y</a><br />
2 logical volume(s) in volume group &#8220;server-roma&#8221; now active</p>
<p>#lvscan<br />
ACTIVE            &#8216;/dev/server-roma/root&#8217; [130.91 GB] inherit<br />
ACTIVE            &#8216;/dev/server-roma/swap_1&#8242; [5.58 GB] inherit</p>
<p>#mount /dev/server-roma/root /mnt</p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2009/09/01/mount-lvm-disk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu server 9.04 grub menu.lst</title>
		<link>http://technote.wsjoung.com/2009/09/01/ubuntu-server-9-04-grub-menu-lst/</link>
		<comments>http://technote.wsjoung.com/2009/09/01/ubuntu-server-9-04-grub-menu-lst/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 18:43:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://technote.wsjoung.com/?p=104</guid>
		<description><![CDATA[title           Ubuntu 9.04, kernel 2.6.28-15-server uuid            18173536-b479-4e5f-80f6-a363503b55e1 kernel          /boot/vmlinuz-2.6.28-15-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro quiet splash initrd          /boot/initrd.img-2.6.28-15-server quiet title           Ubuntu 9.04, kernel 2.6.28-15-server (recovery mode) uuid            18173536-b479-4e5f-80f6-a363503b55e1 kernel   [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">title           Ubuntu 9.04, kernel 2.6.28-15-server</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">uuid            18173536-b479-4e5f-80f6-a363503b55e1</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">kernel          /boot/vmlinuz-2.6.28-15-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro quiet splash</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">initrd          /boot/initrd.img-2.6.28-15-server</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">quiet</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">title           Ubuntu 9.04, kernel 2.6.28-15-server (recovery mode)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">uuid            18173536-b479-4e5f-80f6-a363503b55e1</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">kernel          /boot/vmlinuz-2.6.28-15-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro  single</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">initrd          /boot/initrd.img-2.6.28-15-server</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">title           Ubuntu 9.04, kernel 2.6.28-11-server</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">uuid            18173536-b479-4e5f-80f6-a363503b55e1</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">kernel          /boot/vmlinuz-2.6.28-11-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro quiet splash</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">initrd          /boot/initrd.img-2.6.28-11-server</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">quiet</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">title           Ubuntu 9.04, kernel 2.6.28-11-server (recovery mode)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">uuid            18173536-b479-4e5f-80f6-a363503b55e1</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">kernel          /boot/vmlinuz-2.6.28-11-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro  single</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">initrd          /boot/initrd.img-2.6.28-11-server</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">title           Ubuntu 9.04, memtest86+</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">uuid            18173536-b479-4e5f-80f6-a363503b55e1</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">kernel          /boot/memtest86+.bin</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">quiet</div>
<p>/boot/grub/menu.lst</p>
<p>title           Ubuntu 9.04, kernel 2.6.28-15-server<br />
uuid            18173536-b479-4e5f-80f6-a363503b55e1<br />
kernel          /boot/vmlinuz-2.6.28-15-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro quiet splash<br />
initrd          /boot/initrd.img-2.6.28-15-server<br />
quiet</p>
<p>title           Ubuntu 9.04, kernel 2.6.28-15-server (recovery mode)<br />
uuid            18173536-b479-4e5f-80f6-a363503b55e1<br />
kernel          /boot/vmlinuz-2.6.28-15-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro  single<br />
initrd          /boot/initrd.img-2.6.28-15-server</p>
<p>title           Ubuntu 9.04, memtest86+<br />
uuid            18173536-b479-4e5f-80f6-a363503b55e1<br />
kernel          /boot/memtest86+.bin<br />
quiet</p>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2009/09/01/ubuntu-server-9-04-grub-menu-lst/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Incremental backup scripts</title>
		<link>http://technote.wsjoung.com/2008/05/09/incremental-backup-scripts/</link>
		<comments>http://technote.wsjoung.com/2008/05/09/incremental-backup-scripts/#comments</comments>
		<pubDate>Fri, 09 May 2008 21:20:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://wsjoung.wordpress.com/?p=92</guid>
		<description><![CDATA[#!/bin/bash # # creates backups of essential files # DATA="/home /root /usr/local/httpd" CONFIG="/etc /var/lib /var/named" LIST="/tmp/backlist_$$.txt" # mount /mnt/backup set $(date) # if test "$1" = "Sun" ; then # weekly a full backup of all data and config. settings: tar cfz "/mnt/backup/data/data_full_$6-$2-$3.tgz" $DATA rm -f /mnt/backup/data/data_diff* # tar cfz "/mnt/backup/config/config_full_$6-$2-$3.tgz" $CONFIG rm -f /mnt/backup/config/config_diff* [...]]]></description>
			<content:encoded><![CDATA[<pre>#!/bin/bash
#
# creates backups of essential files
#
DATA="/home /root /usr/local/httpd"
CONFIG="/etc /var/lib /var/named"
LIST="/tmp/backlist_$$.txt"
#
mount /mnt/backup
set $(date)
#
if test "$1" = "Sun" ; then
        # weekly a full backup of all data and config. settings:
        tar cfz "/mnt/backup/data/data_full_$6-$2-$3.tgz" $DATA
        rm -f /mnt/backup/data/data_diff*
        #
        tar cfz "/mnt/backup/config/config_full_$6-$2-$3.tgz" $CONFIG
        rm -f /mnt/backup/config/config_diff*
else
        # incremental backup:
        find $DATA -depth -type f \( -ctime -1 -o -mtime -1 \) -print &gt; $LIST
        tar cfzT "/mnt/backup/data/data_diff_$6-$2-$3.tgz" "$LIST"
        rm -f "$LIST"
        #
        find $CONFIG -depth -type f  \( -ctime -1 -o -mtime -1 \) -print &gt; $LIST
        tar cfzT "/mnt/backup/config/config_diff_$6-$2-$3.tgz" "$LIST"
        rm -f "$LIST"
fi
#
# create sql dump of databases:
mysqldump -u root --password=mypass --opt mydb &gt; "/mnt/backup/database/mydb_$6-$2-$3.sql"
gzip "/mnt/backup/database/mydb_$6-$2-$3.sql"
#
umount /mnt/backup
</pre>
<p><a href="http://www.xs4all.nl/~voorburg/backup.html">&gt;&gt; Backup script for Linux using tar and find</a></p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2008/05/09/incremental-backup-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to attach a new hard disk to ubuntu linux</title>
		<link>http://technote.wsjoung.com/2008/05/08/how-to-attach-a-new-hard-disk-to-ubuntu-linux/</link>
		<comments>http://technote.wsjoung.com/2008/05/08/how-to-attach-a-new-hard-disk-to-ubuntu-linux/#comments</comments>
		<pubDate>Thu, 08 May 2008 14:31:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://wsjoung.wordpress.com/?p=91</guid>
		<description><![CDATA[root@server-tribeca:/etc# fdisk -l Disk /dev/sda: 40.0 GB, 40020664320 bytes 255 heads, 63 sectors/track, 4865 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x9dc96e9e Device Boot Start End Blocks Id System /dev/sda1 * 1 4689 37664361 83 Linux /dev/sda2 4690 4865 1413720 5 Extended /dev/sda5 4690 4865 1413688+ 82 Linux swap [...]]]></description>
			<content:encoded><![CDATA[<p><strong>root@server-tribeca:/etc# fdisk -l</strong></p>
<p>Disk /dev/sda: 40.0 GB, 40020664320 bytes<br />
255 heads, 63 sectors/track, 4865 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Disk identifier: 0x9dc96e9e</p>
<p>Device Boot      Start         End      Blocks   Id  System<br />
/dev/sda1   *           1        4689    37664361   83  Linux<br />
/dev/sda2            4690        4865     1413720    5  Extended<br />
/dev/sda5            4690        4865     1413688+  82  Linux swap / Solaris</p>
<p>Disk /dev/sdb: 120.0 GB, 120034123776 bytes<br />
255 heads, 63 sectors/track, 14593 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Disk identifier: 0x00a080f4</p>
<p>Device Boot      Start         End      Blocks   Id  System<br />
/dev/sdb1   *           1          13      104391   83  Linux<br />
/dev/sdb2              14       14471   116133885   83  Linux<br />
/dev/sdb3           14472       14593      979965   82  Linux swap / Solaris</p>
<p><strong>root@server-tribeca:/etc# fdisk /dev/sdb</strong></p>
<p>The number of cylinders for this disk is set to 14593.<br />
There is nothing wrong with that, but this is larger than 1024,<br />
and could in certain setups cause problems with:<br />
1) software that runs at boot time (e.g., old versions of LILO)<br />
2) booting and partitioning software from other OSs<br />
(e.g., DOS FDISK, OS/2 FDISK)</p>
<p>Command (m for help): <strong>d</strong><br />
Partition number (1-4): <strong>1</strong></p>
<p>Command (m for help): <strong>d</strong><br />
Partition number (1-4): <strong>2</strong></p>
<p>Command (m for help): <strong>d</strong><br />
Selected partition 3</p>
<p>Command (m for help): <strong>d</strong><br />
No partition is defined yet!</p>
<p>Command (m for help): <strong>n</strong><br />
Command action<br />
e   extended<br />
p   primary partition (1-4)<br />
<strong> p</strong><br />
Partition number (1-4): <strong>1</strong><br />
First cylinder (1-14593, default 1): <strong>1</strong><br />
Last cylinder or +size or +sizeM or +sizeK (1-14593, default 14593):<br />
Using default value 14593</p>
<p>Command (m for help): <strong>w</strong><br />
The partition table has been altered!</p>
<p>Calling ioctl() to re-read partition table.<br />
Syncing disks.</p>
<p><strong>root@server-tribeca:/etc# mkfs.ext3 /dev/sdb1</strong><br />
mke2fs 1.40.8 (13-Mar-2008)<br />
Filesystem label=<br />
OS type: Linux<br />
Block size=4096 (log=2)<br />
Fragment size=4096 (log=2)<br />
7331840 inodes, 29304560 blocks<br />
1465228 blocks (5.00%) reserved for the super user<br />
First data block=0<br />
Maximum filesystem blocks=0<br />
895 block groups<br />
32768 blocks per group, 32768 fragments per group<br />
8192 inodes per group<br />
Superblock backups stored on blocks:<br />
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,<br />
4096000, 7962624, 11239424, 20480000, 23887872</p>
<p>Writing inode tables: done<br />
Creating journal (32768 blocks): done<br />
Writing superblocks and filesystem accounting information: done</p>
<p>This filesystem will be automatically checked every 22 mounts or<br />
180 days, whichever comes first.  Use tune2fs -c or -i to override.</p>
<p><strong>root@server-tribeca:/etc# ls /dev/disk/by-uuid -alh</strong><br />
lrwxrwxrwx 1 root root  10 2008-05-07 17:58 753a86d9-6228-4725-a9ae-6f457c2b1824 -&gt; ../../sdb1<br />
lrwxrwxrwx 1 root root  10 2008-05-07 17:58 dbd44197-c1c5-427d-9a34-40f652b92f42 -&gt; ../../sda1<br />
lrwxrwxrwx 1 root root  10 2008-05-07 17:58 e15f5c2c-fc1f-414d-8c67-99c567f44d6a -&gt; ../../sda5</p>
<p><strong>root@server-tribeca:/etc# mkdir /disk1</strong></p>
<p><strong>root@server-tribeca:/etc# vi /etc/fstab</strong><br />
# /etc/fstab: static file system information.<br />
#<br />
# &lt;file system&gt; &lt;mount point&gt;   &lt;type&gt;  &lt;options&gt;       &lt;dump&gt;  &lt;pass&gt;<br />
proc            /proc           proc    defaults        0       0<br />
# /dev/sda1<br />
UUID=dbd44197-c1c5-427d-9a34-40f652b92f42 /               ext3    relatime,errors=remount-ro 0       1<br />
# /dev/sda5<br />
UUID=e15f5c2c-fc1f-414d-8c67-99c567f44d6a none            swap    sw              0       0<br />
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0<br />
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0<br />
<strong> UUID=753a86d9-6228-4725-a9ae-6f457c2b1824 /disk1          ext3    defaults,errors=remount-ro 0       1</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2008/05/08/how-to-attach-a-new-hard-disk-to-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing Timezon and NTP On Ubuntu server</title>
		<link>http://technote.wsjoung.com/2008/05/05/changing-timezon-and-ntp-on-ubuntu-server/</link>
		<comments>http://technote.wsjoung.com/2008/05/05/changing-timezon-and-ntp-on-ubuntu-server/#comments</comments>
		<pubDate>Mon, 05 May 2008 22:06:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://wsjoung.wordpress.com/?p=90</guid>
		<description><![CDATA[Timezon Config dpkg-reconfigure tzdata Time Synchronisation with NTP as root, create a file /etc/cron.daily/ntpdate containing: ntpdate ntp.ubuntu.com The file /etc/cron.daily/ntpdate must also be executable sudo chmod 755 /etc/cron.daily/ntpdate]]></description>
			<content:encoded><![CDATA[<p><em><strong>Timezon Config</strong></em></p>
<p>dpkg-reconfigure tzdata</p>
<p><em><strong>Time Synchronisation with NTP</strong></em></p>
<p>as root, create a file /etc/cron.daily/ntpdate  containing:<br />
ntpdate ntp.ubuntu.com<br />
The file <code>/etc/cron.daily/ntpdate</code> must also be executable<br />
sudo chmod 755 /etc/cron.daily/ntpdate</p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2008/05/05/changing-timezon-and-ntp-on-ubuntu-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pure-ftpd-mysql, [ERROR] Home directory not available &#8211; aborting</title>
		<link>http://technote.wsjoung.com/2008/04/15/pure-ftpd-mysql-error-home-directory-not-available-aborting/</link>
		<comments>http://technote.wsjoung.com/2008/04/15/pure-ftpd-mysql-error-home-directory-not-available-aborting/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 15:49:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://wsjoung.wordpress.com/?p=80</guid>
		<description><![CDATA[groupadd -g 2001 ftpgroup useradd -u 2001 -s /bin/false -d /bin/null -c &#8220;pureftpd user&#8221; -g ftpgroup ftpuser Instead of this dummy ftpuser account setting when they want to create real linux account. they may get this error &#8220;Home directory not available &#8211; abort&#8221; even if they set CreateHomeDir to yes. Solution: the last existing in [...]]]></description>
			<content:encoded><![CDATA[<p>groupadd -g 2001 ftpgroup<br />
useradd -u 2001 -s /bin/false -d /bin/null -c &#8220;pureftpd user&#8221; -g ftpgroup ftpuser</p>
<p>Instead of this dummy ftpuser account setting when they want to create real linux account.<br />
they may get this error &#8220;Home directory not available &#8211; abort&#8221; even if they set CreateHomeDir to yes.</p>
<p>Solution:<br />
the last existing in the home path should be own by root.<br />
for example, we want to create somebody&#8217;s home directory when he log in, /home/ftpuser/somebody<br />
then the last existing directory &#8216;ftpuer&#8217; may look like this,<br />
drwxr-xr-x 2 <strong>root</strong> ftpgroup 4096 2008-04-15 11:20 ftpuser</p>
<p><a href="http://ecartis.ausics.net/hypermail/pure-old/0171.html">[pure-ftpd] CreateHomeDir problem (&#8220;[ERROR] Home directory not available &#8211; aborting&#8221;)</a><br />
<a href="http://howtoforge.com/virtual-hosting-with-pureftpd-and-mysql-ubuntu-7.10">Virtual Hosting With PureFTPd And MySQL (Incl. Quota And Bandwidth Management) On Ubuntu 7.10 (Gutsy Gibbon)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2008/04/15/pure-ftpd-mysql-error-home-directory-not-available-aborting/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
