We had an old CNC machine's hard-drive fail recently. The hard-drive is an old 1275MB IDE (Seagate) and there were defiantly bad sectors on it. I was able to image the contents of the drive onto a drive in my computer before it became completely unusable (I used DD, replacing all bad sectors w/ 0s). After running a couple chdsks, the SATA drive will boot off of the image. This is great, but there's one problem. The CNC machine old and requires IDE, I've attempted to copy the currently booting image off of the SATA drive and onto IDE drives numerous times in numerous ways and every time I do so the machines return that a boot device cannot be found.
Some other information:
The file system is fat32, running windows 98
The SATA drive is an 80gb drive
I have tried copying the image to three 20gb and two 80gb IDE drives
I have checked the jumper on the back of the IDE drives when using them
If anyone has any ideas, questions, suggestions, etc. please let me know.
P.S. I would just put a fresh install of win98 on the machine if i had the installation media (so that's out of the question). And if it comes to it, this is my last week working here, so I'll leave that to my co-worker.
EDIT: Also, I have tried using Clonezilla as well as straight up DD to copy the image to the IDE drives.
If you used /dev/hdax (where x is an integer) as the
if=
argument todd
then you copied a partition (volume) as opposed to the entire drive. In either case, it sounds like you might just need to enable the boot flag on the partition using fdisk.Check the Hard Disk controller in the old system to make sure the problem isn't there.
The tool http://www.supergrubdisk.org/super-grub-disk/ can boot or repair the new disk also. Make sure your restored partition is the first primary, as small as the original one. You can check this with GParted from clonezilla, or PMagic boot CD. They also have a boot option for supergrub disk. Make sure the MBR type is set to DOS.
If the new IDE drive is not to large for the BIOS to 'see' try to boot from a floppy disk. Try the Win98 image disk from http://www.bootdisk.com/bootdisk.htm and access the hard disk. A simple fdisk /mbr may be all it needs.
Long shot: What is your cnc machine BIOS date? If very old it may not recognize larger IDE disks. The disk company may have an 'overlay' util that makes the disk load and fake out the bios.
Good luck on the new job! Let us and your replacement know how this works out!
One other option may be to go with a hardware solution. There are devices that let you to connect a SATA drive to an PATA (IDE) port. If that will let you see the SATA drive from the CNC machine you might be able to boot from it.