Linux

How to remove .tb folders on a Seagate BLACKARMOR NAS 220

Posted on September 8, 2011 at 10:14 pm

Abstract

It’s unbelievable – I bought this tiny little storage from Seagate and I had to learn it the hard way that I do not have control over my files. One would think that a storage which offers RAID provides the ultimate security for your data. And when a hard drive fails, you just replace it, disaster avoided. All true, but what Seagate does not mention on this product’s web site is to NOT NAME YOUR FOLDERS   “.tb” – otherwise you cannot delete those.

Well, in this case, I even was not the scapegoat towards myself, it was my client operating system. Folders named .tb are being created when an OS such as MS Windows tries to store preview images (aka thumbnails aka tb) for a specific folder. That’s why it may be the case that when there’s lots of media on the NAS you might have lots of .tb folders.

Support?

So I wanted to post my question into a forum and discovered there were already numerous questions on that topic, all not really answered, especially not by the official Seagate Support. That’s why I submitted a Service Request to Seagate explaining my problem. Their answer was just ridiculous, the solution was supposed to be the following:

  1. Create a new share that is nearly named as your old share (e.g. old: video, new: videos)
  2. Copy over all data from the old share to the new one and omit the .tb folders
  3. Delete the old share

Sorry about the term “ridiculous”, but as a customer of a high tec device I can expect a professional solution which would be a firmware update resolving the issue. This cannot be that difficult to resolve. Instead, push the device to the market and do not care about any design flaws. I think in this case, Customer Service still has a lot of potential for lessons to learn.

Solution!

  1. Remove the SATA drives from the NAS and connect them to any computer. You will need SATA ports on that. Make sure the BIOS sees the drives.
  2. Boot that computer with a Live Linux distribution (any distribution will work, I’ve used CentOS)
  3. Execute these commands:
    $ mdadm -A /dev/md0 /dev/sda1 /dev/sdb1
    mdadm: /dev/md0 has been started with 2 drives.
    $ mkdir /mnt/md0
    $ mount /dev/md0 /mnt/md0
    $ echo “ssh stream tcp nowait root /usr/sbin/dropbear dropbear -i” >> /mnt/md0/etc/inetd.conf
  4. As the often mentioned default password ‘atsahs’ did not work for me, I’d suggest the following:
    Edit /mnt/md0/etc/shadow   to reset root’s and remove the encrypted password between the colons. DO NOT DELETE MORE. The resulting line for root should look like this:
    root::14783:0:99999:7:::
  5. Execute these commands:
    $ umount /mnt/md0
    $ mdadm -S /dev/md0
  6. Shut down the Live Linux and move the two drives back to the NAS
  7. Start up the NAS and ssh over to your NAS
    ssh root@<NAS-IP>
  8. Set your new root password

Now you can cd to your shares under /shares and do whatever you want, e.g.

find -type d -name .tb -exec rm -rf {} \;

This fails on some directories that contain spaces in their names, but you’ll be able to take care of them manually.

Next step would be to find out how deleting .tb folders can be enabled. Playing around with a few smb.conf options, which I can edit now.

PS: Sorry, aber dieser Artikel ist mal in Englisch, weil eine Menge Leute im Seagate-Forum das gleiche Problem haben und diese eben auf Englisch gefragt haben.

Ubuntu Linux auf meinem Notebook

Posted on April 29, 2010 at 11:00 pm

Windows – ein lahmendes Etwas

Ich war ja schon mal froh, überhaupt einen schnelleren Sub-Notebook (das sind die kleinen Dinger mit 13,3″ Bildschirmdiagonale und mit viel Leistung) zu haben und stolz wie Oskar, Vista (Achtung) Business drauf zu haben. Es hat kein halbes Jahr gedauert, schon lahmte das Vista von Update zu Update, man konnte schon bald die Minuten zählen, die man brauchte, um den Rechner zu starten und die erste Website aufzurufen. Dann war alles einfach zäh – und das auf einem Intel Core 2 Duo T6400 mit 3GB RAM (übrigens ein ASUS F6VE) – Browser starten: Gemessene (nicht nur gefühlte) 35 Sekunden, Word starten: 20 Sekunden, usw. Das war nicht mehr tragbar.

Linux – der Jungbrunnen

Die Entscheidung, Ubuntu auf den Notebook zu packen, fiel nach einem Test aller “exotischen” Geräte leicht: Fingerprint-Scanner, eingebaute Webcam, Soundkarte, WLAN-Modul, Card-Reader, Touchpad, Bluetooth. Dies hat Ubuntu mich alles netterweise per Live-CD erfolgreich ausprobieren lassen. Nun war ich sicher – es lief alles und ich konnte Linux installieren. Seit dem bin ich rund um zufrieden. Per Wine kann ich immer noch Microsoft Office betreiben, der Rest ist Open Source oder Freeware. Alles perfekt. Mittlerweile ist Linux nicht nur im Serverbereich mein Favorit sondern auch auf dem Desktop.

Update 29.04.2010

Es läuft immer noch alles und vor allem – es ist nichts langsamer geworden! Gerade vorhin hat mich meine Aktualisierungsverwaltung gefragt, ob ich das neue Release von Ubuntu einspielen möchte. Finde ich nett. Das macht Windows alles nicht, d.h. weder schnell bleiben, noch mich fragen ob ich das aktuelle Major Release kostenlos downloaden möchte. Windows 7 musste ich mir für über 100 Euro kaufen – und das ist auch schon wieder langsam. Ok, der Hersteller von Windows möchte Geld verdienen und das sehe ich auch ein. Ich würde allerdings auch für eine gute Linux-Distribution bezahlen.

Ich glaub, ich klicke gleich mal genüsslich auf “Aktualisieren” und berichte bei Gelegenheit mal von meinen Erfahrungen.

(LOL, und gerade lief im Fernsehen ein Werbespot für einen aktuellen Browser einer großen US-amerikanischen Firma aus Redmond. Der Nutzwert des beworbenen Produkts erschließt sich mir jetzt im ersten Anlauf mal nicht. Zudem, die 45 Sekunden meines Lebens gibt mir keiner mehr zurück.)

… jetzt spann mich schon nicht so lange auf die Folter. :-)

Update 30.04.2010:

Fertig – funktioniert alles.

Top