PCFreak Logo (c) Der PCFreak

Archive for the 'DOS' Category


Flash Seagate Barracuda Firmware with UNetbootin FreeDOS from USB stick 1

I recently had to flash my Seagate Barracuda drive’s firmware to the latest version. On the Seagate site I found this page to download a windows executable that will do the job. The only problem was, that the drive sits in my HP Microserver and I have no windows operating system there to boot and to run the windows executable to flash the drive.

As I found out, the updater will create some kind of boot loader (powered by Acronis) to flash the drive during the next (initiated by the installer) reboot.

I needed to flash a harddrive on a different machine, that is not able to execute the windows binary Barracuda12-ALL-CC49.EXE.

I extracted Barracuda12-ALL-CC49.EXE with Universal Extractor to the folder “Barracuda12-ALL-CC49″, where I found a lot of files.

The interesting one was config.xml. In it I found the following lines:

  <executable parameters=”7″>WAIT.COM</executable>
  <executable parameters=”">STXLOGO.RUN</executable>
  <executable parameters=”3″>WAIT.COM</executable>
  <executable parameters=”">SEAENUMA.EXE</executable>
  <executable parameters=”5″>WAIT.COM</executable>
  <executable parameters=”>nul”>CADEL.COM</executable>
  <executable parameters=”-s -x -b -v -a 20 -h PH-CC49.CFS”>FDL497A.EXE</executable>
  <executable parameters=”5″>WAIT.COM</executable>

so I created a batch file “flash.bat” with the following content from the above lines putting together the correct commands with the right parameters:

  CLS
  WAIT.COM 3
  SEAENUMA.EXE
  WAIT.COM 5
  CADEL.COM >NUL
  FDL497A.EXE -s -x -b -v -a 20 -h PH-CC49.CFS
  WAIT.COM 5

and saved it in the same folder as the extracted files. If you have a different drive model or firmware version you have to change the lines a little bit according to your needs.

After that I created a FreeDOS Boot-USB-Stick with UNetbootin and copied all the files to a folder “seagate” onto the USB stick.

I booted from the stick and selected the option “2. FreeDOS Safe Mode (don’t load any drivers)” which emulates a clean FreeDOS boot floppy emulation. At the prompt then I jumped to the C-Drive (which is the root of the USB stick) and executed the flash.bat.

  A:> C:
  CD seagate
  FLASH.BAT

The firmware update went fine. After that I powered off (do not reset) my machine and re powered it. Voila the firmware has been flashed successfully.

Dropbox Uploader für die Windows Shell – cmd.exe 0


Kürzlich musste ich auf der Kommandozeile (unter Windows) etwas in eine Dropbox laden. Ich fand jedoch nur ein BASH-Skript (Linux) von Andrea Fabrizi im Dropbox Wiki. Also musste ich mir selbst was schreiben. Einige Tage später hatte ich es geschafft, eine Batch-Datei zu basteln, die unter Zuhilfename einiger freier Tools (curl.exe|grep.exe|sed.exe|tr.exe|libeay32.dll|libiconv2.dll|libintl3.dll|libssl32.dll|pcre3.dll|regex2.dll) in der Lage ist einen Dropbox Upload aus einer cmd.exe heraus zu tätigen.

Ich habe das Skript im Dropbox Addon Wiki veröffentlicht, ihr könnt hier die Details nachlesen.

Kommandozeilen Gerätemanager devcon.exe für Windows 7 0

Ich habe unter Windows XP für bestimmte Aufgaben den bei Microsoft zum Download erhältlichen Kommandozeilen-Gerätemanager “devcon.exe” lieb gewonnen. Nun will ich natürlich unter Windows 7 nicht auf dessen Funktionalität verzichten, doch leider gibt es keinen direkten Download für Windows 7 x86 oder Windows 7 x64.
Es gibt dennoch eine Möglichkeit, legal an devcon.exe zu kommen.
Man lädt sich bei Microsoft den Windows Driver Kit Version 7.1.0 als ISO (GRMWDK_EN_7600_1.ISO) herunter und brennt (oder mounted) es.

Auf der CD befindet sich devcon.exe sowohl für ia64, x64 und x86, man muss sie nur finden!

Im Unterordner “WDK” auf der CD befinden sich die Dateien

  setuptools_x64fre_cab001.cab
  setuptools_x86fre_cab001.cab
  setuptools_ia64fre_cab001.cab

für die entsprechende Plattform (x64, x86 oder ia64). Diese CAB-Datei kann man mit handelsüblichen Programmen entpacken. Darin enthalten ist dann jeweils die Datei

  _devcon.exe_00000

Diese muss man umbenennen in

  devcon.exe

und schon hat man den Gerätemanager für die Kommandozeile auch unter Windows 7 (vmtl. auch Server 2008 R2 kompatibel) verfügbar.
Leider ist der Download der CD mit 619MB nicht gerade klein, aber was solls.

Tiny remote control for DOS 1

TinyClient in action

Ein Arbeitskollege benötigte unbedingt eine simple Remote-Control Lösung für DOS welche nicht viel Speicher verbraucht. Nachdem die Suche nach einem Telnet-Daemon für DOS ohne Erfolg war, stieß ich auf das nette Tool “Tiny Remote Control for DOS”.

Es besteht aus einem Host (Server) für den Novell-Stack oder PCTCP-Stack. Man bindet also zunächst den Host in die entsprechende DOS Konfiguration ein und startet dann den Client, welcher eine Java-Applikation ist. – Voila schon kann man sein entferntes DOS-System fernsteuern.

Das Programm arbeitet über UDP und ist sehr performant. Der Autor hat sich extrem viel Arbeit für den Client gemacht. Er hat aus einer alten Grafikkarte die Schriftarten- und Font-Tabelle extrahiert, damit das Abbild des Hosts wirklich 1:1 dargestellt werden konnte.

Wer das Programm schnell mal testen will, der kann sich einfach ein fertiges Floppy-Image für Virtual-PC von der Homepage herunterladen, damit kann man sofort einen funktionsfähigen Host starten, der per DHCP eine IP-Adresse bezieht. Dann noch schnell auf einem Java-GUI kompatiblen System ein “java -jar TinyClient.jar [ip.of.the.host] [passwort]” und schon gehts los.

Da ich Virtual-PC nicht verwende, habe ich das Floppy Image mit dem Treiber für VMWare angepasst und alles lief ebenfalls einwandfrei.

Link: Tiny remote control for DOS

Switch to our mobile site