[kwlug-disc] Cloning old PATA to SATA (old system)

William Park opengeometry at yahoo.ca
Tue Aug 26 11:41:29 EDT 2025


If I remember,

   - grub-install takes the whole drive /dev/sda not a partition /dev/sda1.

   - Ubuntu or Fedora (not sure which) has "rescue" entry or something 
in the boot menu.  It does bunch of "bind" mount, and put you in 
"chroot" environment.  From there, you can run grub-install.

   - Doing it manually,
	for i in /proc /sys /dev ... ; do
	    mount -o bind $i /mnt/$i
	done
	chroot /mnt

Clonezilla probably didn't clone, sector by sector.  If it did, then 
everything would be identical as old layout.  And, all you have to do is 
change "hda*" to "sda*".


On 2025-08-26 09:46, 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