On 04/05/2020 09:07 PM, Glenn Edwards wrote:
All,

I have EMC2 2.3.0 running on Ubuntu 8.04LTS and it is driving a desk-top
CNC machine.  I know, pretty old stuff.  But it is running fine and I am
starting a project that will last a month, or so.  I just noticed the
hard-drive is making noise/vibration and wonder if it will make it through.

I think it would be great if I could make an image of the disk and copy it
onto another.  That way I could swap it out quickly and finish the
project.  Is this doable with an old OS?  I have everything from WinXp to
Win10 and Ubuntu 8.04 to 16.04 running in the shop, so I can use another
computer to make and copy the disk images.  Any and all suggestions are
welcome!  Thanks.

So, is this a parallel ATA or SATA drive? Does it have another drive port on the motherboard? If so, get a new drive with the right interface, connect it and look up the procedure for cloning a drive on the net. There are a couple ways to do it. But, as long as the new drive is as large or larger than the old one, it is generally a single dd copy operation. You can generally copy a drive while the system is running, but it might be better to boot off the live CD and do the
copy from the live system.

This will copy the whole disk, including the partition table, boot block and all the partitions.

sudo dd if=/dev/sda of=/dev/sdb

There are some other options to copy just the boot and partition table, and then copy the file systems individually. If the file systems are mostly empty space, you may be able to speed it up by just copying the boot/part. table, and then creating new partitions and copying the file systems with cp. You will then need to run lilo or grub to refresh the pointers to the kernel and loader into the bootloader. I know how to do this, but this is
getting into guru territory.

Jon




_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to