<div dir="ltr">Hi,<br><br>Have an old laptop that needs upgrading.  Hard drive was reporting<br>some errors, so I bought a new one.  I was surprised that the<br>exact same manufacturer/model drive was the most economical<br>
option, as well as the most convenient.<br><br>The laptop did not come with XP install cds.  There is a <br>7.5 GB recovery partition at the end of the drive.  Which<br>has to be preserved.  It is base on an older vintage of MS Windows.<br>
<br>Dual boot Ubuntu (I forget the exact vintage) and Windows XP.<br>It was built in the days before ntfs-ng was stable so the <br>partitioning was extra complex.  I shrank the XP c: ntfs partition<br>to make room for the Ubuntu install.  Added partions for<br>
/boot, swap, /, and a fat32 filesystem to hold the shared data.<br><br>Have an ide to usb adapter, pulled the flakey drive, installed the<br>new drive in the laptop.  Hung the old drive on the usb adapter.<br>Could not figure out the incantations for creating the exact<br>
partition table, so I (slowly) copied the old drive to the new<br>using:   dd if=/dev/sda of=/dev/hda conv=noerror<br>to avoid hanging on the flakey sectors.  Took a few hours.<br><br>Used a gparted livecd to check and repair all the filesystems.<br>
<br>Put a spare drive in the ide to usb adapter and copied the<br>data partion for safe keeping using gparted.   Deleted<br>all the crufty old partions, expanded the ntfs C: partition<br>leaving an empty space between the C: partition and<br>
the "recovery" partition, to either install Hardy or Intrepid.<br><br>Booted the system, arghh.  Grub errors, need to <br>recreate a vanilla windows MBR defaulting to the<br>C: drive, with the option of loading from the recovery<br>
partition instead.  Still have the old drive to copy<br>stuff from.<br><br>Need to boot the recovery partition and reinstall<br>a factory default XP in the C: partition.<br><br>The install a new Ubuntu.<br><br>If all else fails I can go back to a dd copy of the<br>
whole old drive to the new drive, but that will <br>require hours.<br><br><br clear="all"><br>-- <br>Drew Einhorn<br>
</div>