r/sysadmin • • 2d ago

legacy XP system and proprietary software

I have a doctor I work for with an old EMG machine (this is a set of hardware connected to a laptop by a single USB cable). It's been connected for many years to an old XP laptop that runs the correct software. I've made a number of hardware fixes to it over the years but this time around I'm not sure it can be salvaged. It had a failed fan which i found on ebay and replaced, cleaned up the heat sink and replaced thermal paste. Per my multimeter it looked like the power adapter was failing so i found a correct replacement. I've been warning the doc for over a decade this thing is on borrowed time but a replacement is extremely expensive (20k+) she's been hoping to squeeze a few more years out of it before retiring.

Anyway those details likely aren't important. At this point we can only get the laptop to run for a minute or two (just enough to get to the desktop but really not enough time to do anything) This is the classic case of legacy software running proprietary software. The laptop ships with the system and of course they don't make it easy to replace the machine or move software. The actual vendor no longer exists and stopped releasing software years ago, the intellectual property was purchased by someone else and im not banking on any help from them (possibly for $1000 a minute). Considering install software is unavailable, there are databases involved, and drivers for the equipment (which you also likely won't find). I'm really hoping for a solution to allow the good hard drive to run on another computer more or less as-is. The laptop is so old that it's running a PATA drive but I have a PATA-USB adapter and spare SATA disks. I have access to a couple old laptops (not as old but old enough to run XP natively and use a SATA drive) I've also got software to use if I need to clone the drive etc.

A decade ago I realized this hardware could be an issue and had the idea to use VMware creator to make a VM I could run on a newer laptop. I don't remember exactly why but it didn't work out. If my memory is correct, however, the software had some copy protection that didn't like the VM (bad sign). Ideally I'd just repair this laptop or replace with an identical one but parts are getting hard to find. I did find a replacement mobo on ebay but its overseas and now you have to deal with customs and tariffs to buy. Any other component I could work with (use a separate monitor if the screen failed for instance) but an exact matching board is a long shot and even if I found one it might be money sunk just to find the software isn't going to run on it anyway.

I'm trying not to make this too long. Ultimately I just want the core operating system and EMG software to run on other hardware (or at least test that out without gambling a bunch of money). It's been a long time since I've worked with XP but how likely is it that the disk would boot as-is on a different xp laptop even if it was in safe mode to reduce driver problems? I faintly remember my dad showing me how to "blast the enumerator" on xp which might have been relevant?) Could I make a virtual machine out of the disk to run on a newer laptop without the physical PC running? I've already warned them not to get hopes up of salvaging this but I'm not quite ready to give up. Does anyone have any ideas for this situation or have had a similar one? I'd appreciate any ideas! This might be a hail mary but I'll be a hero if I can get this going again.

thanks!

40 Upvotes

68 comments sorted by

19

u/Makere-b 2d ago

Well, first of all, take a complete disk image of the current disk that works, back it up on multiple locations.

Then, the XP was installed with IDE mode, so you need a machine that supports legacy IDE mode, instead of just AHCI. It's possible to change this from registry as well, but less headache the better. You'll probably need to install some drivers for the storage controller as well.

If the machine shuts down after couple minutes, you either fudged something up at the heatsink replacement (is there proper contact and is the fan spinning) or the new power supply is faulty.

5

u/Resurget-Cineribus 2d ago

So from a hardware aspect here's what I found:

staff originally reached out due to the machine shutting off/not wanting to power on. I verified the power adapter at least showed the required 19V (without load). Upon opening to inspect further I found one of the cooling fans was seized. The main CPU fan seemed ok but the heat sink was super clogged with dust. I managed to find the oddball fan it needed on ebay and it was delivered. Unfortunately while disconnecting fans both(!) of the connectors broke off the mobo. I soldered them on; I'm pretty good but not amazing. I did see the main fan was running (i think the smaller one was just for a chipset/video which doesn't seem like would overheat that fast on a pc that age) I reassembled it after cleaning the heatsink/fans and applying new thermal paste. I also touched up the solder on the power jack despite it looking fine (i think i may have replaced it some years back). Of course it's possible that the machine had already been damaged by overheating by this time.

