<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 2013-12-02 5:55 PM, Kevin Korb
      <a class="moz-txt-link-rfc2396E" href="mailto:kmk@sanitarium.net"><kmk@sanitarium.net></a> wrote:<br>
      <blockquote type="cite">
        <pre wrap="">mount <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>dev/sda3 /mnt/gentoo<span class="moz-txt-tag">/</span></i>
</pre>
        <pre wrap="">You might have to specify more options here.  Check what they are
before you shut down.</pre>
      </blockquote>
      <br>
      Ok, thinking about this more... since booting off a liveCD means
      I'm not using the systems fstab, so I have to specify the
      filesystem too?<br>
      <br>
      / is ext3, so just use the same options as in fstab:<br>
      <br>
      mount -o noatime /dev/sda3 /mnt/gentoo/ ?<br>
      <br>
      Or do I need to specify the filesystem type?<br>
      <br>
      mount -t ext3 -o noatime /dev/sda3 /mnt/gentoo/ ?<br>
      <br>
      Hmmm... and any concerns about the filesystem for /usr changing
      from reiserfs to ext3?<br>
      <br>
    </div>
    <blockquote cite="mid:529D0FC4.2090609@sanitarium.net" type="cite">
      - --numeric-ids won't matter if rsync isn't networking but it is
      an
      important one to know about.</blockquote>
    <br>
    Someone on the gentoo list claimed that because when booting from a
    liveDVD you're essentially accessing the filesystem from 'another
    system', that it was (possibly very) important to use --numeric-ids,
    someone else then backed him up, and no one has said anything to the
    contrary, so... are you sure?<br>
    <br>
    Doesn't matter though, since it can't hurt anything, I'll always use
    it regardless... ;)<br>
    <br>
    <blockquote cite="mid:529D0FC4.2090609@sanitarium.net" type="cite">ext[34]
      can remember acl as a default mount option. I have no idea if
      reiserfs can do that or not and I recommend against using reiserfs
      at all.</blockquote>
    <br>
    I know, but this system was built over 8 years ago (when gentoo
    still recommended reiserfs), and runs like a champ, so no desire to
    'fix what ain't broke'... anyway, acls are not enabled on it, so no
    worries...<br>
    <br>
    ;)<br>
    <br>
    <blockquote type="cite">
      <pre wrap="">For Gentoo if you don't have USE=caps or USE=caps-ng set then you
probably don't have and xattrs in /usr</pre>
    </blockquote>
    <br>
    emerge --info shows neither:<br>
    <br>
    USE="3dnow acl amd64 bash-completion berkdb bzip2 cli cracklib crypt
    curl cxx dovecot-sasl dri fam fortran gd gdbm iconv mmx modules
    mudflap multilib ncurses nls nptl openmp pam pcre readline sasl
    session snmp sse sse2 ssl tcpd truetype unicode vhosts xml zlib"<br>
    <br>
    So, no -X...<br>
    <br>
    <blockquote type="cite">
      <pre wrap="">That command will not list symlinks.  Anything it lists is a hard link.</pre>
    </blockquote>
    <br>
    Weird, you're right... dunno how I confused myself there...<br>
    <br>
    <blockquote cite="mid:529D0FC4.2090609@sanitarium.net" type="cite">
      - -H is only hard links. Symbolic links are handled in -a.</blockquote>
    <br>
    Ok, good, thanks, definitely want -H......<br>
    <br>
    <blockquote cite="mid:529D0FC4.2090609@sanitarium.net" type="cite">
      <pre wrap="">If you want to watch the --progress output then -P is a perfectly fine
shortcut for it.  -p is --perms which is unrelated and part of -a.</pre>
    </blockquote>
    <br>
    Gotcha, thanks...<br>
    <br>
    <blockquote cite="mid:529D0FC4.2090609@sanitarium.net" type="cite">
      <blockquote type="cite">So, to be safe, use --numeric-ids...?
      </blockquote>
      <pre wrap="">
It won't hurt.  It is just extra typing but it could be considered to
be a good habit for when it does matter.</pre>
    </blockquote>
    <br>
    Understood... and since it can't hurt anything, but can prevent
    serious problems... :)<br>
    <br>
    <blockquote type="cite">
      <pre wrap="">One more thing I didn't mention before...

Since /usr is pretty static you could "prime the copy" by doing the
rsync initially to /usr.new while the system is running.  Then you
would really only have an mv and and fstab edit to do from your live
environment.  You could probably even do those right before rebooting
if you are careful.

Even on something more dynamic like /home you can still do an initial
copy then update it from the live environment.</pre>
    </blockquote>
    <br>
    Ok, so... if I wanted to do this, would I need to add anything to
    the rsync command on the subsequent run(s)?<br>
    <br>
    So, looks like the command I'll be using:<br>
    <br>
    rsync -avHP --numeric-ids /mnt/gentoo/oldusr/ /mnt/gentoo/usr/<br>
    <br>
    Thanks very much Kevin for your time and help...<br>
    <br>
    <div class="moz-signature">-- <br>
      <br>
      Best regards,<br>
      <br>
      <b><i>Charles</i></b></div>
  </body>
</html>