Archive for the ‘Computers and co.’ Category

Samsung 2TB Ecogreen F4 HD204UI firmware-Upgrade

Sunday, January 30th, 2011

Wow, that was a real fight. You get quite a nice hard disk with the 2TB Samsung Spin Point EcoGreen F4 (bang-for-the-buck-wise). Unfortunately, patching the firmware is anything but a walk in the park. Here is the experience I could gather in the process – scraping all necessary information from different places on the net. (thanks pixelr0n1n for the hints on how to get this stuff done on a Mac Pro – see comment section below) So let’s get started:

  1. The drive has a firmware bug which causes the hard disk to just “forget” to write data if you enable the write cache (which you probably want to do) if there’s a SMART-command sent to the disk at the same time.
  2. On Samsung’s web page, there’s a tool to patch your disk up to the latest firmware. Sounds great and pretty easy. But:
    1. The old and the new firmware have exactly the same version number. I don’t know any procedure to tell a broken firmware from a good one – but to run a stress-test, e.g. copy a large file and issue a SMART-command, say using smartmontools. Do a byte-compare afterwards (the writes do not fail with an error, but silently screw up your data while [not] writing it to disk).
    2. If you have a disk manufactured after 12-2010, you can be sure that the firmware is ok. That date is printed on the disk label.
    3. That’s an FAQ: flashing the new firmware does not erase your data. However: If you used that disk already, you cannot be sure that all data on that disk is ok. Additionally, having a backup of your data never hurt anyone. Not having one did.
    4. You can write the firmware-update to a disk twice. No use, but possible.
  3. So go ahead and grab a FreeDOS-Iso (Update: Quadzilla posted a link to an ISO which already contains the Samsung tool!). Using isomaster (if you use  Linux, it’s free – you can also modify the iso in a virtual machine), put the F4EG.EXE into the iso image. Just dump it into the top level of that image. You cannot easily put it into the FreeDOS floppy disk image, I tried that, because I ran into some nasty problems with the FreeDOS CD-ROM drivers. If you want to boot FreeDOS as a “Live CD”, it won’t easily recognize SATA-CD-ROMs. Or other brands of CD-ROMs. If you use the right mode while booting FreeDOS, that’s no problem. See below!
  4. Now, grab a PC (we Mac users have a problem here, you cannot use SATA-USB converters neither for flashing). The PC should not use any SATA-PATA emulation layer (if it does, you have to disable it in the BIOS settings, otherwise, F4EG will yield an “internal error” while flashing – and won’t write the firmware! I also came across a machine where you couldn’t disable this emulation – if you’re one of this lucky clan, look for a different PC).
  5. Now for the fun part: (more…)

Aperture Places

Monday, May 31st, 2010

Having returned from our trip to South Tyrol, I grabbed my GPS tracks off my Columbus V900, piped them through GPS Babel and loaded them into Aperture. After placing the first photo on the track to set the time offset, I was shocked. All images were misplaced, some images did not receive GPS coordinates at all… something very strange was going on. After a odyssey through the Internet (where I stumbled across BT747, a nice program to convert track formats), countless conversions from one format to another (via a third format), which all lead to the same crappy result, I found out what was the problem: the time zone which Aperture quietly assumes the track files have. One click here:

…and (amlost) everything was ok – if you place the cursor over a different zone before clicking „ok“, Aperture will also notice that it should apply the changes. Very buggy behavior indeed – and since last time the GPS placement worked fine (which was before daylight savings time), there’s a major bug on the loose here. Here’s the workflow I had to use:

  1. convert Columbus-CSV-files to  GPX (use whatever you like most here, BT747, GPS Babel or anything else but TimeAlbum which causes Aperture to crash repeatably)
  2. Read track into Aperture
  3. Set track time zone to UTC
  4. Place first photo (Caution: use the correct offset to UTC here – in my case, that was MESZ-UTC= -60 min.)
  5. Let Aperture place the rest of the photos along your track.

Preseeding Ubuntu Karmic

Tuesday, November 10th, 2009

So you want to preseed Ubuntu? Fine. You’ve probably read this article. Maybe you’ve seen the scripts, too. However, there are still some gaps wide enough to stumble into. Here’s a quick overview over how to create an unattended install CD. If you want to add customized packages, you’re a bit more adventurous than I was – but this might give you a head start, anyway.

Getting the files out of the ISO

Here’s your first stop. Go grab everything that’s on the original CD image (no need to burn it, the is is just fine if you do this):

mkdir loopdir
mount -o ubuntu_whatever.iso loopdir
# you might need a "modprobe loop" first

Now, grab everything inside and copy it to a place where you can modify it:

