<?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>jdsn::blog &#187; Linux</title>
	<atom:link href="http://jdsn.de/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://jdsn.de</link>
	<description></description>
	<lastBuildDate>Wed, 17 Aug 2011 12:49:13 +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>openSUSE 11.2</title>
		<link>http://jdsn.de/2009/11/opensuse-11-2/</link>
		<comments>http://jdsn.de/2009/11/opensuse-11-2/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 00:00:18 +0000</pubDate>
		<dc:creator>jdsn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[openSUSE]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[YaST]]></category>
		<category><![CDATA[11.2]]></category>
		<category><![CDATA[distribution]]></category>

		<guid isPermaLink="false">http://jdsn.de/?p=169</guid>
		<description><![CDATA[openSUSE 11.2 is now available Are you new to linux and want to learn about it or have never used it before? Then now its your turn to download openSUSE 11.2 and give it a try. Besides the installation DVD images you can also download LiveCD images to run linux on your computer without installation [...]]]></description>
			<content:encoded><![CDATA[<p><strong>openSUSE 11.2 is now available</strong></p>
<p><a title="Download openSUSE 11.2" href="http://download.opensuse.org" target="_blank"><img class="aligncenter size-full wp-image-170" title="OpenSUSE_11.2_468x60" src="http://jdsn.de/wp-content/uploads/OpenSUSE_11.2_468x60.png" alt="OpenSUSE_11.2_468x60" width="468" height="60" /></a>Are you new to linux and want to learn about it or have never used it before? Then now its your turn to <a title="Download openSUSE 11.2" href="http://download.opensuse.org" target="_blank">download openSUSE 11.2</a> and give it a try. Besides the installation DVD images you can also download LiveCD images to run linux on your computer without installation &#8211; the harddisk will not be touched. Find <a title="openSUSE 11.2" href="http://en.opensuse.org/OpenSUSE_11.2" target="_blank">more information</a> in the openSUSE wiki about whats new in this release.</p>
]]></content:encoded>
			<wfw:commentRss>http://jdsn.de/2009/11/opensuse-11-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>/dev/fd0</title>
		<link>http://jdsn.de/2009/09/devfd0/</link>
		<comments>http://jdsn.de/2009/09/devfd0/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 20:28:59 +0000</pubDate>
		<dc:creator>jdsn</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[floppy]]></category>

		<guid isPermaLink="false">http://jdsn.de/?p=151</guid>
		<description><![CDATA[I still don&#8217;t believe what I did last night :) On Friday I&#8217;m going to upgrade a friend&#8217;s computer and install two new hard disks. In order to save some time I wanted to preinstall the operating system (the one of my companies&#8217; cooperation partner). Up to then it was a good idea. But then [...]]]></description>
			<content:encoded><![CDATA[<p>I still don&#8217;t believe what I did last night :)</p>
<p>On Friday I&#8217;m going to upgrade a friend&#8217;s computer and install two new hard disks. In order to save some time I wanted to preinstall the operating system (the one of my companies&#8217; cooperation partner). Up to then it was a good idea. But then I connected one new disk to my computer and booted the XP Home installation CD. <em>No hard disks installed</em> was the short message after the installer probed the system. I realized that this CD must be so old that it had no SATA drivers &#8211; or at least not for my mainboard.</p>
<p>I searched for the driver CD of my mainboard and &#8211; thinking like a developer who wants to be nice to the users &#8211; booted again, pressed F6 when prompted to include 3rd party drivers, inserted the driver CD and found that the only way to hand new drivers to an XP installation was via floppy.</p>
<p>But I have no floppy drive in this machine. Nor has my PC in the living room, nor has my Laptop. A month ago I cleaned up my cellar and got rid of my last PC with a floppy drive &#8211; a Pentium 133 machine that I got in 2001, when it already was used (Siemens wanted to get rid of it back then). Well &#8230; no way to solve that, it seemed. I didn&#8217;t want to give up that easy and crawled though my board with PC components and really found a lonely floppy drive. But then I recalled that I also disposed my collection of SCSI and floppy cables &#8211; nobody uses floppies any more and everything is SATA nowadays, I kept some IDE cables as my file server still has an IDE drive.</p>
<p>So the next objective was: get a floppy cable. When I almost gave up on this I had a look in an old ASUS mainboard box where I keep some manuals in &#8211; and amazingly there was a brand new floppy cable still in its original package. Ok, great, now I could connect the floppy drive with my mainboard &#8230; but stop, it needs a small power plug &#8211; but there was none. As my power supply has cable management there must be some power cords left in its packaging &#8230; so again, searching for a cable &#8211; but that one was easier to find.</p>
<p>But what is a floppy drive without a floppy. Those I disposed about 5 years ago after I created a last backup of thier content on my file server. So now it became quite hard. I even had to search in those tow boxes with unused stuff that I left untouched for three years now since I moved into my current apartment. And astonishingly there were about 10 floppies left.</p>
<p>Then the amazing thing happened. After over 5 years it was the first time I logged into my own workstation with a floppy drive connected. Ok, the workstations changed in the meantime from a custom built one to a MacMini and now I&#8217;ve got a custom built one again (does not look as nice as Apple products but its a lot cheaper and much more flexible).</p>
<p>Well, the rest of the story is short: formatting the floppy with KDE was easy, installing wine to extract the SATA drivers on the CD from the self extrating *.exe archives went smoothly as well, and so did the installation of XP in the end. It just was so curious to use a technology again after such a long time (5 years can seem long). Maybe I now start to understand what it feels like for the computer poineers to touch a Zuse or to power on a DEC PDP-7.</p>
]]></content:encoded>
			<wfw:commentRss>http://jdsn.de/2009/09/devfd0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hacking a Seagate hard disk</title>
		<link>http://jdsn.de/2009/02/hacking-a-seagate-hard-disk/</link>
		<comments>http://jdsn.de/2009/02/hacking-a-seagate-hard-disk/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 21:02:15 +0000</pubDate>
		<dc:creator>jdsn</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[harddisk]]></category>
		<category><![CDATA[hdd]]></category>
		<category><![CDATA[minicom]]></category>
		<category><![CDATA[rs232]]></category>
		<category><![CDATA[seagate]]></category>
		<category><![CDATA[ttl]]></category>

		<guid isPermaLink="false">http://jdsn.de/?p=107</guid>
		<description><![CDATA[I will document here how to hack a Seagate hard disk that ran into one of these annoying firmware bugs that affected the Seagate Barracuda 7200.11 series lately. If you want to know more about the background you may want to start with the first part of the story. The friend who brought me the [...]]]></description>
			<content:encoded><![CDATA[<p>I will document here how to hack a Seagate hard disk that ran into one of these annoying firmware bugs that affected the Seagate Barracuda 7200.11 series lately. If you want to know more about the background you may want to start with the <a href="/2009/02/a-disk-on-the-shelf" target="_self">first part</a> of the story.</p>
<p>The friend who brought me the disk kindly came by the next day to help with the operation. According to the recipes I found <a title="Tutorial HDDguru" href="http://forum.hddguru.com/tutorial-resolve-lba-seagate-7200-bios-don-recognize-t11040.html" target="_blank">here</a> and <a title="MFSN Board" href="http://www.msfn.org/board/index.php?s=f3026a11082e66c9589de13ace038484&amp;showtopic=128807" target="_blank">here</a>, we had to connect the hard drives service port to a serial console via a RS232-TTL converter. My friend prepared the RS232-TTL converter, brought a stable power supply as we needed 5V to operate. My task was to prepare the operating table, find a serial cable and a computer with a serial port, a two-pin-connector with wires and to get to know minicom.</p>
<p>So and here is how we did it:</p>
<div id="attachment_114" class="wp-caption aligncenter" style="width: 310px"><a href="http://jdsn.de/wp-content/uploads/serial_966.jpg"><img class="size-medium wp-image-114" title="serial_966" src="http://jdsn.de/wp-content/uploads/serial_966-300x190.jpg" alt="RS232-TTL converter" width="300" height="190" /></a><p class="wp-caption-text">RS232-TTL converter</p></div>
<p>First we connected the converter to the devices. The docking station of my notebook has a serial port, so I connected it via a serial cable to the converter. The three wires coming from the converter had to be connected the hard drive directly. We fixed the ground wire with a screw of the board. The Rx and Tx connectors had to be connected to the Tx and Rx connectors of the drive (so just cross them). Thats where we used the two-pin-connector. On the drive the pin next to the SATA connector is the Rx and next to this one is Tx. The other two are reserved and we did not need them.</p>
<p style="text-align: center;"><img class="size-medium wp-image-110 aligncenter" title="img_6572" src="http://jdsn.de/wp-content/uploads/img_6572-300x225.jpg" alt="img_6572" width="300" height="225" /></p>
<p>The most tricky part was about to be next. We had to interrupt the power supply for the motor of the platters but keep everything else connected properly. And it must be possible to remove this interruption during the operation. We unscrew all srews a little and pushed a piece of paper between the contacts of the board and the connector, and fastend the srews just a bit.</p>
<p style="text-align: center;"><img class="size-medium wp-image-111 aligncenter" title="img_6577" src="http://jdsn.de/wp-content/uploads/img_6577-300x225.jpg" alt="img_6577" width="300" height="225" /></p>
<p>So much for the preparation. Let&#8217;s start. Here is my minicomrc I used to communicate with the drives firmware:</p>
<pre>$ cat minirc.seagateBug
# Machine-generated file - use "minicom -s" to change parameters.
pu port             /dev/ttyS0
pu baudrate         38400
pu bits             8
pu parity           N
pu stopbits         1</pre>
<p>Now we connected the the SATA power cable to the drive and let minicom establish the serial connection. And really, I got first contact with the drive:</p>
<p><img class="aligncenter size-medium wp-image-112" title="img_6584" src="http://jdsn.de/wp-content/uploads/img_6584-300x225.jpg" alt="img_6584" width="300" height="225" />Even the error codes the drive dumped to the screen were correct according to the recipe. So we were on the right track. Now it was just about to properly retype the commands into minicom and patiently wait for the drive to complete the commands. Here is a screenshot with some comments in it.</p>
<p style="text-align: left;">
<div id="attachment_127" class="wp-caption aligncenter" style="width: 310px"><a href="http://jdsn.de/wp-content/uploads/seagatebug_minicom_commented.png"><img class="size-medium wp-image-127" title="seagatebug_minicom_commented" src="http://jdsn.de/wp-content/uploads/seagatebug_minicom_commented-300x206.png" alt="Hacking the firmware (commented)" width="300" height="206" /></a><p class="wp-caption-text">Hacking the firmware (commented)</p></div>
<p style="text-align: left;">Then finally we were done. But we did not repair the drive, but only reactivated it. Now it can run into the same bug again any time (but only on startup, so we would notice). So we tried to prevent as many restarts as we could. The first thing I did was connect it to an external SATA-2-firewire case and use the first startup of the disk to backup all important data. The second thing I did was connect the drive to the onboard connectors of my workstation and boot from the firmware upgrade CD I downloaded from the Seagate website the day before and deployed the new firmware to finally get rid of the bug.</p>
<p style="text-align: left;">In the end the disk felt quite well back in its original machine. Fortunately we had nothing more to fix within the installed system (yes, it was the other operating system).</p>
<p style="text-align: left;">Btw. the commands we sent to the drive took serveral seconds each to process, so we had to wait for for them to finish. Disconnecting power too early would have broken the disk. Thats why I connected all vital systems to my UPS for this hack. If you happen to have such a Seagate drive, my deepest regrets to you and good luck for your recovery hack.</p>
]]></content:encoded>
			<wfw:commentRss>http://jdsn.de/2009/02/hacking-a-seagate-hard-disk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Repair MP3 files</title>
		<link>http://jdsn.de/2009/02/repair-mp3-files/</link>
		<comments>http://jdsn.de/2009/02/repair-mp3-files/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 06:48:18 +0000</pubDate>
		<dc:creator>jdsn</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Profil]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[mp3splt]]></category>
		<category><![CDATA[repair]]></category>

		<guid isPermaLink="false">http://jdsn.de/?p=101</guid>
		<description><![CDATA[And here comes the next post about a nice tool I found last night: mp3splt (yes, without &#8220;i&#8221;). It seems like my blog turns into a collection of tips about nice tools. Anyway, the sound engineer of our choir sent me his USB stick via snail mail. He recorded our last gig with a hardware [...]]]></description>
			<content:encoded><![CDATA[<p>And here comes the next post about a nice tool I found last night: mp3splt (yes, without &#8220;i&#8221;). It seems like my blog turns into a collection of tips about nice tools.</p>
<p>Anyway, the sound engineer of our <a title="EC Chor Profil" href="http://ec-profil.de" target="_blank">choir</a> sent me his USB stick via snail mail. He recorded our last gig with a hardware MP3 encoder which dumped some garbage into the MP3 file and even corrupted the filesystem. He could not copy or play it with his M$ system. So I was interested if it can be repaired.</p>
<p>It turned out to be very easy to fix. The filesystem was just done with a <em>fsck.msdos -a</em>. But for the MP3 file I needed a tool and found mp3splt. I decided to enforce to write new id3 tags and to cut the first 5 seconds and the quite a few minutes at the end of the recording (they were empty anyway). Btw. cutting MP3 files into pieces without to recode the material is the main purpose of this tool. So I just ran:</p>
<pre>mp3splt -1 broken.mp3 00.05 118.00</pre>
<p>This created a new and valid MP3 file with just our gig &#8211; thanks to the <a title="Sourceforge: mp3splt" href="http://mp3splt.sourceforge.net" target="_blank">mp3splt</a> authors.</p>
]]></content:encoded>
			<wfw:commentRss>http://jdsn.de/2009/02/repair-mp3-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download Picasa Webalbum</title>
		<link>http://jdsn.de/2008/11/download-picasa-webalbum/</link>
		<comments>http://jdsn.de/2008/11/download-picasa-webalbum/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 02:36:01 +0000</pubDate>
		<dc:creator>jdsn</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[album]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[photo]]></category>
		<category><![CDATA[picasa]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://jdsn.de/?p=75</guid>
		<description><![CDATA[Did you ever got an invitation eMail from a friend or a colleague to his Picasa Webalbum? Well actually I do not use these online photo albums (yet). The nice thing about them is, you can show a huge pile of photos to someone without having to send him tens of eMails with 4 or [...]]]></description>
			<content:encoded><![CDATA[<p>Did you ever got an invitation eMail from a friend or a colleague to his Picasa Webalbum?</p>
<p>Well actually I do not use these <a title="Picasa" href="http://picasaweb.google.com/" target="_blank">online</a> <a title="Flickr" href="http://flickr.com/" target="_blank">photo</a> albums (yet). The nice thing about them is, you can show a huge pile of photos to someone without having to send him tens of eMails with 4 or 5 photos attached to each &#8211; depending on resolution, file format and the allowed size of attachments of the receivers mail server.</p>
<p>On Saturday, 2008-11-15, I had a concert with my gospel choir <a title="EC Chor Profil" href="http://ec-profil.de" target="_blank">Profil</a> and a professional photographer took photos of us. Liberally he offered to send me the images to put them into the <a title="EC Chor Profil - Gallery" href="http://ec-profil.de/wp-gallery2.php" target="_blank">gallery</a> of our website. As I am a geek of course I asked for the images in their original resolution (maybe we want to use them in some print material).</p>
<p>Today I finally got an eMail from him, and guess what: He uploaded all the 240 images to his Picasa Webalbum. Its nice to see the slideshow online in the browser or to get a an overview in the thumbnail view. But I wanted to download the real data on my disk to work with it. On the website I did not find any link to download that stuff. I could click around to get the image in original resolution, but only one at a time and it took about 5 clicks to get the real download link.</p>
<p>Google itself told me to install Picasa on my system. <a title="Picasa and Downthemall" href="http://googlesystem.blogspot.com/2007/12/download-picasa-web-albums-without.html" target="_blank">Another blog</a> described a way how to download the images with the Firefox plugin <a title="Downthemall" href="http://www.downthemall.net/" target="_blank">Downthemall</a>. I also found a Java applet and a Mono application that could have done the job.  But I didn&#8217;t want to install some big blob just to download some images from the net &#8211; this is insane.</p>
<p>Then, thankfully, I found <a title="Bash script to download Picasa Web Albums" href="http://blue-gnu.biz/content/new_bash_script_download_entire_picasaweb_albums" target="_blank">this page</a>. It provides a simple Bash script that can download Picasa Webalbums just by passing it the URL. It even knows about nested albums and you can specify exactly what you want to download. The script is licensed under <em>GPL3 or later</em> so I&#8217;ll host it <a title="picasa-webdownload" href="/download/tools/picasaweb-download" target="_blank">here</a> as well (to never lose it). Just put it in your <em>~/bin</em> folder or even in <em>/usr/local/bin</em></p>
<p>Now assume you got a link to the Picasa album <em>GNULinux</em> of the user <em>abhishek.amberkar</em>. The link you got looks like this: <em>http://picasaweb.google.com/abhishek.amberkar/GNULinux</em></p>
<p>All you have to do to download this album is this:</p>
<pre>
mkdir newPictures
cd newPictures
picasaweb-download http://picasaweb.google.com/abhishek.amberkar/GNULinux
</pre>
<p>See the linked site and the scripts help for the usage. It supports listings of albums and images and once you downloaded something you do not need to specify the full URL any more but can download the next album just by name. Veeeery cool. Thanks &#8220;Loïc Cerf&#8221; for this great script. Now its a matter of a few seconds to download enire albums.</p>
]]></content:encoded>
			<wfw:commentRss>http://jdsn.de/2008/11/download-picasa-webalbum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>openSUSE Board Election</title>
		<link>http://jdsn.de/2008/10/opensuse-board-election/</link>
		<comments>http://jdsn.de/2008/10/opensuse-board-election/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 15:15:04 +0000</pubDate>
		<dc:creator>jdsn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[openSUSE]]></category>
		<category><![CDATA[community]]></category>

		<guid isPermaLink="false">http://jdsn.de/?p=25</guid>
		<description><![CDATA[Finally I voted for the openSUSE Board. I think this is a quite important committee in the openSUSE project. Their job is not about taking control over the openSUSE development, but rahter to interlock of the community and the interests of Novell. They are communication partners for both sides and help in decision making processes. [...]]]></description>
			<content:encoded><![CDATA[<p>Finally I <a title="Voting for the openSUSE board members" href="http://zonker.opensuse.org/2008/10/14/geek-the-vote/" target="_blank">voted</a> for the <a title="openSUSE Board" href="http://en.opensuse.org/Board" target="_blank">openSUSE Board</a>. I think this is a quite important committee in the <a title="openSUSE" href="http://opensuse.org" target="_blank">openSUSE project</a>. Their job is not about taking control over the openSUSE development, but rahter to interlock of the community and the interests of Novell. They are communication partners for both sides and help in decision making processes. Thanks to the current board for their good job, and all the best to the next board.</p>
]]></content:encoded>
			<wfw:commentRss>http://jdsn.de/2008/10/opensuse-board-election/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