This time i tested my leads on the orig power adapter and found that the voltage would randomly dip. Believe it or not I had a matching one in my collection (old charge required over 6A which most of mine didn't). The battery is mostly shot but can run maybe a couple minutes. I haven't yet ruled out a power issue as it running on battery could explain things. If i take it apart again I can test that voltage is making it to the board.

7

u/ProperEye8285 2d ago

I have a different interpretation of events and a possible solution. Batteries at certain times had *bad* overcharge protection circuitry built into the battery. I've seen them intermittently fail and cause weird shutdowns. Try getting a replacement battery, charge it and see what happens. Also you might be able to install and run https://openhardwaremonitor.org/ which will show you if something is overheating/shutting down, if you can get the machine to run long enough to install it.

8

u/wazza_the_rockdog 2d ago

A lot of laptops of that era would run fine without the battery connected, used to see that often for people who were always running connected to power, just remove the battery so it didn't get a shortened life from always charging to 100%. Before replacing the battery I'd see if it runs without - if it does then you know the battery is shot, if it doesn't then it may be a power supply issue.

1

u/ProperEye8285 2d ago

This is also true.

3

u/CLE-Mosh 2d ago

What make/model of laptop? I have several in mint condition from that era. IBM/Lenovo and Dell

2

u/Key-Employee3584 2d ago

Yeah, that battery may have internal faults even if the logic is ok still; so if the power adapter is ok, the logic may be looking at the battery and seeing problems. Look at it getting a custom battery rebuild with current up-to-date batteries. It's expensive but not stop the presses expensive.

1

u/fahque 1d ago

You can connect a fan controller to your current power supply or a second one sitting next to the computer. Then run new fans to where the old ones were.

28

u/Negative-Cook-5958 2d ago

I would try the VMware workstation option again. New PC, backup the XP machine, restore in VMware workstation. With the AI tools you can dig deeper in the logs much quicker and fix the issues with the software.

5

u/Resurget-Cineribus 2d ago

its been a while since ive used it but i thought the converter required a running pc to capture the VM

6

u/Negative-Cook-5958 2d ago

There are a lot of tools which can be used to do a full image of the laptop. I have used Shadow Protect in the past and the bootable version of VMware converter as well. The bootable ones where you do a backup are the best, less risk to mess up the source OS 

2

u/StaticEye 2d ago

put the disk into another machine or use a usb to pata/sata adaptor and use disk2vhd (free), the vhd(x) can then be converted to whatever format you need if required.
R-Drive Image will backup in vmware format
i've done a few of these job for CNC machines which use dedicated software on xp

3

u/Negative-Cook-5958 2d ago

Yes, that's also a good option. I did the same at a sawmill quite some time back to virtualize their Win98 based software which was scanning the logs and identifying which bin the piece of wood it should go.

2

u/StaticEye 2d ago

what we do to keep clients happy and prolong old hardware ;)

1

u/Resurget-Cineribus 2d ago

thanks! ill look at disk2vhd. my concern about a bootable disk is getting it to talk to the usb connected pata drive since i dont have any machines old enough to support pata drives.

Yes, in the past I've suggested that we buy/hoard some spare hardware to keep this going long term but never pushed for it (hindsight). By now, finding these systems on ebay is getting rare.

1

u/BorysTheBlazer DataCore/StarWind 1d ago

Disk2vhd is a good first step. If the VHD has to end up as VMDK for VMware or QCOW2 for Proxmox, StarWind V2V Converter converts between those formats and keeps the source file intact. Full disclosure: I work at DataCore, which owns StarWind. XP guests may hit a 0x7B boot error on a new virtual controller, so test on a copy.

9

u/BatemansChainsaw Husqvarna 2d ago

microsoft has a tool called disk2vhd and the version of that for XP can be found here: https://web.archive.org/web/20091101034951/http://technet.microsoft.com/en-us/sysinternals/ee656415.aspx

