[tek-nol-uh-jee]

Rescuing data from a damaged Windows hdd

Posted on

A neighbour talked to me on the street lately that his laptop hard disk may be damaged, because his laptop didn’t even boot anymore. The data on the disk is important to him so he asked if I may take a look.

So that’s what I did with this hdd, a WD 500GB.

  1. Put it into my harddisk docking station and checking if my system recognizes the hdd.
    • Yay. At least the partition table isn’t damaged, and it’s not a headcrash. I can access all partitions and mount them.
    • Ohoh, Windows partition damaged! SATA read errors on this one, so maybe damaged blocks. (used dmesg -w)
    • Backup partition readable without erros and transferred all data to another disk.
  2. Attempt to rescue data from the damaged partition
    • *Uses dd magic* {dd bs=1M conv=sync,noerror if=/dev/sdd2 of=/media/data/win7.img}
    • After dd has finished, setting up the loop device ({losetup /dev/loop2 /media/data/win7.img}).
    • Generating a vmdk for virtual box to be able to load the image as a disk for my Windows 7 VM.
      • {VBoxManage internalcommands createrawvmdk -filename /tmp/test.vmdk -rawdisk /dev/loop2}
    • Starting the VM and let windows do the task of repairing the damaged ntfs partition, let’s hope there’s something to rescue after that step…
    • … while waiting for that step to finish, my neighbour brought me his 3TB external hard drive to transfer the data on.
      • Which was formatted with FAT32 *sigh*, saved the data, reformatted to NTFS and copied the data back.
    • The NTFS chkdsk took almost more than 72h!
    • And after that 72h, nothing useful was there to rescue. The “User” folder was just empty. 🙁
      • Well, after a second look some days later i remembered that windows ntfs chkdsk saves data in “found.000”, so i checked that again and found at least some files which were recovered, hopefully enough for my neighbour. 🙂
  3. finish.

 

[tek-nol-uh-jee]

6 years, finally my PC system is too slow.

Posted on

In November or December 2010 I bought a i7 950 with 3.0GHz, over time I upgraded the RAM to 24GB and the graphic card stopped at a nvidia GeForce 760 GTX. Six years of well enough performance for everything I could think of, programming, 3D graphics, gaming.

Finally this is over.

I bought Deus Ex: Mankind Divided (err.. yes I know that this game is a graphic whore!) and realized that even on low graphic preferences some scenes result in a dia show, despite other completly fluent parts. And because of that stuttering combat parts I gave up playing on my current machine.

Thinking about new PC components now…

[tek-nol-uh-jee]

Qualys SSL Labs: SSL Report: A+

Posted on

Yes, I’ve got it back!

After my ssl certificate provider startssl.com upgraded the root certificates with the power of SHA256withRSA instead of SHA1, I’ve got my A+ rating for SSL secured websites back.

Here the link for verification: https://www.ssllabs.com/ssltest/analyze.html?d=mmo.to

With the upgrade of my account at startSSL on May, 28 I could create a new certificate which gained all the benefits of the upgraded signature algorithm, so to say, not rated ‘weak’ anymore. 😀

Why I did not check my rating earlier? Well, lazy?! Other more important tasks to do?! 😛

[tek-nol-uh-jee]

Elliptic-curve cryptography for TLS certificates still not quite usable

Posted on

Today I tried to just chose a elliptic curve for my TLS certifcate which I thought to be suitable, but was very disappointed about the browser support for those curves. I generated a key with a 521 bit curve but realized afterwards that browsers like M$ ones and chromium (wtf?) only support two curves recommended by the NSA.

Okay, sorry, I don’t really care what the NSA recommends, but I can’t put some major browsers before the doorstep. Well, so I reverted back to the 4096bit RSA key, because of the wide adoption.

Maybe I’ll provide a key with P-384 later on.

You know, you’re thinking about some future proof solution, at least for some years, but you’re stopped by slow technology adoption… quite disappointing.

At least I still got my A+ on ssllabs.com:

https://www.ssllabs.com/ssltest/analyze.html?d=mmo.to

Some links:

[tek-nol-uh-jee]

Gitlab-CI and how to safely build docker images

Posted on

Well. That was some hard time to get that running.

These ways of building docker images with gitlab-runner(s) can be found online:

But no one mentioned just using a bare gitlab-runner on your server with standard shell access and the gitlab-runner user added to the docker group. In the end it’s the simplest variant and the most obvious from my view but not the first propagated.

