<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>If you have (proper!) references to filesystems/partitions by
      UUID in grub and fstab, dd should work for you.<br>
      I would expect modern grub to do this already.<br>
      All you need to do is make sure fstab is using UUIDs.</p>
    <p>I have dd'd running systems to new disks.<br>
      So long as you are not updating packages/config during the
      transfer, the new image should run just fine.</p>
    <p>If the new drive image has substantial low level configuration
      changes (eg. BIOS vs EFI boot), you can <br>
      wipe out / on the new image and rsync in the existing root
      filesystem.<br>
      If you take special care to fix up the copied OS to match the new
      configuration (eg. grub-efi-amd64 package), things will work there
      as well.</p>
    <p>Friends, please do not use hardware RAID cards!<br>
    </p>
    <div class="moz-cite-prefix">On 4/26/20 12:45 PM, Federer Fanatic
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAAwvWVq6RrgUcPP-8-=o8VJciX=s0fM709LDp+ku=ReOc2ce3A@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">cp -a. Booting from a usb?<br clear="all">
        <div>
          <div dir="ltr" class="gmail_signature"
            data-smartmail="gmail_signature"><br>
            <br>
            <br>
--------------------------------------------------------------<br>
             Roger Federer Fanatic Extraordinaire :-)</div>
        </div>
        <br>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Sun, Apr 26, 2020 at 11:41
          AM Mikalai Birukou via kwlug-disc <<a
            href="mailto:kwlug-disc@kwlug.org" moz-do-not-send="true">kwlug-disc@kwlug.org</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I
          have a system with two drives, and I want to move linux
          (ubuntu here) <br>
          from one drive to another.<br>
          <br>
          <br>
          Context:<br>
          <br>
            - Original drive is a fixture created by RAID card. Card
          messes up <br>
          configurations every several weeks, so a want to use a
          different drive <br>
          on a different physical connection (yes, sata slot from DVD in
          this old <br>
          IBM System X server :) ).<br>
          <br>
            - I suspect that dd copy won't work, cause new drive (ssd)
          doesn't go <br>
          in place of the original one. It goes into a new location, and
          <br>
          grub+fstab settings would be different.<br>
          <br>
            - dd takes time, and I want to keep machine operational
          during the move.<br>
          <br>
            - I already installed ubuntu on new drive, hoping to
          reconstruct <br>
          original file tree in a new place by copying on filesystem
          level (vs <br>
          low-level dd).<br>
          <br>
          <br>
          Question:<br>
          <br>
            - How can you do this copying of original system onto new
          system?<br>
          <br>
            - Should it by rsync or tar pack& unpack? What flags to
          use? Is tar <br>
          complain about skipping socket is safe in system backup for
          future recovery.<br>
          <br>
            - Can there be a catch in this approach?<br>
          <br>
          <br>
          Thank you.<br>
          <br>
          <br>
          _______________________________________________<br>
          kwlug-disc mailing list<br>
          <a href="mailto:kwlug-disc@kwlug.org" target="_blank"
            moz-do-not-send="true">kwlug-disc@kwlug.org</a><br>
          <a
            href="https://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
kwlug-disc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:kwlug-disc@kwlug.org">kwlug-disc@kwlug.org</a>
<a class="moz-txt-link-freetext" href="https://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org">https://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a>
</pre>
    </blockquote>
  </body>
</html>