<?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>songshu.org</title>
	<atom:link href="http://www.songshu.org/feed" rel="self" type="application/rss+xml" />
	<link>http://www.songshu.org</link>
	<description>Just another collection of nuts</description>
	<lastBuildDate>Thu, 16 Feb 2012 15:16:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Convert Red Hat to Debian Squeeze</title>
		<link>http://www.songshu.org/it/convert-red-hat-to-debian-squeeze</link>
		<comments>http://www.songshu.org/it/convert-red-hat-to-debian-squeeze#comments</comments>
		<pubDate>Wed, 09 Nov 2011 07:45:23 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[Debian Squeeze]]></category>
		<category><![CDATA[IT]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=80173</guid>
		<description><![CDATA[=====Convert Red Hat to Debian Squeeze Remotely on a Live system===== Last week i was confronted with a compromised custom Asterisk (Elastix) based PBX that suffered security issues, both in the configuration, such as easy passwords very lenient permissions, as well as the normal CentOS provided security updates since some software/drivers outside of the native repo&#8217;s was installed &#8220;yum update&#8221; was promissing the old RPM dependency hell. In short: this PBX needed some love desperately. I&#8217;m sure that someone more familiar with CentOS (red hat) could easily solve these issues and reinstate the existing install into a more stable and secure state, but since i limit myself mainly to Debian based and would like to get rid of the Elastix/FreePBX interface to Asterisk i decided that a fresh Debian install would be needed. Pretty simple you would say, only there was one minor issue, the machine was about 7,814 kilometers down the road and remote hands were hard to find. Auch!!!! After wasting about a week to find a solution to this I started looking for some more unconventional solution and bumped into some old HowTo&#8217;s how to do it remotely via SSH. It took me a number of runs [...]]]></description>
			<content:encoded><![CDATA[
<p>=====Convert Red Hat to Debian Squeeze Remotely on a Live system=====</p>
<p>Last week i was confronted with a compromised custom Asterisk (Elastix) based PBX that suffered security issues, both in the configuration, such as easy passwords very lenient permissions, as well as the normal CentOS provided security updates since some software/drivers outside of the native repo&#8217;s was installed &#8220;yum update&#8221; was promissing the old RPM dependency hell.</p>
<p>In short: this PBX needed some love desperately.</p>
<p>I&#8217;m sure that someone more familiar with CentOS (red hat) could easily solve these issues and reinstate the existing install into a more stable and secure state, but since i limit myself mainly to Debian based and would like to get rid of the Elastix/FreePBX interface to Asterisk i decided that a fresh Debian install would be needed.</p>
<p>Pretty simple you would say, only there was one minor issue, the machine was about 7,814 kilometers down the road and remote hands were hard to find. Auch!!!!</p>
<p>After wasting about a week to find a solution to this I started looking for some more unconventional solution and bumped into some old HowTo&#8217;s how to do it remotely via SSH. It took me a number of runs in a Virtual testing machine but i finally got the required routine down.</p>
<p>The Basic idea is to do the following:<br />
* Disable the SWAP partition.<br />
* Debootstrap Debian into the old SWAP partition.<br />
* Reboot into Debian on the old SWAP partition.<br />
* Copy over the Debian installation to the normal / partition over the existing CentOS install..<br />
* Reboot into Debian on / root.<br />
* Re-enable the SWAP partition.</p>
<p>====Investigate the current situation====</p>
<p>First have a look at the current partition layout issuing the command.<br />
<code>fdisk -l</code></p>
<p>This gave me the following result<br />
<code>[root@elastix ~]# fdisk -l</code></p>
<p>Disk /dev/sda: 160.0 GB, 160041885696 bytes<br />
255 heads, 63 sectors/track, 19457 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</p>
<p>Device Boot Start End Blocks Id System<br />
/dev/sda1 * 1 13 104391 83 Linux<br />
/dev/sda2 14 19457 156183930 8e Linux LVM</p>
<p>fdisk shows a /boot partition on /dev/sda1 and a LVM setup on /dev/sda2.</p>
<p>Lets have look at the LVM setup by issuing the command:<br />
<code>lvdisplay</code></p>
<p>This shows the following LVM partitions.<br />
<code>[root@elastix ~]# lvdisplay<br />
--- Logical volume ---<br />
LV Name /dev/VolGroup00/LogVol00<br />
VG Name VolGroup00<br />
LV UUID tt92rH-Aoo9-TQUY-PlpS-4fot-MmzT-qZpkSa<br />
LV Write Access read/write<br />
LV Status available<br />
# open 1<br />
LV Size 147.00 GB<br />
Current LE 4704<br />
Segments 1<br />
Allocation inherit<br />
Read ahead sectors auto<br />
- currently set to 256<br />
Block device 253:0</code></p>
<p>&#8212; Logical volume &#8212;<br />
LV Name /dev/VolGroup00/LogVol01<br />
VG Name VolGroup00<br />
LV UUID qTAuIF-oIFN-95xV-C0jd-xmrd-Nf0v-dxe7eI<br />
LV Write Access read/write<br />
LV Status available<br />
# open 1<br />
LV Size 1.94 GB<br />
Current LE 62<br />
Segments 1<br />
Allocation inherit<br />
Read ahead sectors auto<br />
- currently set to 256<br />
Block device 253:1</p>
<p>Above you see the 147.00 GB / root partition on /dev/VolGroup00/LogVol00<br />
and the 1.94 GB SWAP partition on /dev/VolGroup00/LogVol01.</p>
<p>The 1.94 GB SWAP partition is more then enough to hold the temporary debian minimum install so we will use that space.</p>
<p>First check your running services and the consumed RAM too see if we can safely do without the SWAP, disable unneeded services if needed.</p>
<p>====Remove the SWAP partition====<br />
Disable the SWAP by issuing the following command:<br />
<code>swapoff -a</code><br />
Too check the current status of the PV holding the LV&#8217;s:<br />
<code>lvm pvs</code><br />
Below you see that there is 148.94G on the Physical Volume and no free space.<br />
<code>[root@elastix ~]# lvm pvs<br />
PV VG Fmt Attr PSize PFree<br />
/dev/sda2 VolGroup00 lvm2 a- 148.94G 0</code></p>
<p>Lets remove the LVM partition that holds the SWAP space.<br />
<code>lvm lvremove /dev/VolGroup00/LogVol01</code><br />
Answer &#8220;y&#8221; as shown below to remove the active logical volume.<br />
<code>[root@elastix ~]# lvm lvremove /dev/VolGroup00/LogVol01<br />
Do you really want to remove active logical volume LogVol01? [y/n]: y<br />
Logical volume "LogVol01" successfully removed</code></p>
<p>After removing /dev/VolGroup00/LogVol01 investigate the Physical Volume again.<br />
<code>lvm pvs</code></p>
<p>Below you see that there is now 1.94G of free space within the Physical Volume.<br />
<code>[root@elastix ~]# lvm pvs<br />
PV VG Fmt Attr PSize PFree<br />
/dev/sda2 VolGroup00 lvm2 a- 148.94G 1.94G</code><br />
====Resize the Physical Volume====<br />
Now we can resize the Physical Volume to the size of the VolGroup00 partition and thus make the 1.94G available for use.<br />
<code>lvm pvresize /dev/sda2 --setphysicalvolumesize 148.94G</code><br />
This will give the confirmation that the Physical Volume is resized<br />
<code>[root@elastix ~]# lvm pvresize /dev/sda2 --setphysicalvolumesize 148.94G<br />
Physical volume "/dev/sda2" changed<br />
1 physical volume(s) resized / 0 physical volume(s) not resized</code></p>
<p>Lets have another look at the Physical Volume using the cylinder size of the partition.<br />
<code>lvm pvs --units s</code></p>
<p>This will show as below:<br />
<code>[root@elastix ~]# lvm pvs --units s<br />
PV VG Fmt Attr PSize PFree<br />
/dev/sda2 VolGroup00 lvm2 a- 312344576S 4063232S</code></p>
<p>Lets have a look with parted to see the cylinder layout on /dev/sda.<br />
<code>parted /dev/sda unit s print</code></p>
<p><code>[root@elastix ~]# parted /dev/sda unit s print</code></p>
<p>Model: ATA Hitachi HTE72321 (scsi)<br />
Disk /dev/sda: 312581807s<br />
Sector size (logical/physical): 512B/512B<br />
Partition Table: msdos</p>
<p>Number Start End Size Type File system Flags<br />
1 63s 208844s 208782s primary ext3 boot<br />
2 208845s 312576704s 312367860s primary lvm</p>
<p>Information: Don&#8217;t forget to update /etc/fstab, if necessary.</p>
<p>====Resize the /dev/sda2 partition====</p>
<p>Too resize the /dev/sda2 partition too fit exactly the Physical Volume we already made smaller and be able to use the free space, we first remove the entire LVM partition and recreate it later with a smaller size.</p>
<p>To remove the LVM partition issue the command:<br />
<code>parted /dev/sda rm 2</code></p>
<p><code>[root@elastix ~]# parted /dev/sda rm 2<br />
Information: Don't forget to update /etc/fstab, if necessary.</code></p>
<p>And the recreate it, Note that the Start cylinder needs to be the same as the one removed earlier and the End cylinder is the same as the old one MINUS the free cylinders that were show earlier by &#8220;lvm pvs &#8211;units s&#8221;<br />
<code>parted /dev/sda mkpart primary 208845s 308513472s</code><br />
Below shows no errors so it all seems to be fine.<br />
<code>/dev/sda2 VolGroup00 lvm2 a- 312344576S 4063232S<br />
[root@elastix ~]# parted /dev/sda mkpart primary 208845s 308513472s<br />
Information: Don't forget to update /etc/fstab, if necessary.</code></p>
<p>Set the LVM flag on the recreated LVM partition.<br />
<code>parted /dev/sda set 2 lvm on</code></p>
<p>To check the new state of the partition layout on /dev/sda with parted issue the command:<br />
<code>parted /dev/sda print</code><br />
This will show the following result:<br />
<code>[root@elastix ~]# parted /dev/sda print</code></p>
<p>Model: ATA Hitachi HTE72321 (scsi)<br />
Disk /dev/sda: 160GB<br />
Sector size (logical/physical): 512B/512B<br />
Partition Table: msdos</p>
<p>Number Start End Size Type File system Flags<br />
1 32.3kB 107MB 107MB primary ext3 boot<br />
2 107MB 158GB 158GB primary lvm</p>
<p>And to have a look with fdisk<br />
<code>fdisk -l /dev/sda</code><br />
<code>[root@elastix ~]# fdisk -l /dev/sda</code></p>
<p>Disk /dev/sda: 160.0 GB, 160041885696 bytes<br />
255 heads, 63 sectors/track, 19457 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</p>
<p>Device Boot Start End Blocks Id System<br />
/dev/sda1 * 1 13 104391 83 Linux<br />
/dev/sda2 14 19205 154152314 8e Linux LVM</p>
<p>We are not ready yet, to make the resizing of the Physical Volume final issue the command:<br />
<code>pvresize /dev/sda2</code><br />
====Create a new partition in the free space====</p>
<p>We will create a new partition to hold the temporary debian install.<br />
Start up fdisk on /dev/sda:<br />
<code>fdisk /dev/sda</code><br />
Its never a bad thing to Print the current layout by issuing &#8220;p&#8221;<br />
<code>Command (m for help): p</code><br />
Instigate a New partition with &#8220;n&#8221;<br />
<code>Command (m for help): n</code><br />
Select &#8220;p&#8221; to make it a Primary partition<br />
<code>Command action<br />
e extended<br />
p primary partition (1-4)</code><br />
We alreday have sda1 and sda2, so lets select &#8220;3&#8243;<br />
<code>Partition number (1-4): 3</code><br />
Press &#8220;enter&#8221; to have it start on the first available cylinder<br />
<code>First cylinder (19205-19457, default 19205):<br />
Using default value 19205</code><br />
And press &#8220;enter&#8221; to have it end on the last available cylinder<br />
<code>Last cylinder or +size or +sizeM or +sizeK (19205-19457, default 19457):<br />
Using default value 19457</code><br />
Now we want to select what Type our new partition should become with &#8220;t&#8221;<br />
<code>Command (m for help): t</code><br />
Select the partition number we want change the type for with &#8220;3&#8243;<br />
<code>Partition number (1-4): 3</code><br />
And use &#8220;83&#8243; to make it a linux type partition<br />
<code>Hex code (type L to list codes): 83</code><br />
To Write the new partition layout to disk use &#8220;w&#8221;<br />
<code>Command (m for help): w</code><br />
Since /dev/VolGroup00/LogVol01 is deleted from the disk and no longer available in the partition layout we remove it from fstab.<br />
<code>nano /etc/fstab</code><br />
And make fstab to look like below:<br />
<code>/dev/VolGroup00/LogVol00 / ext3 defaults 1 1<br />
LABEL=/boot /boot ext3 defaults 1 2<br />
tmpfs /dev/shm tmpfs defaults 0 0<br />
devpts /dev/pts devpts gid=5,mode=620 0 0<br />
sysfs /sys sysfs defaults 0 0<br />
proc /proc proc defaults 0 0</code><br />
To finalize the new partition layout the disk has to be remounted, and since we can not unmount the / partition the system is running on we need to reboot.<br />
<code>reboot</code><br />
And wait a while for it to reboot and log back in via SSH.<br />
Yes, i know. Some sweat started to break out waiting for SSH to welcome you back in.</p>
<p>====Create a debootstrap RPM on another debian machine===</p>
<p>On a seperate Debian machine we first install alien<br />
<code>apt-get install alien</code></p>
<p>Get a debootstrap .deb for squeeze<br />
<code>wget http://ftp.nl.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.26+squeeze1_all.deb</code><br />
Use alien to convert the .deb to a .rpm<br />
<code>alien -rkv debootstrap*.deb</code><br />
Copy over the .rpm to the system we are converting<br />
<code>scp debootstrap-1.0.26+squeeze1-1.noarch.rpm root@192.168.0.99:/usr/local/src/</code></p>
<p>====debootstrap Debian to the new partition===<br />
Now that the new partition is ready to be used, we first create a new file system on it.</p>
<p><code>mke2fs -j /dev/sda3</code></p>
<p>Then we need to mount it but first we create an easy alias for the new mount.<br />
<code>export ASD=/mnt/asd</code><br />
Create the location for the new mount<br />
<code>mkdir -p $ASD</code></p>
<p>And mount /dev/sda3<br />
<code>mount /dev/sda3 $ASD</code><br />
Lets install the debootstrap rpm we cerated earlier and move to the location we copied it to, in our case:<br />
<code>cd /usr/local/src/</code><br />
And install it<br />
<code>rpm -Uvh debootstrap*</code></p>
<p>Before we use debootstrap we need to install binutils, otherwise debootstrap can not unpack the .debs<br />
<code>yum install binutils</code><br />
And finally debootstrap debian into our mounted /dev/sda3, always check which mirror to use because this could take a while if you have a slow far away mirror.<br />
<code>/usr/sbin/debootstrap --arch i386 squeeze $ASD http://mirrors.geekbone.org/debian</code></p>
<p>After debootstrap is finished we re-use some old configs, first copy over the resolv.conf file<br />
<code>cp /etc/resolv.conf $ASD/etc/</code><br />
And then copy the hosts file<br />
<code>cp /etc/hosts $ASD/etc/</code></p>
<p>Create a hostname file<br />
<code>nano $ASD/etc/hostname</code><br />
And use for example the hostname<br />
<code>voip</code></p>
<p>Now we change our root to the new debian system<br />
<code>chroot $ASD /usr/bin/env -i HOME=/root TERM=$TERM PS1='u:w$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin /bin/bash --login</code></p>
<p>Here we create the fstab file for the partitions we want mounted.<br />
<code>nano /etc/fstab</code></p>
<p><code># filesystem mount fs-type options dump fsck-order</code></p>
<p>/dev/sda3 / auto defaults 0 1<br />
proc /proc proc defaults 0 0</p>
<p>After that we mount the proc file system<br />
<code>mount -t proc proc /proc</code></p>
<p><code>hostname voip.example.com</code></p>
<p>Create our network details to be used when the new system boots<br />
<code>nano /etc/network/interfaces</code></p>
<p><code># Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or<br />
# /usr/share/doc/ifupdown/examples for more information.</code></p>
<p>auto lo<br />
iface lo inet loopback</p>
<p>auto eth0<br />
iface eth0 inet static<br />
address 192.168.0.99<br />
netmask 255.255.255.0<br />
network 192.168.0.0<br />
broadcast 192.168.0.255<br />
gateway 192.168.0.1<br />
dns-nameservers 192.168.0.1</p>
<p><code>dpkg-reconfigure passwd</code></p>
<p>Set a password for root, without it we could not login remotely anymore<br />
<code>passwd</code></p>
<p>Install the locales package<br />
<code>apt-get install locales</code><br />
And reconfigure the locales to be used<br />
<code>dpkg-reconfigure locales</code><br />
Select en_US.UTF-8 UTF-8 to be installed and used as default.</p>
<p>After that we set up our time zone<br />
<code>dpkg-reconfigure tzdata</code></p>
<p>Set up the sources to be used with apt-get<br />
<code>nano /etc/apt/sources.list</code></p>
<p><code>deb http://mirrors.geekbone.org/debian/ squeeze main contrib non-free<br />
deb-src http://mirrors.geekbone.org/debian/ squeeze main contrib non-free</code></p>
<p>deb http://security.debian.org/ squeeze/updates main contrib non-free<br />
deb-src http://security.debian.org/ squeeze/updates main contrib non-free</p>
<p>update apt&#8217;s index with new repositories<br />
<code>apt-get update</code></p>
<p>And install ssh<br />
<code>apt-get install openssh-server</code></p>
<p>Check your system and find a matching kernel to be used<br />
<code>apt-cache search linux-image</code></p>
<p>In my case on this 32 bit machine, the often used 686 version<br />
<code>apt-get install linux-image-2.6-686</code><br />
After the new kernel is installed we logout of the chroot<br />
<code>logout</code></p>
<p>And we copy over the newly installed kernel images to the /boot partition<br />
<code>cp $ASD/boot/vmlinuz-* /boot<br />
cp $ASD/boot/initrd.img-* /boot</code><br />
Now we need to update grub to use our debian kernel and partition on the next time it boots<br />
<code>nano /boot/grub/menu.lst</code></p>
<p>Mind that the boot stanza second from the top seems to be the default booted<br />
<code># grub.conf generated by anaconda<br />
#<br />
# Note that you do not have to rerun grub after making changes to this file<br />
# NOTICE: You have a /boot partition. This means that<br />
# all kernel and initrd paths are relative to /boot/, eg.<br />
# root (hd0,0)<br />
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00<br />
# initrd /initrd-version.img<br />
#boot=/dev/sda<br />
default=1<br />
timeout=5<br />
splashimage=(hd0,0)/grub/splash.xpm.gz<br />
#hiddenmenu<br />
title Elastix (2.6.18-164.el5xen)<br />
root (hd0,0)<br />
kernel /xen.gz-2.6.18-164.el5<br />
module /vmlinuz-2.6.18-164.el5xen ro root=/dev/VolGroup00/LogVol00<br />
module /initrd-2.6.18-164.el5xen.img<br />
title Debian!<br />
root (hd0,2)<br />
kernel /boot/vmlinuz-2.6.32-5-686 root=/dev/sda3 ro<br />
initrd /boot/initrd.img-2.6.32-5-686<br />
title Elastix-base (2.6.18-164.el5)<br />
root (hd0,0)<br />
kernel /vmlinuz-2.6.18-164.el5 ro root=/dev/VolGroup00/LogVol00<br />
initrd /initrd-2.6.18-164.el5.img</code></p>
<p>After grub is updated, we unmount the mounted /dev/sda3<br />
<code>umount $ASD/proc<br />
umount $ASD</code><br />
Its time to hold your breath again and hope you did everything OK<br />
<code>reboot</code></p>
<p>====Prepare the final system for use====<br />
If all went fine we have just booted in our new Debian environment on /dev/sda3.</p>
<p>Create a new file system on /dev/sda1, i like to use ext4 for this.</p>
<p><code>mkfs.ext4 /dev/sda1</code></p>
<p>Create a temporary /boot location<br />
<code>mkdir /boot2</code></p>
<p>And mount /dev/sda1 on there<br />
<code>mount /dev/sda1 /boot2</code><br />
Copy over all from the old temporary boot location to the new temporary boot location<br />
<code>cp /boot/* /boot2/</code></p>
<p>Unmount /dev/sda1 again and remove the boot2 placeholder and the old temporary /boot<br />
<code>umount /boot2<br />
rmdir /boot2<br />
rm -rf /boot/*</code><br />
<code>nano /etc/fstab</code><br />
Set up the new /boot location to be used on the next boot<br />
<code># filesystem mount fs-type options dump fsck-order</code></p>
<p>/dev/sda1 /boot ext4 defaults 1 2<br />
/dev/sda3 / auto defaults 0 1<br />
proc /proc proc defaults 0 0</p>
<p>Mount the /boot partition<br />
<code>mount -a</code></p>
<p>Lets install grub2<br />
<code>apt-get install grub2</code></p>
<p>and make sure you choose to install it on the MBR of /dev/sda</p>
<p>Now lets prepare our new and final / root partition.<br />
First we create a new filesystem on /dev/sda2<br />
<code>mkfs.ext4 /dev/sda2</code></p>
<p>And the use dd to copy over the running temporary debian system to its final location<br />
<code>dd if=/dev/sda3 of=/dev/sda2 bs=1024</code><br />
Issue a filecheck on /dev/sda2 to be sure<br />
<code>e2fsck -f -y /dev/sda2</code><br />
And resize it<br />
<code>resize2fs -p /dev/sda2</code><br />
And then another file system check<br />
<code>e2fsck -f -y /dev/sda2</code></p>
<p>Besides using a new /boot location on the next boot we also want our / root to be on /dev/sda2<br />
<code>nano /etc/fstab</code></p>
<p><code># filesystem mount fs-type options dump fsck-order</code></p>
<p>/dev/sda1 /boot ext4 defaults 1 2<br />
/dev/sda2 / auto defaults 0 1<br />
proc /proc proc defaults 0 0</p>
<p>Its time to update grub2 to reflect the new situation<br />
<code>update-grub</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/it/convert-red-hat-to-debian-squeeze/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mobiel internet modem 904 KPN</title>
		<link>http://www.songshu.org/all-posts/mobiel-internet-modem-904-kpn</link>
		<comments>http://www.songshu.org/all-posts/mobiel-internet-modem-904-kpn#comments</comments>
		<pubDate>Sat, 13 Mar 2010 15:33:54 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[all posts]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1547</guid>
		<description><![CDATA[KPN levert de &#8220;Mobiel Internet Modem 904&#8243; , zoals ze zelf deze &#8220;Dongel&#8221;  noemen. Het feit dat ze een &#8220;dongle&#8221;  &#8220;dongel&#8221; noemen en het KPN type nummer  overeenkomt met een release van Ubuntu voorspelde al niet veel goeds om te traceren wat voor type apparaat dit eigenlijk is en hoe deze aan de praat te krijgen onder Linux, in dit geval Ubuntu Karmic 9.10. Wanneer je de deze USB dongle inplugt begint na een paar seconden een rood lampje te branden ten teken dat het apparaat herkend wordt. Het commando lsusb geeft de volgende output Bus 001 Device 004: ID 0af0:d057 Option Zo makkelijk gaat het echter niet aangezien Ubuntu de dongle nog niet herkend als USB modem maar als een CD. Dit kun je ook zien als je na het inpluggen het commando dmesg invoert, waarschijnlijk krijg je dan het volgende te zien [ 466.993290] scsi 7:0:0:0: CD-ROM ZCOption Icon CD 1.00 PQ: 0 ANSI: 4 [ 467.007957] sr0: scsi-1 drive [ 467.008438] sr 7:0:0:0: Attached scsi CD-ROM sr0 [ 467.008723] sr 7:0:0:0: Attached scsi generic sg1 type 5 [ 467.418375] ISO 9660 Extensions: Microsoft Joliet Level 1 [ 467.421443] ISOFS: changing to secondary root De reden dat er [...]]]></description>
			<content:encoded><![CDATA[<p><span>KPN levert de &#8220;Mobiel Internet Modem 904&#8243; , zoals ze zelf deze &#8220;Dongel&#8221;  noemen.</span></p>
<p><span>Het feit dat ze een &#8220;dongle&#8221;  &#8220;dongel&#8221; noemen en het KPN type nummer  overeenkomt met een release van Ubuntu voorspelde al niet veel goeds om te traceren wat voor type apparaat dit eigenlijk is en hoe deze aan de praat te krijgen onder Linux, in dit geval Ubuntu Karmic 9.10.</span></p>
<p><span>Wanneer je de deze USB dongle inplugt begint na een paar seconden een rood lampje te branden ten teken dat het apparaat herkend wordt.<br />
Het commando<br />
<code>lsusb</code><br />
geeft de volgende output<br />
<code>Bus 001 Device 004: ID 0af0:d057 Option</code><br />
Zo makkelijk gaat het echter niet aangezien Ubuntu de dongle nog niet herkend als USB modem maar als een CD.</span></p>
<p><span>Dit kun je ook zien als je na het inpluggen het commando</span></p>
<p><span><code>dmesg</code><br />
invoert, waarschijnlijk krijg je dan het volgende te zien</span></p>
<p><span><code>[  466.993290] scsi 7:0:0:0: CD-ROM            ZCOption Icon CD          1.00 PQ: 0 ANSI: 4<br />
[  467.007957] sr0: scsi-1 drive<br />
[  467.008438] sr 7:0:0:0: Attached scsi CD-ROM sr0<br />
[  467.008723] sr 7:0:0:0: Attached scsi generic sg1 type 5<br />
[  467.418375] ISO 9660 Extensions: Microsoft Joliet Level 1<br />
[  467.421443] ISOFS: changing to secondary root</code></span></p>
<p><span>De reden dat er een CD filesysteem op deze USB staat is niet zonder reden, onder windows wordt deze namelijk automatisch herkend en een autorun bstandje vanaf de &#8220;CD&#8221; opgestart waardoor alle drivers e.d. vanzelf geinstalleerd worden, een prachtige uitvinding natuurlijk waar we onder Ubuntu niks aan hebben.</span></p>
<p><span>Voor zover ik heb kunnen achterhalen gaat het hier om een GlobeTrotter GI1505 van de producent Option, al ben ik niet 100% zeker van het type.<br />
En de vraag is hoe deze aan de praat te krijgen en als USB modem herkend te laten worden.<br />
Om dit te doen heb ik het volgende bestandje geinstalleerd.</span></p>
<p><span><a href="http://www.songshu.org/wp-content/uploads/2010/03/udev.tar.gz">udev.tar</a></span></p>
<p><span>download deze naar bijvoorbeeld de Desktop en zoek de locatie waar het bestandje staat op in een terminal</span></p>
<p><span><code>cd Desktop</code><br />
en pak het bestandje vervolgens uit<br />
<code>tar zxf udev.tar.gz</code><br />
ga via de command line naar het mapje<br />
<code>cd udev</code><br />
Om dit te kunnen installeren moeten we eerst nog het nodige installeren.<br />
Eerst de build tools<br />
<code>sudo apt-get install build-essential</code><br />
De kernel headers.<br />
check eerst je preciese kernel versie met het commando<br />
<code>uname -r</code><br />
En pas desnoods onderstaande aan aan jouw preciese kernel versie<br />
<code>sudo apt-get install linux-headers-2.6.31-19-generic</code><br />
Vervolgens alleen nog het pakketje libusb-dev<br />
<code>sudo apt-get install libusb-dev</code></span></p>
<p><span>En dan zijn we klaar 0zerocdoff te compileren met het volgende commando<br />
<code>sudo make</code><br />
En vervolgens.<br />
<code>sudo make install</code></span></p>
<p><span>Dat laatste commando zou ongeveer het volgende resultaat moeten laten zien.<br />
<code>install -d /usr/sbin<br />
install -d /etc/udev/rules.d<br />
install ozerocdoff /usr/sbin<br />
cp hso.udev /etc/udev/rules.d/51-hso-udev.rules<br />
install -d /usr/share/hal/fdi/preprobe/20thirdparty<br />
cp 10-wwan-hso-preprobe.fdi /usr/share/hal/fdi/preprobe/20thirdparty<br />
install -d /usr/share/hal/fdi/information/20thirdparty<br />
cp 10-wwan-quirk.fdi /usr/share/hal/fdi/information/20thirdparty<br />
install -d /usr/lib/hal/scripts/<br />
install hal-serial-hsotype /usr/lib/hal/scripts/<br />
install -d /etc<br />
install osetsuspend /usr/sbin<br />
cp hso-suspend.conf /etc</code></span></p>
<p><span>De specefieke dongle in deze post is te nieuw om al herkend te worden door datgene wat we net geinstalleerd hebben dus we moeten nog het een en ander aanpassen</span></p>
<p><span><code>sudo gedit /etc/udev/rules.d/51-hso-udev.rules</code><br />
Onder het kopje &#8220;New Syntax&#8221;</span></p>
<p><span>zie een stuk of wat regels staan die lijken op deze<br />
<code>ATTRS{idVendor}=="0af0", ATTRS{idProduct}=="7601", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"</code></span></p>
<p><span>Copier een van deze regels en plak deze onder de anderen voor de laatste regel &#8220;GOTO=&#8221;hso_end&#8221;"  en pas vervolgens het &#8220;idproduct&#8221; aan.</span></p>
<p><span><code>ATTRS{idVendor}=="0af0", ATTRS{idProduct}=="d057", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"</code><br />
in ons geval dus &#8220;7601&#8243; vervangen door &#8220;d057&#8243;, de d057 kennen we van de eerdere output van lsusb, namelijk 0af0:d057 dus eventueel aanpassen als je een iets ander type hebt.</span></p>
<p><span>Vervolgens in het zelfde bestandje onder de kop &#8220;Old Syntax&#8221; doen we hetzelfde en voegen we een nieuwe regel toe, copieer bijv. de lijn<br />
<code>SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="7601", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"</code><br />
En vervang hier weer de &#8220;7601&#8243; voor &#8220;d057&#8243; zodat het er zo uit kom te zien<br />
<code>SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="d057", SYSFS{bDeviceClass}=="00", RUN+="/usr/sbin/ozerocdoff -wi 0x%s{idProduct}"</code></span></p>
<p><span>Sluit vervolgens het bestandje af en sla deze op. En herstart de machine.<br />
Als we na het herstarten de dongle weer in de USB poort stoppen dan geeft het commando<br />
<code>dmesg</code><br />
Het volgende resultaat te zien.<br />
<code>[   80.184102] usb 1-5: new high speed USB device using ehci_hcd and address 5<br />
[   80.318212] usb 1-5: configuration #1 chosen from 1 choice<br />
[   80.324180] scsi7 : SCSI emulation for USB Mass Storage devices<br />
[   80.325795] usb-storage: device found at 5<br />
[   80.325803] usb-storage: waiting for device to settle before scanning<br />
[   81.489855] usb 1-5: USB disconnect, address 5<br />
[   81.932162] usb 1-5: new high speed USB device using ehci_hcd and address 6<br />
[   82.066312] usb 1-5: configuration #1 chosen from 1 choice<br />
[   82.070176] hso0: Disabled Privacy Extensions<br />
[   82.072488] hso 1-5:1.5: Not our interface</code></span></p>
<p><span>Hier zijn we blj mee aangezien Ubuntu nu de KPN dongel herkent als een USB modem en met  een linker muisklik op de &#8220;network-manager&#8221; zien we de optie om een &#8220;New Mobile Broadband GSM connection te configureren.</span></p>
<p><span>Klik deze aan en doorloop de stappen in de configuratie wizard, selecteer &#8220;the netherlands&#8221; en &#8220;KPN mobile&#8221; en hou voor de rest de default opties.</span></p>
<p><span>Bij de eerste keer verbinding maken zal er gevraagd worden om een pin en wachtwoord, voor beiden is het 0000 , dus 4xnul.</span></p>
<p><span>Het enige probleem is nog dat de versie van &#8220;modemmanager 0.2&#8243; in Karmic geen verbinding kan maken, installeer hier voor het pakket modemmanager 0.3 van Lucid 10.04</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/all-posts/mobiel-internet-modem-904-kpn/feed</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>New Lucid Lynx theme (and why it sucks)</title>
		<link>http://www.songshu.org/lucid-lynx/new-lucid-lynx-theme-and-why-it-sucks</link>
		<comments>http://www.songshu.org/lucid-lynx/new-lucid-lynx-theme-and-why-it-sucks#comments</comments>
		<pubDate>Wed, 10 Mar 2010 16:51:07 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[Lucid Lynx]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[ambiance]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1558</guid>
		<description><![CDATA[WOW!!!! After years of promises there finally has been a mayor overhaul of the Ubuntu theme after the &#8220;Brown Human Theme&#8221; that we have been accustomed to for so long, I know the usual complaints about the old Faeces Theme but i actually kind of liked it, or at least its what I&#8217;m used too and thought that Karmic was almost pretty damn chocolate perfect. So, before continuing my tasteless rant here i would like to thank the people who worked on this new theme because its not something i can do or even can do better, so please understand where this is coming from before taking it personal and i&#8217;m glad the theming of the metacity theme, desktop background, GDM and splash are finally heading consistency. Also that i have remarks does not mean its all bad, its just easier to be negative so take it as positive criticism ;) The timing My first head-shacking experience is about the timing of the introduction of the theme itself, actually I had this about various new introductions in LTS releases. I understand that a new release, and especially a LTS, has to be pushed with as much media attention as possible [...]]]></description>
			<content:encoded><![CDATA[<h3>WOW!!!!</h3>
<p>After years of promises there finally has been a mayor overhaul of the Ubuntu theme after the &#8220;Brown Human Theme&#8221; that we have been accustomed to for so long, I know the usual complaints about the old Faeces Theme but i actually kind of liked it, or at least its what I&#8217;m used too and thought that Karmic was almost pretty damn chocolate perfect.</p>
<p>So, before continuing my tasteless rant here i would like to thank the people who worked on this new theme because its not something i can do or even can do better, so please understand where this is coming from before taking it personal and i&#8217;m glad the theming of the metacity theme, desktop background, GDM and splash are finally heading consistency.<br />
Also that i have remarks does not mean its all bad, its just easier to be negative so take it as positive criticism ;)</p>
<h3>The timing</h3>
<p>My first head-shacking experience is about the timing of the introduction of the theme itself, actually I had this about various new introductions in LTS releases.</p>
<p>I understand that a new release, and especially a LTS, has to be pushed with as much media attention as possible and a new exciting shiny new theme is definitely something to advertise on the billboards, but this sounds like a commercial decision to me and not something I&#8217;m happy with as a user in the long term.</p>
<p>Software gets better with age and so do themes, why would you want to put a new untested theme in something that you are going to be stuck with a long time, especially with the &#8220;only bugfixes&#8221; approach.</p>
<p>If you start a new theme with the LTS then the next LTS -1 will have the perfect matured version of that theme, that does not make sense to me.</p>
<h3>The colour</h3>
<p>OK, this is as subjective as its going to get but I actually liked the brown, as did many others. At least it was distinctive to Ubuntu. But yes, any colour will have its fair share of lovers and haters, but purple?</p>
<p>A choice is a choice and it has to be made, fair enough, but it took me some time to find out that this theme was described as &#8220;purple&#8221; since my first google after seeing the new colour was &#8220;lucid new pink theme&#8221; Am I the only one who&#8217;s first idea was that it was pink?</p>
<p>Apparently plenty of people seemed to like purple because it was the same purple as MacOSX. WTH??? Ubuntu should not to try to mimic the branding of Mac or MS but should stand out as being Ubuntu, did Linspire become a success because it looked just like windows?</p>
<p>But there are so many people coming from windows so you should try to make them feel at home is the usual response. Yeah Right, I did not move to Linux 6 years ago because I was so incredibly happy with windows and I can hardly imagine a happy Mac user to switch to Ubuntu because it looks so much like what he is used too, a cheap rip off it looks like.</p>
<h3>The window buttons</h3>
<p>Another much heard of complaint is the placement of the window buttons to the left. (Again, just like MacOSX)</p>
<p>Why? well.. its different, Yes&#8230;.its how some other software company (That I will not mention again) does it, Yes&#8230;.is it a useful change, No&#8230;is it confusing, Yes&#8230;.does it look misplaced, Yes.</p>
<p>Every blog stopped complaining about it and started bugfixing, so I will repeat the steps here to be complete.</p>
<h4>window buttons to the right</h4>
<p>press &#8212; Alt F2 &#8212; type &#8220;gconf-editor&#8221; &#8212;- go to &#8220;apps&#8221; &#8212; go to &#8220;metacity&#8221; &#8212; go to &#8220;general&#8221; &#8212; right click &#8220;button_layout&#8221; &#8212; edit key &#8212; and change the value to &#8220;:minimize,maximize,close&#8221;</p>
<p>nuff said!</p>
<h4>window title in the centre</h4>
<p>This still leaves the window title on the far left instead of centred and it still looks ridiculous.</p>
<p>Open a terminal and issue the following command</p>
<p>sudo gedit /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml</p>
<p>and find that part that looks like this<br />
<code><!-- Window Title --></code><br />
x=&#8221;10&#8243;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)+1&#8243;/&gt;<br />
x=&#8221;10&#8243;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)-1&#8243;/&gt;<br />
x=&#8221;9&#8243;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;<br />
x=&#8221;11&#8243;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;<br />
x=&#8221;10&#8243;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;</p>
<p>&nbsp;<br />
x=&#8221;10&#8243;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)+1&#8243;/&gt;<br />
x=&#8221;10&#8243;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)-1&#8243;/&gt;<br />
x=&#8221;9&#8243;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;<br />
x=&#8221;11&#8243;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;<br />
x=&#8221;10&#8243;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;</p>
<p>&nbsp;</p>
<p><strong>and change it to look like this.</strong></p>
<p><code><!-- Window Title --></code><br />
x=&#8221;((3 `max` (width-title_width)) / 2)&#8221;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)+1&#8243;/&gt;<br />
x=&#8221;((3 `max` (width-title_width)) / 2)&#8221;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)-1&#8243;/&gt;<br />
x=&#8221;((3 `max` (width-title_width)) / 2)&#8221;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;<br />
x=&#8221;((3 `max` (width-title_width)) / 2)&#8221;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;<br />
x=&#8221;((3 `max` (width-title_width)) / 2)&#8221;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;</p>
<p>&nbsp;<br />
x=&#8221;((3 `max` (width-title_width)) / 2)&#8221;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)+1&#8243;/&gt;<br />
x=&#8221;((3 `max` (width-title_width)) / 2)&#8221;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)-1&#8243;/&gt;<br />
x=&#8221;((3 `max` (width-title_width)) / 2)&#8221;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;<br />
x=&#8221;((3 `max` (width-title_width)) / 2)&#8221;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;<br />
x=&#8221;((3 `max` (width-title_width)) / 2)&#8221;<br />
y=&#8221;(((height &#8211; title_height) / 2) `max` 0)&#8221;/&gt;</p>
<p>&nbsp;</p>
<h3>It doesn&#8217;t work with every application</h3>
<p>Its kind of hard to make a theme that will shine and gives the best result for every application thinkable, this again has something to do something with maturity and how fast and if the designers can fix this for the new release.</p>
<p>Firefox for example gives a very unreadable result when the history results come up when typing in the address bar.</p>
<p>Skype gives an unreadable result when right clicking on a contact to see the available options.</p>
<p>I&#8217;m sure there will be other non-gnome programs&#8230;can the devs fix this before the release or will we be stuck with an unlucky theming choice for many otherwise useful programs the next 3 years?</p>
<h3>Size matters</h3>
<p>The last part of my rant is that the window buttons are really tiny, don&#8217;t get me wrong I&#8217;m not blind and they don&#8217;t have to be huge, but they are half the size of any other button available. Besides being a visual distortion it also leaves room for error since you do have to aim pretty actually to hit the option you want, this is doable during most circumstances but I noticed when wanting to close some windows when coming /home late at night after a few beers that it was damn right impossible to hit the right one.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/lucid-lynx/new-lucid-lynx-theme-and-why-it-sucks/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Karmic Koala bugs</title>
		<link>http://www.songshu.org/all-posts/karmic-koala-bugs</link>
		<comments>http://www.songshu.org/all-posts/karmic-koala-bugs#comments</comments>
		<pubDate>Sun, 04 Oct 2009 17:48:00 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[all posts]]></category>
		<category><![CDATA[Karmic Koala]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1524</guid>
		<description><![CDATA[strange colors in firefox when displaying images the below post fixed it, just set the default 2 to 0 http://support.mozilla.com/tiki-view_forum_thread.php?comments_parentId=403836&#038;forumId=1 EDIT:::::: OK, have been working on the BETA now for almost a full workday, and there is much to like. Gnome is still Gnome since i used it about 5 years, some apps come and some apps go as usual with any release but i must say the whole system runs smoother then i expected and was used to, even with Compiz for the nice effects, something under the hood must be going in the right direction&#8230;&#8230;.but&#8230;Gnome is also still Gnome when it comes to evolution-mail, it stinks!!! Maybe its me but it keeps crashing, i think it crashed 6 times on me today and just as many times i simply had to shut it down because it was starting to completely occupy my SWAP, not healthy behaviour. Ok, i do have 3 accounts setup and about 10GB of mail store on an IMAP server, but that should not give it to much problems, i use my mail a lot during the day, i keep switching between my mail app and applications that have just opened my attachment or about [...]]]></description>
			<content:encoded><![CDATA[<p>strange colors in firefox when displaying images</p>
<p>the below post fixed it, just set the default 2 to 0</p>
<p>http://support.mozilla.com/tiki-view_forum_thread.php?comments_parentId=403836&#038;forumId=1</p>
<p>EDIT::::::</p>
<p>OK, have been working on the BETA now for almost a full workday, and there is much to like.</p>
<p>Gnome is still Gnome since i used it about 5 years, some apps come and some apps go as usual with any release but i must say the whole system runs smoother then i expected and was used to, even with Compiz for the nice effects, something under the hood must be going in the right direction&#8230;&#8230;.but&#8230;Gnome is also still Gnome when it comes to evolution-mail, it stinks!!!</p>
<p>Maybe its me but it keeps crashing, i think it crashed 6 times on me today and just as many times i simply had to shut it down because it was starting to completely occupy my SWAP, not healthy behaviour.</p>
<p>Ok, i do have 3 accounts setup and about 10GB of mail store on an IMAP server, but that should not give it to much problems, i use my mail a lot during the day, i keep switching between my mail app and applications that have just opened my attachment or about to create my attachment so a buggy mail app is simply not workable for me.</p>
<p>Evolution simply ruins my complete Gnome experience which i do like for the rest so at about 4 in the afternoon i had it, once more, with evolution and will not use it again till the next 5 years.</p>
<p>Have just installed the trustworthy and admirable Thunderbird once again, i feel relief&#8230;</p>
<p>Nevertheless i do have the problem that my network shares do not show up in Nautilus (or is it file-picker?) when handling attachments in Thunderird, the package thunderbird-gnome-support should fix that i thought?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/all-posts/karmic-koala-bugs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Karmic Koala, first impression</title>
		<link>http://www.songshu.org/all-posts/karmic-koala-first-impression</link>
		<comments>http://www.songshu.org/all-posts/karmic-koala-first-impression#comments</comments>
		<pubDate>Sun, 04 Oct 2009 16:54:59 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[all posts]]></category>
		<category><![CDATA[Karmic Koala]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1515</guid>
		<description><![CDATA[MMM OK, the boot up is fast with the new upstart and the new log in screen looks promising even though its still a little rough around the etches. I have not used Gnome in a while or Karmic with another desktop so i don&#8217;t know who to blame yet,but i must say my desktop feels more responsive opening individual programs then ever before, is it Karmic, is it Gnome or is it the really smooth default Compiz that even works on my modest onboard graphics card? First thing to do is to get the restricted multi media going. Installing the &#8220;ubuntu-restricted-package&#8221; will get us a long way. This package depends on some commonly used packages in the Ubuntu multiverse repository. Installing this package will pull in support for MP3 playback and decoding, support for various other audio formats (GStreamer plugins), Microsoft fonts, Java runtime environment, Flash plugin, LAME (to create compressed audio files), and DVD playback. Please note that this does not install libdvdcss2, and will not let you play encrypted DVDs. For more information, see https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs Please also note that packages from multiverse are restricted by copyright or legal issues in some countries. See http://www.ubuntu.com/ubuntu/licensing for more information. [...]]]></description>
			<content:encoded><![CDATA[<p>MMM OK, the boot up is fast with the new upstart and the new log in screen looks promising even though its still a little rough around the etches.</p>
<p>I have not used Gnome in a while or Karmic with another desktop so i don&#8217;t know who to blame yet,but i must say my desktop feels more responsive opening individual programs then ever before, is it Karmic, is it Gnome or is it the really smooth default Compiz that even works on my modest onboard graphics card?</p>
<p>First thing to do is to get the restricted multi media going.</p>
<p>Installing the &#8220;ubuntu-restricted-package&#8221; will get us a long way.</p>
<blockquote><p>This package depends on some commonly used packages in the Ubuntu<br />
multiverse repository.</p>
<p>Installing this package will pull in support for MP3 playback and decoding,<br />
support for various other audio formats (GStreamer plugins), Microsoft fonts,<br />
Java runtime environment, Flash plugin, LAME (to create compressed audio<br />
files), and DVD playback.</p>
<p>Please note that this does not install libdvdcss2, and will not let you play<br />
encrypted DVDs. For more information, see</p>
<p>https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs</p>
<p>Please also note that packages from multiverse are restricted by copyright<br />
or legal issues in some countries. See</p>
<p>http://www.ubuntu.com/ubuntu/licensing</p>
<p>for more information.</p></blockquote>
<p>After restarting Firefox FLASH worked instantly, no problems checking out youtube.</p>
<p>MickeySoft fonts, no problem</p>
<p>MP3 and LAME i did not check, i hardly ever use that.</p>
<p>But, the java JRE did not work out of the box, i did hear something about dropped support or replacement, nevertheless you can still find it in the repos by installing &#8220;sun-java6-plugin&#8221; after the old and trusted buggy and slow java worked. I wonder how far the free java replacement is and if its somewhat usable by now.</p>
<p>Almost there with the codecs, just the medibuntu stuff left to go</p>
<blockquote><p>sudo wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`.list &#8211;output-document=/etc/apt/sources.list.d/medibuntu.list &amp;&amp; sudo apt-get -q update &amp;&amp; sudo apt-get &#8211;yes -q &#8211;allow-unauthenticated install medibuntu-keyring &amp;&amp; sudo apt-get -q update</p></blockquote>
<p>And install w32codecs and libdvdcss2</p>
<p>The upstart graphics don&#8217;t seem to be completely ready yet if you want a smooth transition from grub to desktop but its a good start, still some console text flying around here and there.</p>
<p>Also i receive the message that the &#8220;computer will shut down in 60 seconds&#8221; when shutting down from the menu, this is either a bug or something that has to to with the delayed allocation of the ext4 file system bugs? i&#8217;m not sure.</p>
<p>Still plenty to to about fine tuning the personal preference and the bug fixing but the conclusion so far&#8230;not the best ubuntu beta i&#8217;ve ever seen, but it could become one of the better stable ones</p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/all-posts/karmic-koala-first-impression/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Karmic Koala installation</title>
		<link>http://www.songshu.org/all-posts/karmic-koala-installation</link>
		<comments>http://www.songshu.org/all-posts/karmic-koala-installation#comments</comments>
		<pubDate>Sun, 04 Oct 2009 13:49:24 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[all posts]]></category>
		<category><![CDATA[Karmic Koala]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1498</guid>
		<description><![CDATA[As mentioned in the the post the road to Lucid Lynx i will be trying out Karmic Koala Gnome version as a test to see if i can transition from a customised Xubuntu version that i have been using over the years. The Beta version of Karmic Koala shows the same cd boot screen that we have been used for a while, so lets start with the option ¨Try Ubuntu without any change to your computer&#8221; A new loading screen for the desktop CD appears and it looks quit minimal, not too bad, although some text based messages about crypto flash quickly before before going to the silvery black loading bar. The Gnome desktop looks about the same on the live cd apart from a new desktop image and a slightly new color brown. Lets not waste too much time and start with the installation right away with the &#8220;Install Ubuntu 9.10&#8243; icon on the desktop. The welcome screen appears and we will use &#8220;English&#8221; for the installation process. Next are the &#8220;time settings&#8221; and have already seen the new lay-out since Jaunty, looks good to me. For the &#8220;Keyboard Layout&#8221; i will use the suggested  USA. I usually keep [...]]]></description>
			<content:encoded><![CDATA[<p>As mentioned in the the post <a href="http://www.songshu.org/index.php/the-road-to-lucid-lynx" target="_blank">the road to Lucid Lynx</a> i will be trying out Karmic Koala Gnome version as a test to see if i can transition from a customised Xubuntu version that i have been using over the years.</p>
<p>The Beta version of Karmic Koala shows the same cd boot screen that we have been used for a while, so lets start with the option ¨Try Ubuntu without any change to your computer&#8221;</p>
<p><img class="alignnone size-full wp-image-1502" title="0-try ubuntu" src="http://www.songshu.org/wp-content/uploads/2009/10/0-try-ubuntu.png" alt="0-try ubuntu" width="640" height="480" /></p>
<p>A new loading screen for the desktop CD appears and it looks quit minimal, not too bad,</p>
<p><img class="alignnone size-full wp-image-1503" title="9-cd boot" src="http://www.songshu.org/wp-content/uploads/2009/10/9-cd-boot.png" alt="9-cd boot" width="640" height="480" /></p>
<p>although some text based messages about crypto flash quickly before before going to the silvery black loading bar.</p>
<p><img class="alignnone size-full wp-image-1504" title="10-splash" src="http://www.songshu.org/wp-content/uploads/2009/10/10-splash.png" alt="10-splash" width="800" height="600" /></p>
<p>The Gnome desktop looks about the same on the live cd apart from a new desktop image and a slightly new color brown.</p>
<p><img class="alignnone size-medium wp-image-1505" title="1-live cd desktop-" src="http://www.songshu.org/wp-content/uploads/2009/10/1-live-cd-desktop--300x225.png" alt="1-live cd desktop-" width="300" height="225" /></p>
<p>Lets not waste too much time and start with the installation right away with the &#8220;Install Ubuntu 9.10&#8243; icon on the desktop.</p>
<p>The welcome screen appears and we will use &#8220;English&#8221; for the installation process.</p>
<p><img class="alignnone size-medium wp-image-1506" title="2-choose language" src="http://www.songshu.org/wp-content/uploads/2009/10/2-choose-language-300x225.png" alt="2-choose language" width="300" height="225" /></p>
<p>Next are the &#8220;time settings&#8221; and have already seen the new lay-out since Jaunty, looks good to me.</p>
<p><img class="alignnone size-medium wp-image-1507" title="3-choose time" src="http://www.songshu.org/wp-content/uploads/2009/10/3-choose-time-300x225.png" alt="3-choose time" width="300" height="225" /></p>
<p>For the &#8220;Keyboard Layout&#8221; i will use the suggested  USA.</p>
<p><img class="alignnone size-medium wp-image-1508" title="4-choose keyboard" src="http://www.songshu.org/wp-content/uploads/2009/10/4-choose-keyboard-300x225.png" alt="4-choose keyboard" width="300" height="225" /></p>
<p>I usually keep my / and /home on a separate partition since i can&#8217;t be bothered making a backup in case of a reinstall, this means i choose the &#8220;Advanced Option&#8221;.</p>
<p>Yeah!!!! always makes me feel good to be an &#8220;advanced&#8221; user ;) .</p>
<p><img class="alignnone size-medium wp-image-1509" title="5-prepare partitions" src="http://www.songshu.org/wp-content/uploads/2009/10/5-prepare-partitions-300x225.png" alt="5-prepare partitions" width="300" height="225" /></p>
<p>I already had everything manually formatted as ext4 from my previous installation but it seems to be the default choice now. The /root will be used as ext4 and formatted and obviously /home as ext4 and not formatted.</p>
<p>The setup for the first user user on the system (the sudo account) looks familiar but there&#8217;s the GDM option to log in without a password and to require the password for the ecrypted home folder.</p>
<p>My previous installation did not have an encrypted /home folder, if i choose to encryption now on the existing partition containing my personal data should i have made a backup first? Well&#8230;lets not take too many changes and i still don&#8217;t feel to wait for a 30 minute backup to finish.</p>
<p><img class="alignnone size-medium wp-image-1510" title="6-user settings" src="http://www.songshu.org/wp-content/uploads/2009/10/6-user-settings-300x225.png" alt="6-user settings" width="300" height="225" /></p>
<p>The next screen will show the options selected in the previous steps, so lets confirm this.</p>
<p><img class="alignnone size-medium wp-image-1511" title="7-confirm installation" src="http://www.songshu.org/wp-content/uploads/2009/10/7-confirm-installation-300x225.png" alt="7-confirm installation" width="300" height="225" /></p>
<p>OOOHHHH!!! some flashy introduction appears during the installation, i must say Ubuntu is slowly shaping up to look like the, looking as slick as OSX, promise.</p>
<p>No GRUB confirmation? i think i noticed that the confirmation to install grub to the MBR already disappeared in the Jaunty version.</p>
<p>Restart the system or continue to use the live cd appears as usual, so lets give that a try.</p>
<p><img class="alignnone size-medium wp-image-1512" title="8-installation complete" src="http://www.songshu.org/wp-content/uploads/2009/10/8-installation-complete-300x225.png" alt="8-installation complete" width="300" height="225" /></p>
<p>The cd comes out as usual with the continue to restart after removing the cd</p>
<p>I did not time the time it took for the default installation since i have been writing this ans making the screen shots during installation but it should roughly be about the usual 20  minutes for the complete procedure.</p>
<p>As suspected after previous releases, even the BETA runs smoothly without any hick-ups and i must say it looks smooth</p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/all-posts/karmic-koala-installation/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the road to Lucid Lynx</title>
		<link>http://www.songshu.org/all-posts/the-road-to-lucid-lynx</link>
		<comments>http://www.songshu.org/all-posts/the-road-to-lucid-lynx#comments</comments>
		<pubDate>Sun, 04 Oct 2009 10:47:21 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[all posts]]></category>
		<category><![CDATA[Lucid Lynx]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1495</guid>
		<description><![CDATA[Have been using Xubuntu for the last several years as my desktop of choice since the days of the first LTS Dapper Drake, the XFCE desktop proved to me a more sane and stable desktop environment then the Ubuntu Gnome version, especially some exciting new features (bugs and quirks) concerning the file manager (Nautilus) and the mail program (evolution) had me fleeing to the boring and featureless stable cradle  that Thunar and Thunderbird provided. But with the new 9.10 in beta i&#8217;m willing to put it up to the test to see if i can switch to the standard Ubuntu for all my installed desktops (+- 12 of them) by the time of 10.04 . While safely posting this from my Xubuntu Jaunty 9.04 eeepc netbook i will be keeping track of the preparation for my personal use case on a modest Pentium IV with 512MB RAM as my test installation]]></description>
			<content:encoded><![CDATA[<p>Have been using Xubuntu for the last several years as my desktop of choice since the days of the first LTS Dapper Drake, the XFCE desktop proved to me a more sane and stable desktop environment then the Ubuntu Gnome version, especially some exciting new features (bugs and quirks) concerning the file manager (Nautilus) and the mail program (evolution) had me fleeing to the boring and featureless stable cradle  that Thunar and Thunderbird provided.</p>
<p>But with the new 9.10 in beta i&#8217;m willing to put it up to the test to see if i can switch to the standard Ubuntu for all my installed desktops (+- 12 of them) by the time of 10.04 .</p>
<p>While safely posting this from my Xubuntu Jaunty 9.04 eeepc netbook i will be keeping track of the preparation for my personal use case on a modest Pentium IV with 512MB RAM as my test installation</p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/all-posts/the-road-to-lucid-lynx/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>roundcube installeren</title>
		<link>http://www.songshu.org/manuals/roundcube-installeren</link>
		<comments>http://www.songshu.org/manuals/roundcube-installeren#comments</comments>
		<pubDate>Thu, 28 May 2009 06:50:08 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[all posts]]></category>
		<category><![CDATA[manuals]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1483</guid>
		<description><![CDATA[ik ga er hier van uit dat er al een werkende versie van apache en mysql aanwezig is Roundcube downloaden De laatste versie van Roundcube is te vinden op http://roundcube.net/downloads Op het moment van schrijven is dat versie &#8220;roundcubemail-0.2.2.tar.gz&#8221; Voor we Roundcube downloaden gaan we eerst naar een locatie waar we m willen hebben, en in mijn geval kies ik daar altijd de locatie /usr/src voor # cd /usr/src/ vervolgens gebruiken we wget om roundcube te downloaden # wget http://garr.dl.sourceforge.net/sourceforge/roundcubemail/roundcubemail-0.2.2.tar.gz Roundcube zit verpakt in een tar.gz bestand en om deze uit te pakken gebruiken we tar -xvf # tar -xvf roundcubemail-0.2.2.tar.gz Het resultaat is een mapje met de naam roundcubemail-0.2.2 en om dit mapje op een mooie plek te krijgen met een duidelijke naam te geven doen we het volgende. # mv roundcubemail-0.2.2 /var/www/webmail MySQL voorbereiden Er van uitgaande dat MySQL al geinstalleerd is gaan we eerst een database aanmaken voor Roundcube (LET OP, MySQL gebruikers en de MySQL root account staan volledig los van de systeem gebruikers en root account) Om in te loggen op de MySQL comando prompt als root doen we het volgende. # mysql -u root -p vervolgens zal MySQL het wachtwoord vragen van de MySQL [...]]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;">ik ga er hier van uit dat er al een werkende versie van apache en mysql aanwezig is</span></p>
<h2>Roundcube downloaden</h2>
<p>De laatste versie van Roundcube is te vinden op <a rel="nofollow" href="http://roundcube.net/downloads">http://roundcube.net/downloads</a></p>
<p>Op het moment van schrijven is dat versie &#8220;roundcubemail-0.2.2.tar.gz&#8221;</p>
<p>Voor we Roundcube downloaden gaan we eerst naar een locatie waar we m willen hebben, en in mijn geval kies ik daar altijd de locatie /usr/src voor</p>
<p># cd /usr/src/</p>
<p>vervolgens gebruiken we wget om roundcube te downloaden</p>
<p># wget http://garr.dl.sourceforge.net/sourceforge/roundcubemail/roundcubemail-0.2.2.tar.gz</p>
<p>Roundcube zit verpakt in een tar.gz bestand en om deze uit te pakken gebruiken we tar -xvf</p>
<p># tar -xvf roundcubemail-0.2.2.tar.gz</p>
<p>Het resultaat is een mapje met de naam roundcubemail-0.2.2 en om dit mapje op een mooie plek te krijgen met een duidelijke naam te geven doen we het volgende.</p>
<p># mv roundcubemail-0.2.2 /var/www/webmail</p>
<h2>MySQL voorbereiden</h2>
<p>Er van uitgaande dat MySQL al geinstalleerd is gaan we eerst een database aanmaken voor Roundcube</p>
<p>(LET OP, MySQL gebruikers en de MySQL root account staan volledig los van de systeem gebruikers en root account)</p>
<p>Om in te loggen op de MySQL comando prompt als root doen we het volgende.</p>
<p># mysql -u root -p</p>
<p>vervolgens zal MySQL het wachtwoord vragen van de MySQL root gebruiker.</p>
<p>Om de database &#8220;roundcubemail&#8221; aan te maken doen we het volgende.</p>
<p>mysql&gt; CREATE DATABASE roundcubemail /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;</p>
<p>Vervolgens maken we een aparte gebruiker met de naam &#8220;roundcube&#8221; aan die gebruik kan maken van die database, LET OP!! verander het woord password hieronder in iets veiligers!!</p>
<p>mysql&gt; GRANT ALL PRIVILEGES ON roundcubemail.* TO &#8217;roundcube&#8217;@'localhost&#8217; IDENTIFIED BY &#8216;password&#8217;;</p>
<p>Nu de database en gebruiker zijn toegevoegd gebruiken we het comando &#8220;quit&#8221; om weer uit de MySQL te komen.</p>
<p>mysql&gt; quit</p>
<p>Vervolgens moeten we nog de tabellen e.d. importeren in de roundcubemail database en om dit te doen gaan we eerst naar het mapje webmail.</p>
<p># cd /var/www/webmail</p>
<p>En vervolgens importeren we de tabellen</p>
<p># mysql -u roundcube -p roundcubemail &lt; SQL/mysql.initial.sql</p>
<p>Vervolgens zal MySQL vragen om het paswoord van de roundcube gebruiker, als het goed is is dat het &#8220;password&#8221; wat we eerder verandert hebben.</p>
<h2>Roundcube configuratie</h2>
<p>Roundcube is verder te configuren vanuit de browser mar voor we dat doen zorgen we dat de locatie temp en logs schrijfbaar zijn voor apache.</p>
<p># chown -R www-data:www-data temp</p>
<p># chown -R www-data:www-data logs</p>
<p>In je webbrowser ga je vervolgens naar de locatie</p>
<p>http://url-to-roundcube/installer/</p>
<p><img class="alignnone size-medium wp-image-1489" title="screenshot" src="http://www.songshu.org/wp-content/uploads/2009/05/screenshot-300x211.png" alt="screenshot" width="300" height="211" /></p>
<p>Als alles OK is ga je door naar het volgende scherm met de knop &#8221; NEXT&#8221;</p>
<p>Op het volgende scherm zijn een hoop opties te vinden, !!!!!vervang in ieder geval het goede MySQL password!!!!</p>
<p><img class="alignnone size-medium wp-image-1490" title="screenshot-1" src="http://www.songshu.org/wp-content/uploads/2009/05/screenshot-1-300x211.png" alt="screenshot-1" width="300" height="211" /></p>
<p>Zodra alles OK is gaan we verder met &#8220;CREATE CONFIG&#8221;</p>
<p>en krijgen we het volgende scherm, dit is de configuratie met de waarden die we in het vorige scherm hebben ingevuld.</p>
<p><img class="alignnone size-medium wp-image-1491" title="screenshot-2" src="http://www.songshu.org/wp-content/uploads/2009/05/screenshot-2-300x211.png" alt="screenshot-2" width="300" height="211" /></p>
<p>Zoals aangegeven moeten we die configuratie handmatig in het goede bestandje zetten.</p>
<p>de eerste is main.inc.php</p>
<p>selecteer alles uit dit gedeelte en doe copy met de muis, vervolgens gaan we we naar de comando prompt en maken we het bewuste bestandje aan.</p>
<p># nano /var/www/webmail/config/main.inc.php</p>
<p>en pasten</p>
<p>CTR + X om te saven</p>
<p>Vervolgens de tweede db.inc.php copieren</p>
<p># nano /var/www/webmail/config/db.inc.php</p>
<p>en pasten</p>
<p>CTR + X om te saven</p>
<p>Zodra dit gedaan is is roundcube klaar om te gebruiken maar eerst halen we de &#8220;installer&#8221; folder weg.</p>
<p># rm -r /var/www/webmail/installer</p>
<h2>Maak een link voor elke nieuwe gebruiker</h2>
<p>In het geval van virtualmin maakt wordt er voor elke nieuwe klant een systeem gebruiker aangemaakt met ieder zijn eigen &#8220;public_html&#8221; folder, om te zorgen dat elk domeintje via http://mijndomein.nl/webmail toegang heeft tot webmail maken we een symlink aan in de skeleton files.</p>
<p># mkdir /etc/skel/public_html</p>
<p>en vervolgens de symlink</p>
<p># ln -s /var/www/webmail /etc/skel/public_html/</p>
<p><em><br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/manuals/roundcube-installeren/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>online debian manpages</title>
		<link>http://www.songshu.org/seo/online-debian-manpages</link>
		<comments>http://www.songshu.org/seo/online-debian-manpages#comments</comments>
		<pubDate>Sat, 14 Mar 2009 11:46:32 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[all posts]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[browsable]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[manpages]]></category>
		<category><![CDATA[online]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1480</guid>
		<description><![CDATA[Recently i have been practicing my &#8220;website building skills&#8221; a little, nothing special but making a nice website was simply a thing i never did so i just want to try out a few things to see what i can do. One of the things that came up on my list was inspired by the work done by the Ubuntu community. Apparently the man pages for Ubuntu were not to be found on the web to be read in your browser and the man pages website for debian manpages.debian.net cgi generates the pages meaning its not browsable by the search engines, so the chance of running in to them if you don&#8217;t know the exact address are next to none. So.. i downloaded the work done for Ubuntu and adjusted the scripts and appearance to work with Debian, the result can be found here . Not sure what i&#8217;m gonna do with this site but if there seems to be appeal for it then i will keep the site up and maybe extend it a little. In case anybody has any idea&#8217;s on that i&#8217;d be glad the hear about it.]]></description>
			<content:encoded><![CDATA[<p>Recently i have been practicing my &#8220;website building skills&#8221; a little, nothing special but making a nice website was simply a thing i never did so i just want to try out a few things to see what i can do. One of the things that came up on my list was inspired by the work done by the Ubuntu community.</p>
<p>Apparently the man pages for Ubuntu were not to be found on the web to be read in your browser and the man pages website for debian manpages.debian.net cgi generates the pages meaning its not browsable by the search engines, so the chance of running in to them if you don&#8217;t know the exact address are next to none.</p>
<p>So.. i downloaded the work done for Ubuntu and adjusted the scripts and appearance to work with Debian, the result can be found <a title="debian manpages" rel="nofollow" href="http://manpages.songshu.org">here</a> .</p>
<p>Not sure what i&#8217;m gonna do with this site but if there seems to be appeal for it then i will keep the site up and maybe extend it a little.</p>
<p>In case anybody has any idea&#8217;s on that i&#8217;d be glad the hear about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/seo/online-debian-manpages/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replacing a failing disk</title>
		<link>http://www.songshu.org/it/replacing-a-failing-disk</link>
		<comments>http://www.songshu.org/it/replacing-a-failing-disk#comments</comments>
		<pubDate>Sun, 08 Mar 2009 14:11:31 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[all posts]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[disk failure]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[software raid]]></category>

		<guid isPermaLink="false">http://www.songshu.org/?p=1473</guid>
		<description><![CDATA[S.M.A.R.T. giving warnings http://manpages.songshu.org/manpages/lenny/en/man8/smartctl.8.html lately I&#039;ve been receiving S.M.A.R.T. warnings by mail about one of the disks in a RAID10 array, the mails came in pairs like below. SMART error (CurrentPendingSector) detected on host: host This email was generated by the smartd daemon running on: host name: host DNS domain: cipar.net NIS domain: (none) The following warning/error was logged by the smartd daemon: Device: /dev/sde, 1 Currently unreadable (pending) sectors For details see host&#039;s SYSLOG (default: /var/log/syslog). You can also use the smartctl utility for further investigation. The original email about this issue was sent at Fri Feb 20 20:30:43 2009 CET Another email message will be sent in 24 hours if the problem persists. SMART error (OfflineUncorrectableSector) detected on host: host this email was generated by the smartd daemon running on: host name: host DNS domain: cipar.net NIS domain: (none) The following warning/error was logged by the smartd daemon: Device: /dev/sde, 1 Offline uncorrectable sectors For details see host&#039;s SYSLOG (default: /var/log/syslog). You can also use the smartctl utility for further investigation. The original email about this issue was sent at Fri Feb 20 20:30:44 2009 CET Another email message will be sent in 24 hours if the problem [...]]]></description>
			<content:encoded><![CDATA[<p><!-- begin Dokuwiki generated code--></p>
<div class="dokuwiki">
<h3><a name="s.m.a.r.t._giving_warnings" id="s.m.a.r.t._giving_warnings">S.M.A.R.T. giving warnings</a></h3>
<div class="level3">
<p><a href="http://manpages.songshu.org/manpages/lenny/en/man8/smartctl.8.html" class="urlextern" title="http://manpages.songshu.org/manpages/lenny/en/man8/smartctl.8.html"  rel="nofollow">http://manpages.songshu.org/manpages/lenny/en/man8/smartctl.8.html</a>
</p>
<p>
lately I&#039;ve been receiving S.M.A.R.T. warnings by mail about one of the disks in a RAID10 array,<br />
the mails came in pairs like below.
</p>
<pre class="code">SMART error (CurrentPendingSector) detected on host: host
This email was generated by the smartd daemon running on:

   host name: host
  DNS domain: cipar.net
  NIS domain: (none)

The following warning/error was logged by the smartd daemon:

Device: /dev/sde, 1 Currently unreadable (pending) sectors

For details see host&#039;s SYSLOG (default: /var/log/syslog).

You can also use the smartctl utility for further investigation.
The original email about this issue was sent at Fri Feb 20 20:30:43 2009 CET
Another email message will be sent in 24 hours if the problem persists.</pre>
<pre class="code">SMART error (OfflineUncorrectableSector) detected on host: host

this email was generated by the smartd daemon running on:

   host name: host
  DNS domain: cipar.net
  NIS domain: (none)

The following warning/error was logged by the smartd daemon:

Device: /dev/sde, 1 Offline uncorrectable sectors

For details see host&#039;s SYSLOG (default: /var/log/syslog).

You can also use the smartctl utility for further investigation.
The original email about this issue was sent at Fri Feb 20 20:30:44 2009 CET
Another email message will be sent in 24 hours if the problem persists.</pre>
<p>
Issuing</p>
<pre class="code">smartctl -a /dev/sde</pre>
<p>gave me the following summary by the smartmontools
</p>
<pre class="code">smartctl version 5.38 [x86_64-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.11
Device Model:     ST3500320AS
Serial Number:    5QM056TH
Firmware Version: SD04
User Capacity:    500,107,862,016 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Sun Mar  8 11:00:53 2009 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82)    Offline data collection activity
                   was completed without error.
                   Auto Offline Data Collection: Enabled.
Self-test execution status:      ( 113)    The previous self-test completed having
                   the read element of the test failed.
Total time to complete Offline
data collection:          ( 634) seconds.
Offline data collection
capabilities:              (0x7b) SMART execute Offline immediate.
                   Auto Offline data collection on/off support.
                   Suspend Offline collection upon new
                   command.
                   Offline surface scan supported.
                   Self-test supported.
                   Conveyance Self-test supported.
                   Selective Self-test supported.
SMART capabilities:            (0x0003)    Saves SMART data before entering
                   power-saving mode.
                   Supports SMART auto save timer.
Error logging capability:        (0x01)    Error logging supported.
                   General Purpose Logging supported.
Short self-test routine
recommended polling time:      (   1) minutes.
Extended self-test routine
recommended polling time:      ( 106) minutes.
Conveyance self-test routine
recommended polling time:      (   2) minutes.
SCT capabilities:            (0x003b)    SCT Status supported.
                   SCT Feature Control supported.
                   SCT Data Table supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
 1 Raw_Read_Error_Rate     0x000f   114   099   006    Pre-fail  Always       -       132023209
 3 Spin_Up_Time            0x0003   093   092   000    Pre-fail  Always       -       0
 4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       159
 5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       35
 7 Seek_Error_Rate         0x000f   074   060   030    Pre-fail  Always       -       21613621419
 9 Power_On_Hours          0x0032   089   089   000    Old_age   Always       -       9858
10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
12 Power_Cycle_Count       0x0032   100   037   020    Old_age   Always       -       159
184 Unknown_Attribute       0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   082   082   000    Old_age   Always       -       18
188 Unknown_Attribute       0x0032   100   098   000    Old_age   Always       -       4295032838
189 High_Fly_Writes         0x003a   001   001   000    Old_age   Always       -       344
190 Airflow_Temperature_Cel 0x0022   071   048   045    Old_age   Always       -       29 (Lifetime Min/Max 27/31)
194 Temperature_Celsius     0x0022   029   052   000    Old_age   Always       -       29 (0 21 0 0)
195 Hardware_ECC_Recovered  0x001a   028   021   000    Old_age   Always       -       132023209
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       1
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       1
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0

SMART Error Log Version: 1
ATA Error Count: 18 (device log contains only the most recent five errors)
   CR = Command Register [HEX]
   FR = Features Register [HEX]
   SC = Sector Count Register [HEX]
   SN = Sector Number Register [HEX]
   CL = Cylinder Low Register [HEX]
   CH = Cylinder High Register [HEX]
   DH = Device/Head Register [HEX]
   DC = Device Command Register [HEX]
   ER = Error register [HEX]
   ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It &quot;wraps&quot; after 49.710 days.

Error 18 occurred at disk power-on lifetime: 9008 hours (375 days + 8 hours)
 When the command that caused the error occurred, the device was active or idle.

 After command completion occurred, registers were:
 ER ST SC SN CL CH DH
 -- -- -- -- -- -- --
 40 51 00 4b 10 95 00

 Commands leading to the command that caused the error were:
 CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 -- -- -- -- -- -- -- --  ----------------  --------------------
 60 00 80 9f 0e 95 40 00  17d+17:02:58.471  READ FPDMA QUEUED
 ec 00 00 00 00 00 a0 00  17d+17:02:58.471  IDENTIFY DEVICE
 2f 00 01 10 00 00 a0 00  17d+17:02:58.348  READ LOG EXT
 60 00 80 9f 0e 95 40 00  17d+17:02:56.547  READ FPDMA QUEUED
 ec 00 00 00 00 00 a0 00  17d+17:02:56.546  IDENTIFY DEVICE

Error 17 occurred at disk power-on lifetime: 9008 hours (375 days + 8 hours)
 When the command that caused the error occurred, the device was active or idle.

 After command completion occurred, registers were:
 ER ST SC SN CL CH DH
 -- -- -- -- -- -- --
 40 51 00 4b 10 95 00

 Commands leading to the command that caused the error were:
 CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 -- -- -- -- -- -- -- --  ----------------  --------------------
 60 00 80 9f 0e 95 40 00  17d+17:02:56.547  READ FPDMA QUEUED
 ec 00 00 00 00 00 a0 00  17d+17:02:56.546  IDENTIFY DEVICE
 2f 00 01 10 00 00 a0 00  17d+17:02:56.441  READ LOG EXT
 60 00 80 9f 0e 95 40 00  17d+17:02:54.640  READ FPDMA QUEUED
 ec 00 00 00 00 00 a0 00  17d+17:02:54.639  IDENTIFY DEVICE

Error 16 occurred at disk power-on lifetime: 9008 hours (375 days + 8 hours)
 When the command that caused the error occurred, the device was active or idle.

 After command completion occurred, registers were:
 ER ST SC SN CL CH DH
 -- -- -- -- -- -- --
 40 51 00 4b 10 95 00

 Commands leading to the command that caused the error were:
 CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 -- -- -- -- -- -- -- --  ----------------  --------------------
 60 00 80 9f 0e 95 40 00  17d+17:02:54.640  READ FPDMA QUEUED
 ec 00 00 00 00 00 a0 00  17d+17:02:54.639  IDENTIFY DEVICE
 2f 00 01 10 00 00 a0 00  17d+17:02:54.534  READ LOG EXT
 60 00 80 9f 0e 95 40 00  17d+17:02:52.707  READ FPDMA QUEUED
 ec 00 00 00 00 00 a0 00  17d+17:02:52.707  IDENTIFY DEVICE

Error 15 occurred at disk power-on lifetime: 9008 hours (375 days + 8 hours)
 When the command that caused the error occurred, the device was active or idle.

 After command completion occurred, registers were:
 ER ST SC SN CL CH DH
 -- -- -- -- -- -- --
 40 51 00 4b 10 95 00

 Commands leading to the command that caused the error were:
 CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 -- -- -- -- -- -- -- --  ----------------  --------------------
 60 00 80 9f 0e 95 40 00  17d+17:02:52.707  READ FPDMA QUEUED
 ec 00 00 00 00 00 a0 00  17d+17:02:52.707  IDENTIFY DEVICE
 2f 00 01 10 00 00 a0 00  17d+17:02:52.585  READ LOG EXT
 60 00 80 9f 0e 95 40 00  17d+17:02:50.792  READ FPDMA QUEUED
 ec 00 00 00 00 00 a0 00  17d+17:02:50.791  IDENTIFY DEVICE

Error 14 occurred at disk power-on lifetime: 9008 hours (375 days + 8 hours)
 When the command that caused the error occurred, the device was active or idle.

 After command completion occurred, registers were:
 ER ST SC SN CL CH DH
 -- -- -- -- -- -- --
 40 51 00 4b 10 95 00

 Commands leading to the command that caused the error were:
 CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 -- -- -- -- -- -- -- --  ----------------  --------------------
 60 00 80 9f 0e 95 40 00  17d+17:02:50.792  READ FPDMA QUEUED
 ec 00 00 00 00 00 a0 00  17d+17:02:50.791  IDENTIFY DEVICE
 2f 00 01 10 00 00 a0 00  17d+17:02:50.677  READ LOG EXT
 60 00 80 9f 0e 95 40 00  17d+17:02:48.845  READ FPDMA QUEUED
 60 00 00 9f 0a 95 40 00  17d+17:02:48.845  READ FPDMA QUEUED

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed: read failure       10%      9849         917923767
# 2  Extended offline    Completed without error       00%      9685         -
# 3  Extended offline    Completed without error       00%      9594         -
# 4  Extended offline    Completed: read failure       90%      9512         9769035
# 5  Extended offline    Completed: read failure       90%      9344         9769035
# 6  Extended offline    Completed: read failure       90%      9176         9769035
# 7  Extended offline    Completed: read failure       90%      9008         9769035
# 8  Extended offline    Completed without error       00%      8842         -
# 9  Extended offline    Completed without error       00%      8674         -
#10  Extended offline    Completed: read failure       40%      8505         675183097
#11  Extended offline    Completed: read failure       40%      8342         675183097
#12  Extended offline    Completed: read failure       40%      8170         675183097
#13  Extended offline    Completed: read failure       40%      8002         675183097
#14  Extended offline    Completed without error       00%      7835         -
#15  Extended offline    Completed without error       00%      7673         -
#16  Extended offline    Completed without error       00%      7503         -
#17  Extended offline    Completed without error       00%      7333         -
#18  Extended offline    Completed without error       00%      7165         -
#19  Extended offline    Completed without error       00%      6997         -
#20  Extended offline    Completed without error       00%      6833         -
#21  Extended offline    Completed without error       00%      6660         -

SMART Selective self-test log data structure revision number 1
SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
   1        0        0  Not_testing
   2        0        0  Not_testing
   3        0        0  Not_testing
   4        0        0  Not_testing
   5        0        0  Not_testing
Selective self-test flags (0x0):
 After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay. </pre>
<p>
Actually i wasn&#039;t sure on how to read this but a quick e-mail to the debian-user mailinglist<br />
returned the following advice.
</p>
<pre class="code">
G&#039;Day.

&amp;gt; &amp;gt; smartctl --all /dev/sde
&amp;gt; &amp;gt; gives me the following, i&#039;ve been trying to google this but some sources say
&amp;gt; &amp;gt; replace the disk at once or don&#039;t wory, its harmless. Anybody can shed some
&amp;gt; &amp;gt; light?

&amp;gt; &amp;gt;  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always
&amp;gt; &amp;gt;   -       35

This one above indicates that you drive is developing bad sectors. All
drives come with &#039;spare&#039; sectors that can be remapped to the usable
space if ine or more becomes bad. Your drive has reallocated 35 bad
sectors and is most likely out of spares. Regardless the drive is
failing and must be replaced. In addition to that the data that was
stored on those 35 previously bad sectors is most likely irretrievably
lost. I hope that your raid setup has saved you from this data
corruption.

&amp;gt; &amp;gt; Num  Test_Description    Status                  Remaining  LifeTime(hours)
&amp;gt; &amp;gt;  LBA_of_first_error
&amp;gt; &amp;gt; # 1  Extended offline    Completed: read failure       10%      9849
&amp;gt; &amp;gt; 917923767

...

&amp;gt; &amp;gt; #13  Extended offline    Completed: read failure       40%      8002
&amp;gt; &amp;gt; 675183097

Your disc has been steadily failing for the last ~1800 hours.
Buy a replacement and swap it out asap.

Adrian</pre>
<p>
OK, seems like clear advice so i&#039;d better take it,<br />
actually i already ordered the new disk since smart gave me the first warning so its time to do some replacing.
</p>
</div>
<h3><a name="making_an_extra_backup" id="making_an_extra_backup">Making an extra backup</a></h3>
<div class="level3">
<p><a href="http://manpages.songshu.org/manpages/lenny/en/man1/rsync.1.html" class="urlextern" title="http://manpages.songshu.org/manpages/lenny/en/man1/rsync.1.html"  rel="nofollow">http://manpages.songshu.org/manpages/lenny/en/man1/rsync.1.html</a>
</p>
<p>
Before doing anything i decided to do the manual backup routine.
</p>
<p>
I have all my services and important data in a VServer set up on one big LVM partition<br />
so we stop the VServers first.
</p>
<pre class="code">/etc/init.d/util-vserver stop</pre>
<p>
And then make a LVM snapshot.
</p>
<p>
<a href="http://manpages.songshu.org/manpages/lenny/en/man8/lvm.8.html" class="urlextern" title="http://manpages.songshu.org/manpages/lenny/en/man8/lvm.8.html"  rel="nofollow">http://manpages.songshu.org/manpages/lenny/en/man8/lvm.8.html</a>
</p>
<pre class="code">lvcreate -L592M -s -n backup /dev/vg/VSERVERS</pre>
<p>
Normally you can start the VServers again at this point and then continue making the backup,<br />
but since this is a failing disk replacement and its sunday anyway i decided not too to risk any loss of data<br />
in case something did go wrong and accept the downtime.
</p>
<p>
First we mount the snapshot to a physical location.<br />
In this case the location is as follows.</p>
<pre class="code">mkdir /mnt/backup</pre>
<p>
And then mount it.
</p>
<pre class="code">mount /dev/vg/backup /mnt/backup</pre>
<p>As said this is not my usual rotating backup, so i could have used copy but I always use Rsync anyway.
</p>
<pre class="code">rsync -av /mnt/backup /BACKUP/backup</pre>
<p>
The /BACKUP location is on another seperate raid1 array on the same box,<br />
you could of course do it to another machine over the network,<br />
but since i have huge amounts of data this simply goes faster
</p>
<p>
After Rsync has done its job we can unmount the LVM snapshot.
</p>
<pre class="code">umount /mnt/backup</pre>
<p>
And then remove the snapshot alltogether.</p>
<pre class="code">lvremove /dev/vg/backup</pre>
</div>
<h3><a name="remove_the_disk_from_the_array" id="remove_the_disk_from_the_array">Remove the disk from the array</a></h3>
<div class="level3">
<p>Now we have a fresh backup lets remove the disk from the array.<br />
The array looks as follows, note this is a raid10 + a raid1 array on the same box so 6 disks in total.<br />
lets have a look with</p>
<pre class="code">cat /proc/mdstat</pre>
<p>the result looks like this.</p>
<pre class="code">Personalities : [raid1] [raid10]
md3 : active raid10 sdc6[0] sdd6[3] sdf6[2] sde6[1]
      966020096 blocks 256K chunks 2 far-copies [4/4] [UUUU]

md2 : active raid10 sdc5[0] sdf5[3] sde5[2] sdd5[1]
      979712 blocks 64K chunks 2 near-copies [4/4] [UUUU]

md1 : active raid10 sdc3[0] sdf3[3] sde3[2] sdd3[1]
      9574528 blocks 64K chunks 2 near-copies [4/4] [UUUU]

md0 : active raid1 sdc1[0] sdd1[3] sde1[2] sdf1[1]
      96256 blocks [4/4] [UUUU]

md4 : active raid1 sda1[0] sdb1[1]
      976759936 blocks [2/2] [UU]

unused devices: &amp;lt;none&amp;gt;
</pre>
<p>
The disk /dev/sde is used in ”/boot md0” ”/root md1” “swap md2” and the big ”/VSERVERS md3” partition.
</p>
<p>
We need to remove it from every md device and it takes 2 steps per device.<br />
First we set it to fail</p>
<pre class="code">mdadm --fail /dev/md0 /dev/sde1</pre>
<pre class="code">mdadm --fail /dev/md1 /dev/sde3</pre>
<pre class="code">mdadm --fail /dev/md2 /dev/sde5</pre>
<pre class="code">mdadm --fail /dev/md3 /dev/sde6</pre>
<p>This time</p>
<pre class="code">cat /proc/mdstat</pre>
<p>shows as follows</p>
<pre class="code">Personalities : [raid1] [raid10]
md3 : active raid10 sdc6[0] sdd6[3] sdf6[2] sde6[4](F)
      966020096 blocks 256K chunks 2 far-copies [4/3] [U_UU]

md2 : active raid10 sdc5[0] sdf5[3] sde5[4](F) sdd5[1]
      979712 blocks 64K chunks 2 near-copies [4/3] [UU_U]

md1 : active raid10 sdc3[0] sdf3[3] sde3[4](F) sdd3[1]
      9574528 blocks 64K chunks 2 near-copies [4/3] [UU_U]

md0 : active raid1 sdc1[0] sdd1[3] sde1[4](F) sdf1[1]
      96256 blocks [4/3] [UU_U]

md4 : active raid1 sda1[0] sdb1[1]
      976759936 blocks [2/2] [UU]

unused devices: &amp;lt;none&amp;gt;</pre>
<p>That looks about right, so now we completely remove it from the array
</p>
<pre class="code">mdadm --remove /dev/md0 /dev/sde1</pre>
<pre class="code">mdadm --remove /dev/md1 /dev/sde3</pre>
<pre class="code">mdadm --remove /dev/md2 /dev/sde5</pre>
<pre class="code">mdadm --remove /dev/md3 /dev/sde6</pre>
</div>
<h3><a name="identify_the_disk" id="identify_the_disk">Identify the disk</a></h3>
<div class="level3">
<p>
Now /dev/sde is completely removed from the array so we can physically remove the disk and replace it with the new disk.<br />
But how do we know which of the 6 disks is /dev/sde?<br />
Running</p>
<pre class="code">smartctl -a /dev/sde</pre>
<p>again will show the serial number as it is marked on the disk.</p>
<pre class="code">=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.11
Device Model:     ST3500320AS
Serial Number:    5QM056TH
Firmware Version: SD04
User Capacity:    500,107,862,016 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Sun Mar  8 14:19:10 2009 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
</pre>
<p>So in this case 5QM056TH, good to know.<br />
Lets shutdown the machine and replace the disk</p>
<pre class="code">shutdown -h now</pre>
</div>
<h3><a name="add_the_new_disk_to_the_array" id="add_the_new_disk_to_the_array">Add the new disk to the array</a></h3>
<div class="level3">
<p>After replacing the disk a new unformatted disk showed up when issuing
</p>
<pre class="code">fdisk -l</pre>
<pre class="code">Disk /dev/sde: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/sde doesn&#039;t contain a valid partition table</pre>
<p>
Great, so lets get this one with the program and add it to the RAID10 array.<br />
Firstly we need to make sure that the new /dev/sde has the exact same partition layout as the other 3 disks in the array.<br />
Lets copy the partition table of /dev/sdc to /dev/sde.</p>
<pre class="code">sfdisk -d /dev/sdc | sfdisk /dev/sde</pre>
<p>The result looked like this</p>
<pre class="code">Checking that no-one is using this disk right now ...
OK

Disk /dev/sde: 60801 cylinders, 255 heads, 63 sectors/track

sfdisk: ERROR: sector 0 does not have an msdos signature
 /dev/sde: unrecognized partition table type
Old situation:
No partitions found
New situation:
Units = sectors of 512 bytes, counting from 0

   Device Boot    Start       End   #sectors  Id  System
/dev/sde1   *        63    192779     192717  fd  Linux raid autodetect
/dev/sde2       9767520 976768064  967000545   5  Extended
/dev/sde3        192780   9767519    9574740  fd  Linux raid autodetect
/dev/sde4             0         -          0   0  Empty
/dev/sde5       9767583  10747484     979902  fd  Linux raid autodetect
/dev/sde6      10747548 976768064  966020517  fd  Linux raid autodetect
Successfully wrote the new partition table

Re-reading the partition table ...

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)</pre>
<p>
Once the partitions are OK, we can add the disk the same way as we failed it and removed it earlier</p>
<pre class="code">mdadm --add /dev/md0 /dev/sde1</pre>
<pre class="code">mdadm --add /dev/md1 /dev/sde3</pre>
<pre class="code">mdadm --add /dev/md2 /dev/sde5</pre>
<pre class="code">mdadm --add /dev/md3 /dev/sde6</pre>
<p>
Issuing the command</p>
<pre class="code">watch cat /proc/mdstat</pre>
<p>should show you that the new disk is part of the array and that the syncing is in progress.
</p>
<pre class="code">Every 2.0s: cat /proc/mdstat                                                             Sun Mar  8 15:01:52 2009

Personalities : [raid1] [raid10]
md3 : active raid10 sde6[4] sdd6[0] sdc6[3] sdf6[2]
      966020096 blocks 256K chunks 2 far-copies [4/3] [U_UU]
      [&amp;gt;....................]  recovery =  0.0% (196352/483010048) finish=122.9min speed=65450K/sec

md2 : active raid10 sde5[4] sdd5[0] sdf5[3] sdc5[1]
      979712 blocks 64K chunks 2 near-copies [4/3] [UU_U]
        resync=DELAYED

md1 : active raid10 sde3[2] sdd3[0] sdf3[3] sdc3[1]
      9574528 blocks 64K chunks 2 near-copies [4/4] [UUUU]

md0 : active raid1 sde1[2] sdd1[0] sdc1[3] sdf1[1]
      96256 blocks [4/4] [UUUU]

md4 : active raid1 sda1[0] sdb1[1]
      976759936 blocks [2/2] [UU]

unused devices: &amp;lt;none&amp;gt;</pre>
</div>
</div>
<p><!-- end Dokuwiki generated code--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.songshu.org/it/replacing-a-failing-disk/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