mkdir cd
cp -a loopdir/* cd/
cp -a loopdir/.d* cd/

(Others might find a…

rsync -a -H loopdir/ cd

…more elegant. Whatever you do, don’t miss the “.disk” directory – otherwise, you’ll end up with annoying errors when booting from the final CD – which say that it cannot find a live file system).

The preseed configuration file

Now, you’re here. That’s a lot of nice things you can configure there – but the main thing missing in the 8.xx docs is the part about Ubiquity. Here’s an excerpt from my preseed.cfg (you might use that as a quick start – but note that I’ve preseeded a German installation):

# make sure we get over page 6 of the installation questions:
ubiquity        ubiquity/summary        note
# disable this for one single click before reboot:
ubiquity        ubiquity/reboot boolean true
# the rest should be quite self-explanatory:
ubiquity        languagechooser/language-name   select  German
ubiquity        countrychooser/shortlist        select  DE
ubiquity        countrychooser/countryname      select  Germany
ubiquity        countrychooser/country-name      string Germany
debconf         debconf/language        string  de
ubiquity        console-keymaps-at/keymap       select  de
ubiquity        tzconfig/gmt    boolean false
ubiquity        time/zone       select  Europe/Berlin
ubiquity        debian-installer/country        string DE
ubiquity        debian-installer/language       string de
ubiquity        debian-installer/locale select  de_DE.UTF-8
console-setup   console-setup/layoutcode        select  de
console-setup   console-setup/modelcode select  pc105
console-setup   console-setup/layout    select  Germany
console-setup   console-setup/variant   select  Germany

ubyquity        localechooser/supported-locales multiselect\
de_DE.UTF-8 en_US.UTF-8
# this is what the "late_command" in d-i does. I prefer a trick like
# this to do some setup work on the freshly installed machine -
# this script gets pulled from 192.168.1.1 via http and should
# disable itself after execution. Comment this away if you don't
# want it!
ubiquity        ubiquity/success_command        string  wget \ http://192.168.1.1/ubuntu_deploy -O /target/etc/init.d/S99deploy; ln -s\ /etc/init.d/S99deploy /target/etc/rc2.d/S99deploy; chmod ugo+x /target/etc/init.d/S99deploy

Modify boot command line

I prefer the elegant way: I modify menu.cfg in the isolinux dir. Add these lines to the position you like (add it to text.cfg if you want to have it in between the rest of the options):

label unattended
        menu label Unattended auto install
        kernel /casper/vmlinuz
        append file=/cdrom/preseed/my.seed boot=casper initrd=/casper/initrd.lz debian-installer/locale=de_DE \
automatic-ubiquity noprompt quiet splash --

Modify the locale and name of the preseeding file. Make sure you boot into “automatic-ubiquity”. Use noprompt if you want to use ubiquity’s reboot-option in the preseed file.

Create the ISO

At this point, I don’t go any further. If you want to add packages, do so. But be warned that all the gpg stuff mentioned in the docs apply in that case.

mkisofs -o my_iso_file.iso -r -J -no-emul-boot -boot-load-size 4 -boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat ./cd

Use Virtualbox for extensive testing. Burn at will. And: have fun!

Twitter-Clients für den Mac II

Monday, April 20th, 2009

Eigentlich ist das nur ein Verweis auf den Ursprungs-Artikel – da habe ich noch das eine oder andere angefügt – Tweetie ist der letzte Client, den ich in die Finger bekommen habe, und der mir (fast ganz) super gefällt. Also: Klick mich.

(Das finale) Update: auf Freewareosx gibt es jetzt einen Vergleich von 12 Twitter-Clients. Inklusive Feature-Vergleichstabelle. Damit stelle ich das Posten zu dem Thema ein. ;-)

Homebanking auf dem Mac

Tuesday, March 10th, 2009

Die Suche nach einem guten Homebanking-Programm auf dem Mac scheint eines der letzten Abenteuer zu sein, die es auf diesem Planeten noch gibt. Klar, da gibt es zunächst die üblichen Verdächtigen: MacGiro und BankX, die Platzhirsche. Beide in der Preislage von 100€+. Da würde man schon einen Funktionsumfang erwarten, den man auch von damals unter Windows gewohnt war; Kategorien, automatische Zuordnung von Buchungen, grafische Auswertungen und noch einigen Firlefanz mehr. (more…)

AVR-GCC-Dokumentation?

Friday, February 27th, 2009

Wau, es ist unglaublich, aber wahr. Es gibt so gut wie keine ordentliche Dokumentation für die GCC-AVR-Toolchain. Es gibt da zwar ein paar Seiten:

…aber es gibt auch klare „Fehlanzeigen“ wie diese hier – ein Verweis auf die Info-Seiten. Na klasse – und ich darf dann ausprobieren, was jetzt für den AVR-Assembler zutrifft und was nicht. *Grummel*

Twitter Clients für Mac OS X

Sunday, February 22nd, 2009

Au Mann. Das ist ja ziemlich nicht-trivial, die Suche nach einem Twitter-Client für Mac OS. Da gibt es ja Seiten mit Listen von Clients. Und noch mehr davon. Witzigerweise ist das das erste Mal, dass ich Adobe Air-Anwendungen begegnet bin. Sonderlich begeistert bin ich davon nicht, auch wenn Tweetr und TweetDeck aus dieser Kategorie momentan meine Favoriten sind – NatsuLion ist momentan auch noch im Test. Also, falls ich mich zu einer Entscheidung durchringe, sage ich Bescheid. ;-)

Update: 2009-03-21: Teste gerade Nambu – bisher ganz vielversprechend. Verkürzt URLs, kann Bilder posten, ist eine native Mac OS Anwendung.

Update 2009-04-20: So, Tweetie ist jetzt noch dazugestoßen – und rein optisch mein derzeitiger Favorit.

screenshot

Die Funktionen sind die, die ich mir wünschen würde – außer der Growl-Untersützung vielleicht, die derzeit (noch?) fehlt. URLs kürzen, Bilder hochladen, usw.