I tried the whole bunch mentioned above only to fail after hours of playing around, so I chose to get back to good oldschool gitlab-runner-without-docker and voila, everything runs smooth.

 

[tek-nol-uh-jee]

Microsoft, Windows 10 and the paternalism of users

Posted on

Attention: This is a rant, with some swearing…

Yes, Windows 10 is here…

… and Microsoft desided to force users to install ‘the wonderfull free upgrade to Windows 10’. So my father was punished by an automatic  install.

The update system wasn’t even asking him. He went away from his PC and came back some hours later only to find his system already installing the new operating system.

Well. After the installation he declined the new licensing and got his Win7 back, at least that went smooth, but in my opinion microsoft should be charged for the lost hours of waiting for install/deinstall of this shit called Windows 10.

And just after restoring Win7 a window popped up and said it would install Win10  within 1 hour again, so when you’re just gone because your wife needs help for whatever, you’re again punished by a installation of Win10 you did not want. Only by choosing first to postpone and later to deactivate (after 3 or 5 different dialogues) he could avoid to have Win10 again.

Microsoft: Why the fuck do you force users like this? Are you so dumb to think, that everything on the users Systems is ready for Win10 ?!

Maybe there are compatibility issues with EXPENSIVE programs like Autodesk Inventor/3dSMax/Alias Wavefront and similar tools for PRODUCTIVE work?!

Hell, I could sue you for this, it’s so … so… ….. ….

To sum it up: You guys at Microsoft, who decided this shit – You are god damn assholes.

[whatever]

Heavy Metal / Hard Rock must see list

Posted on

To do:

  • Manowar

Done:

  • Blind Guardian (many times, with meet’n’greet!)
  • Iron Maiden (2008 Wacken)
  • Gamma Ray (2006 SB)
  • Helloween (200x SB)
  • Axxis (2008 Wacken)
  • Annihilator (2015 Wacken)
  • Motörhead (2014 Wacken) > RIP Lemmy! < :'(
  • Running Wild (2015 Wacken)
  • Grave Digger (2015-12-27 München/Backstage)
  • Europe (2015 Wacken)
  • Judas Priest (2015 Wacken)
  • In Flames (2015 Wacken)
  • Sabaton (2015 Wacken)
  • Accept (2014 Wacken)
  • HammerFall (2014 Wacken)
  • Avantasia (08/14 Wacken)
  • and many more on multiple festivals…

I’ll update this list more or less frequently … 🙂

[whatever]

Relocation to Germany

Posted on

Well, now it is done.

We were relocating to Germany, more exactly Swabia/Bavaria, much more exactly 30km east from Ulm/Neu-Ulm.

So I have a new address, new telephone numbers, but my website and email addresses will all stay the same. 🙂

New job is nice, the team is awesome and the work itself is … work, getting something done in different programming languages. Just how I like it. (C++/Qt, some C#, Batch-Scripts)

Greetings from Swabia!

[tek-nol-uh-jee]

OnePlusOne 16GB and the Soft Brick incident

Posted on

Would you believe it?

The OnePlusOne smartphone of my wife got a soft brick, all by it-self.

Software can have bugs, software is able to NOT work sometimes, but a crash so massive that the device wouldn’t even turn on again is to much for me. I am sorry.

Of course, I know how to flash an Android phone, I know how to write an app, basically. I can play around with such devices. But my wife DOES NOT. And I did not touch her device, not once. So this is a fault to be searched for at OnePlus.

Well ok, there are official guides from OnePlus for this particular incident.
Help my phone is not powering on

Besides that this “guide” is ridiculous, it just doesn’t work in this case.

So… Well, Google, or the search engine of your trust, is your friend. There are quite a few guides to “unbrick” your OPO from this stadium of inactivity.

And here hell breaks lose… Of course there’s nowhere a guide covering this problem for linux users, like I am. No, you have to use a MS Windows [wahtever version]. So I first had to dig out an dusted old Windows virtual machine to try to fix that problem.

There’s the next hell, Windows and drivers for whatever devices and additional the buggy Windows driver signing.

Final result: A Windows VM with a fuqing driver problem (Code 52) (even when I’m disabling driver signing…) and still a bricked phone. THANK YOU ONE PLUS!

Sons of ……..j0284z52z6ht89389043734875