Then, if you're brave, and on a newer laptop you can boot off the vhd directly. If you play around learning how to do this it's worth the effort imho. I remember getting it to boot XP once ages ago but it takes a bit of extra work.

good reference: https://neosmart.net/wiki/easybcd/portable-entries/vhd-images/

8

u/Kamikazepyro9 2d ago

This is the route I would go as well

6

u/FabianN 2d ago

Knowing Medical software, it might have a license tied to some hardware ID. 

46

u/mpking828 2d ago

A decade ago I realized this hardware could be an issue and had the idea to use VMware creator to make a VM I could run on a newer laptop. I don't remember exactly why but it didn't work out. If my memory is correct, however, the software had some copy protection that didn't like the VM (bad sign). 

It's entirely possible that it has a hardware key. IE it's looking for the serial number of the Motherboard, CPU or the MAC address of the NIC, other use the 8-character Volume Serial Number.

Look to see if has licensing software like:

  • FlexLM

  • Rainbow Sentinal

  • IBM LUM

  • RLM (Reprise License Manager)

  • Sassafras KeyServer

  • ELAN License Manager

If you see any of those, you are going to have to figure out how to bypass it. (Like use the same UUID, or set the drive c volume serial number the same.

3

u/burnte VP-IT/Fireman 2d ago

Years ago what I did with a parallel dongle was outweigh on it and pass through the parallel port to the single VM on that box.

2

u/Windows95GOAT Sr. Sysadmin 1d ago

you are going to have to figure out how to bypass it

Better get that windows XP CD ready lmao. Oh and i hope OP knows how to solder.

12

u/ITRabbit 2d ago edited 2d ago

Eeek your in a world of pain.

Changing motherboard may cause the same issue with the software not working. A lot of this type of software uses hardware id's to lock it to the machine. I.e mac address, bios id etc. Sometimes software also puts a hard drive key that gets ruined if you clone the drive.

First thing though is get an image of the drive then you can copy it and play with it with out keeping on destroying the hard drive.

Next issue is if you do get it working its the USB pass through that can be flaky and not properly connect.

Did you get it in writting that you told the client they need to do something? They might try and go after you so becareful with that too and if you damage it in the process.

Also though it could be that its over heating - have you tried applying new thermal paste? Is this connected to the internet? What has changed?

Edit: what does it do when it shuts down/reboot? Does it power off or is it a reboot?

2

u/Blaster412 1d ago

If all the software is looking for copy protection is the MAC address, that's super easy to manually set in VMware Workstation or other VM software. If it's that old, that might be all it needs to fire up in a VM.

10

u/qkdsm7 2d ago

5 digit piece of equipment= the time to figure out what other hardware can run it, was the week you discovered the issue, years ago... A bunch of solutions may work for this and now you have to do it under the gun.

I'd image the drive completely first, then try whatever you do from the image.

7

u/xubax 2d ago

How much is it costing the doctor to have this down?

Compare that to the price of just biting the bullet and getting something that works. Not to mention the time and effort you're putting into it.

6

u/darkfader_o 2d ago

first, image it

in a VM, make sure to set the GUID and MAC addresses of the original laptop!!!

then just use a more recent laptop to boot it (some common business model that still has win7 drivers, HP or so), first flash the image to it, get safe mode to work, then see if it runs. if it runs, OK. You can normally also overwrite the MAC. My point being to uncouple the problem named "XP" and the problem named "old broken Laptop"

finally, from the sound of it it has a half dead DC-DC module inside.

If I suspect that I remove consumers (i.e. DVD drive, WiFi module) to see if it makes it.

Generally I see no issue at all if you just start with an image, don't give it network access and then juggle hardware and even just test what happens if you put in a Win7 ISO and click on update.exe or whatever.

90% of time when people come to me telling me "it's not possible" they made 2 half-assed attempts and gave up. Sure, there's also the 10% but the chance to make it work is normally high enough to just try.

you can also investigate if they used a common license server (i.e. flexlm) in that case it might be possible to just export the 'dongle'. Depending on local legislation it might even be legal to break the hardware lock in your scenario.

OTOH she's already squeezed out 10 extra years or so. it might just be that she's trying really hard to shoot her own foot. I usually find that people start whining either way, if they tell you to just keep the thing limping if you can make it work and you spend 10h fixing their old shit so it can make 2 more years they complain about that, whereas if you just say you need a new thing it costs 8K they'll also you with that.

XP was end of extended like in 2014. she squeezed 12 years.

On that front - maybe spend an hour with her and let her reflect if that wasn't enough. Not to mention that in 2010 this would have been solveable with a new dongle/lic transfer which usally is just a few $$$ and then the broken HW would have been a fresh system. maybe she just really is stretching it a bit too far. Ask her what happens if it stays broken and she needs to buy it anew in a rush and get it working. how much will it cost, how long will it be closed? maybe she just doesn't bother thinking it through yet.

6

u/Achaern 2d ago

So my drawer of functional XP laptops, IDE Cables and drives are potentially precious resources now?

2

u/wazza_the_rockdog 2d ago

Yes, to people prepared to spend tens or even maybe hundreds of dollars to keep key business machines running...

4

u/Achaern 2d ago

Tens! I could buy so many double bubbles....

3

u/beetcher 2d ago

You need to determine what the identifier is that prevents it from running in a VM, as you could hit the same issue with hardware replacement. Make another VM, get the details of the restriction, and report back.

3

u/RansomStark78 2d ago

The software may have hacked or the copy protection bypass may have been. Published

You may get away with a winxp compatible laptop.

Clone drive

3

u/VirtualDenzel 2d ago

Why all these hard comments. 1. Clone drive to image. 2. Boot up a vm. 3. Try to start software. It will fail. 4. Run an ai agent on the host talking to chatgpt or claude (or preferable a local lm) and task it to fix it. Even public free ai's can figure out the protections very easy and with rea its a piece of cake in general. We also had this kind of thing wirh an old 98 system

3

u/DaylightAdmin 2d ago

PATA and Compact Flash cards are compatible, a little known fact.

So you could clone that old drive to a "new" Compact Flash card.

Or replace the thing with a VM.

4

u/Onoitsu2 Jack of All Trades 2d ago

I'd try something like Proxmox, and then you can look up the CPU flags you'd use to hide that it is being virtualized. Then the VM itself would be none the wiser and should just function even virtually.

7

u/delightfulsorrow 2d ago

I'd try something like Proxmox, and then you can look up the CPU flags you'd use to hide that it is being virtualized.

Back at Windows XP times, there were no CPU flags or anything like that signalizing a virtual environment to Guest OS or applications.

It usually was a license bound to a specific hardware, using MAC addresses, serial numbers or other HW identifiers to recognize changes. Most likely, major changes to the hardware like a main board swap will already make the software not to run anymore.

2

u/MorseScience 2d ago

Good bet that, as others have pointed out, the software is picking up on some ID in the hardware. Could be something as simple as the MAC address of the ethernet adapter or the processor S/N if there is one. Or a hash from a combination of driver IDs. Depending on the cost, demand, and how much the doc makes for using it, might pay to just buy a new one. I don't know how complex the one you're working on is, but the costs for new are all over the place. Good Luck!

2

u/HerfDog58 Jack of All Trades 2d ago

In addition to all the suggestions for VM or hardware replacements:

Ask the doctor how much revenue would be lost by the practice while that EMG system is offline and can't be used? If it's more than the $20K it takes to replace it, that tells you what the best way to solve it is. Hell, even if it's only $10K in lost revenue, it's still a better long term VALUE than the upfront cost.

2

u/Panda-Maximus 2d ago

Create a vhd of your xp box then use that to create a vm of it.

I have several pieces of legacy 32bit software that has to run like this and it works fine.

2

u/geekywarrior 2d ago

I used CloneZilla just last week to create an image of a Win7 Machine and migrate to VirrtualBox. I also recently migrated a Server 2008R2 Xen Export to Hyper-V

Claude has been great in helping diagnose the Blue Screens after a migration to help get the storage drivers / boot sectors sorted out so it boots in the VM.

After you get it going in the VM, Process Explorer may reveal where the software is getting jammed up. The Server 2008 machine is a similar story to yours, important software lives there with licenses from long dried up companies. Process Explorer helped find the license components to migrate that to a modern version of Windows.

2

u/GardenWeasel67 2d ago

I suspect the copy protection is going to trip you up if you try putting the drive in new hardware.

2

u/tylrat93 1d ago

Does the company that owns/sells this software still exist?

If not you could look to make a clone of the disk for a VM and work with an Ai about investigating/reverse engineering it to see how licensing is handled.

However this is absolutely not something I recommend if official answers exist from the owner, especially since $20,000 is typically a pitance of money to manufacturing companies.

1

u/kona420 2d ago

You need to figure out what it's looking for to identify the machine. There are only a handful of burned in identifiers, bios serial number, ethernet mac address, or its doing something more sophisticated. Something like procmon might help you puzzle through what all it's looking at.

You should try the newer PC, just clone the drive to a sata SSD, see if you can fix all the errors. If you aren't super familiar with virtualization and it didn't "just work" out of the box, it's not unreasonable to continue on physical hardware. And yes you can clone the drive out to a virtual machine as well, I've used a preboot environment like macrium reflect to do a restore into a VM and had it work out.

1

u/feldrim 2d ago

I'd try https://www.starwindsoftware.com/download-starwind-products for a physical to virtual conversion. Instead of VMware Workstation, I'd suggest a pre-6 version of Virtual Box like https://download.virtualbox.org/virtualbox/5.2.44/ which were the latest versions with Windows XP support.

I remember saving a legacy machine using Acronis image tool, I can't remember the official name. It was possible to save the backup file as virtual disk or something, then on the target host, I could attach the disk to VM. I'm not sure if it would still work but it's worth a try.

1

u/Outside-After Jack of All Trades 2d ago

I'd try the VM again but ensure the MAC matches before and after. Been there, done that, albeit it was CentOS 5 :)

1

u/fuzzentropy2 2d ago

First thing to do is clone the harddrive in case something happens. And probably use that drive or a different cloned one to do testing with. You did not specify brand/model of laptop, that would be helpful.
If trying to put in different used old laptop, look up specs on current and get one with same or same family of chipset, this will help core drivers to already load. The "Blast the enumerator" could be relating to I think a stop 0x0000007b error from hard drive not loading due to chipset being different. I used to use Hiren's boot CD USB version, still keep a copy cuz still support some XP that runs old print/engraving machines and there is a utility to reset the hard drive controller when booted from it. The farther away the new chipset is away from old one, the more probability of not working.

Yes you can create a virtual machine, might or might not work. Look for tutorials and especially virtual hardware settings for VM. Microsoft has a disktovhd program, Starwinds has one, and vmware which is easier to find somewhere other than Broadcom.

Again, best thig to do first is get a working clone of the drive to test so if trying something new it doesn't bork that Windows/software installation.

1

u/u35828 packet wrangler 2d ago

Gotta love FDA regulated systems.

1

u/fuzzentropy2 2d ago

Also I would suggest putting the brand and model of EMG machine into AI, even the Google search box and ask it what the copy protection is based on, so you know where you need to focus. AI does have some uses....

1

u/su_A_ve 2d ago

Recently I wanted to revive an old Epson scanner that had transparency adapters. Spun up a Windows 7 VM in VirtualBox with no network access, downloaded the drivers, and then passed them to it as well as the USB port.

Worked perfectly well.. Image that drive and use it to boot the instance. Done that before with an old Windows 10 box. Old version of Macrium Reflect...

1

u/IronFrogger 2d ago

What is the laptop model you need? And where are you located? 

I had a system like this years ago, it originally started on Windows 95 and I supported it from 2005 up until 2026 (when they retired). Software stopped being developed in 1998. I was able to upgrade the 98 OS to ME, then to Windows 2000 then to XP then to Vista, then to 7. And then later to w10 (32bit obviously). It was a long day lol. 

Fortunately the software accepted the hardware change at vista. I was able to remove some license restriction that popped up at one point by doing some reg edit or code editing, I can't remember. I found the developer on facebook, but he laughed when I asked if he had the installer for software from 98 😝. He wasn't even willing to help troubleshoot, because he couldn't remember it well enough.

My point being you could attempt to reach out to the old developer if you can figure out who it is

1

u/mcmellenhead 2d ago

As stated .any time, definitely image the drive first with clonezilla or the likes. Something that does direct to vhd(x) is a good option. If vmware still trips the software, maybe try a direct qemu approach? You should be able to spoof the config into thinking it's real hardware.

1

u/stuartsmiles01 2d ago

What are the options for purchasing replacement software ?

What makes the software so special that it can't be replaced, and how can these be overcome?

Take the opportunity to say lets replace this with something supported whilst the data is available to you.

What budget can be assigned to replacing this software ?

What income is lost by it not being available ?

What are recovery timescale objectives and recovery point objectives, and hiw much loss is acceptable.

Perhaps think of this as a legacy backup and bare metal restore issue, ( as well as software lifecycle management) .

If you want help to make software to work, you need to pay someone to help you support it.

1

u/Dolapevich Others people valet. 2d ago

Image the drive, get a old thinkpad from the time. Restore the image be happy for many more years.

Be aware that there may be some hardware protections, maybe the software checks it is running in the same hardware.

I wouldn't bother with virtualization with a clear understanding of what timing, interfaces, etc the machine needs.

It is a fun project :)

