Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
tech:ubuntu_replace_disk [16-Nov-2013 2:14pm] – created iantech:ubuntu_replace_disk [17-Nov-2013 1:24pm] – Corrected rsync source path and added error checking ian
Line 63: Line 63:
 Copy the data from the old disk to the new one using (omit the ''v'' from the options if you don't wish to see detailed output as the copy proceeds): Copy the data from the old disk to the new one using (omit the ''v'' from the options if you don't wish to see detailed output as the copy proceeds):
  
-<code>rsync -aAXv /srv /mnt</code>+<code>rsync -aAXv /srv/mnt 2> sync_errors.txt</code>
  
-<note tip>If you suspect any files may have changed during the copy process it is possible to simply re-run the above command to update them.  However, it is best to stop any processes that modify files on your data disk during the data transfer.</note>+Review the ''sync_errors.txt'' file (if any) created during the copy to check for any files that may not have copied completely.  This is easiest with: 
 + 
 +<code>less sync_errors.txt</code> 
 + 
 +<note tip>If you suspect any files may have changed during the copy process it is possible to simply re-run the rsync command to update them.  However, it is best to stop any processes that modify files on your data disk during the data transfer.</note>
  
 Now we must update ''/etc/fstab'' to mount the new disk to ''/srv'' during boot.  Ubuntu now uses UUIDs to mount disks during boot.  To locate these, run: Now we must update ''/etc/fstab'' to mount the new disk to ''/srv'' during boot.  Ubuntu now uses UUIDs to mount disks during boot.  To locate these, run: