[kwlug-disc] Cloning old PATA to SATA (old system)
Anton Avramov
lukav at lukav.com
Tue Aug 26 10:12:02 EDT 2025
After mounting to /mnt you should also do:
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
mount -o bind /dev /mnt/dev
and then chroot /mnt
After chroot you would do: grub-install /dev/sda
!!! notice you should refer the drive NOT the partition (the 1 in the
end should NOT be there)
Once you've chrooted you are like in the old system, so if you had
update-grub before it should still be there.
If that is an old system I'm guessing in /boot/grub/grub.cfg there are
still references to hda1 instead of sda1. That should be taken care of
by running update-grub and then you can verify by inspecting the file.
Another thing to note. Although your new system is 64bit, you would
still be running 32bit kernel and binaries. Switching to fully
utilizing 64bit involves switching the kernel and reinstalling all
packages witch could be done, but it is not that straight forward. If
you want to try it give me a should and I'll dig up my all script that
I used for a few hundred systems that would serve as a guide.
And of course BACKUP before :)
On Tue, 2025-08-26 at 09:46 -0400, Charles M wrote:
> I have a scenario where I need to back up an old system with a
> failing
> motherboard and old 32bit OS (ext3 file system) from a PATA to a SATA
> drive.
>
> I used clonezilla to clone the PATA drive to SATA and was successful
> in cloning the drive. The issue I'm running into is trying to get the
> SATA drive to boot in a new 64bit system.
>
> With the SATA drive in the "new system" I tried running a live
> Xubuntu, mounting the drive (there are only 2 partitions, / and swap,
> /dev/sda1, /dev/sda2 (previous /dev/hda1, /dev/hda2) /dev/sda 1 /mnt
> and then running chroot on /mnt.
>
> The grub on this system doesn't have some of the grub tools I'm used
> to grub-update, grub-mkconfig, only grub-install.
>
> I tried grub-install /dev/sda1 but it doesn't like the mapping
> (assuming it's still /dev/hda1 somewhere). I also tried with the
> --root-directory= option, and a few other things to no avail.
>
> Do I need to be actually in an old environment to do this, rather
> than
> the Xubuntu 24.04 I'm using? I was thinking chroot took care of
> that.
>
> Thanks all...
More information about the kwlug-disc
mailing list