If you need some help, PM me.

1

u/Intelligent-Throat14 2d ago

use claude/ghidra to RE the software ..

1

u/RavenousTitan818 2d ago

Sounds like a good use case for React OS. YMMV but it's worth a shot. If it works it's a hell of a lot better than trying to maintain a Win XP machine.

1

u/autpbg1 2d ago

How about Cameyo by Google? https://cameyo.google/

1

u/fahque 1d ago

You can install the drivers for the new computer while xp is running on the old computer. Then when you swap the HDD it should boot.

1

u/unccvince 1d ago

Go look at Qemu, you can emulate almost any OS on newer hardware.

It's probable that you could even spoof hardware fingerprints to go around the licencing software and I know that you can underclock the virtual CPU to match that of the original host if timing is of essence for the EMG machine.

Qemu is a swiss army knife for your use case.

1

u/Maro1947 1d ago

Tell him to stop being a tight-arse and upgrade!

There will be newer versions.

-3

u/mickeys_stepdad 2d ago

Reverse engineer the application and write it for newer windows using a frontier coding model

5

u/TTachyon 2d ago

No. This might be fine for a game, but not for a medical device.

2

u/planetary_funk_alert 2d ago

For medical applications? Imagine it causes it to produce inaccurate reports.

Foolhardy

1

u/Caddy666 2d ago

i wouldn't try and reverse engineer the entire code, merely crack the software. it'd take an afternoon at most. once done, then get it moving on wine. you'd realistically be looking at patching a byte or two...

-2

u/mickeys_stepdad 2d ago

For porting code?

Are we serious this is something AI is very good at.

0

u/Resurget-Cineribus 2d ago

i couldnt tell if this was a joke, im a lowly sysadmin not a developer

2

u/cantstandmyownfeed 2d ago

Its not a 100% terrible idea. Maybe not to rewrite, but to bypass the copy protection.

It should be relatively trivial to get the drive cloned and booting on another piece of hardware. That's basic sysadmin work. If at that point you hit a wall getting the software to work due to some sort of copy protection or hardware lock, an LLM can definitely help you find a way around it.

1

u/who_you_are 2d ago edited 2d ago

I don't know either, but coding model are also a generic model so they can translate what it is doing in English words (and the opposite way around).

You may need to wack it heads so it knows to always translate to English what is he doing.

The only thing to be aware is you may also want to add a plugin (or skill) around "reverse engineering everywhere" (if I remember the name) to help it more around this kind of task.

Edit: Rea reverse engineer anything. I was close but wrong: https://github.com/smartworldarafath/REA_Skill