How to dupe a file system? - Unix

This is a discussion on How to dupe a file system? - Unix ; I want to dupe an entire drive. Could someone advise me as to which command is best suited for this task? Please include the switches I need to make an exact duplicate of a file system. TIA, jim -- _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ ...

+ Reply to Thread
Results 1 to 11 of 11

Thread: How to dupe a file system?

  1. How to dupe a file system?

    I want to dupe an entire drive. Could someone advise me as to which command
    is best suited for this task? Please include the switches I need to make an
    exact duplicate of a file system.

    TIA,
    jim
    --
    _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
    _/ Everything should be made as simple as possible, but not simpler.
    _/ -- Albert Einstein
    _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


  2. Re: How to dupe a file system?

    On Thu, 04 Aug 2005 19:25:26 GMT, Jim Showalter wrote:
    > I want to dupe an entire drive. Could someone advise me as to which command
    > is best suited for this task? Please include the switches I need to make an
    > exact duplicate of a file system.


    What type of system? What type of filesystem? What are you _actually_
    trying to accomplish, and on what kind of computer and OS?

  3. Re: How to dupe a file system?

    On Thu, 04 Aug 2005 19:29:48 +0000, Dave Hinz wrote:

    >
    > What type of system? What type of filesystem? What are you _actually_
    > trying to accomplish, and on what kind of computer and OS?


    Sorry, just didn't think those details were relevent as long as we're
    talking Unix.

    System: Home desktop PC

    File System: ReiserFS

    Object: migrate to a larger disk

    Computer: Intel (well, actually an AMD Sempron)

    Operating System: SuSE Linux


    jim
    --
    _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
    _/ Everything should be made as simple as possible, but not simpler.
    _/ -- Albert Einstein
    _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


  4. Re: How to dupe a file system?

    On Thu, 04 Aug 2005 19:57:38 GMT, Jim Showalter wrote:
    > On Thu, 04 Aug 2005 19:29:48 +0000, Dave Hinz wrote:
    >
    >>
    >> What type of system? What type of filesystem? What are you _actually_
    >> trying to accomplish, and on what kind of computer and OS?

    >
    > Sorry, just didn't think those details were relevent as long as we're
    > talking Unix.


    Well then; man ufsdump.


  5. Re: How to dupe a file system?

    On Thu, 04 Aug 2005 20:05:48 +0000, Dave Hinz wrote:
    >
    > Well then; man ufsdump.


    ufsdump is not on my system but Google tells me it's used in Solaris. I
    guess I could download it, but it seems to be over-kill for this one-time
    use. Can't I accomplish this with either cp, tar, dd or cpio?

    jim
    --
    _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
    _/ Everything should be made as simple as possible, but not simpler.
    _/ -- Albert Einstein
    _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


  6. Re: How to dupe a file system?

    Jim Showalter wrote:
    > Dave Hinz wrote:
    >
    > > What type of system? What type of filesystem? What are you _actually_
    > > trying to accomplish, and on what kind of computer and OS?

    >
    > Sorry, just didn't think those details were relevent as long as we're
    > talking Unix.


    Very relevant because there are many different answers.

    > File System: ReiserFS
    >
    > Object: migrate to a larger disk


    Different size drive means you can't do the copy at the block
    level so you need to use a filesystem-aware tool. Dump and
    restore.

    > Computer: Intel (well, actually an AMD Sempron)
    >
    > Operating System: SuSE Linux


    You're moving the data but not the boot, right? There's far more
    involved in moving boot.


  7. Re: How to dupe a file system?

    "Doug Freyburger" writes:

    > Jim Showalter wrote:
    >> Dave Hinz wrote:
    >>
    >> > What type of system? What type of filesystem? What are you _actually_
    >> > trying to accomplish, and on what kind of computer and OS?

    >>
    >> Sorry, just didn't think those details were relevent as long as we're
    >> talking Unix.

    >
    > Very relevant because there are many different answers.
    >
    >> File System: ReiserFS
    >>
    >> Object: migrate to a larger disk

    >
    > Different size drive means you can't do the copy at the block
    > level so you need to use a filesystem-aware tool. Dump and
    > restore.


    Except that there is no dump for reiserfs. According to
    http://www.namesys.com/faq.html#dumprestoretar

    Can I use "dump" and "restore" with ReiserFS? Any caveats?

    No. dump uses knowledge of the internal structure of ext2 and works
    together with restore, which also uses ext2 specific knowledge, to back
    up ext2 files. dump and restore are specific to ext2 and will not work
    with ReiserFS.

    To back up ReiserFS files use tar, which is universal and can be
    applied to almost any reasonable Linux filesystem.

    It is well known among system administrators that dump is more complete
    than unix tar, and that there is quite a list of things that unix tar
    will fail to properly backup. This is not true of Gnu tar, which is
    quite complete.


    Bye, Dragan

    --
    Dragan Cvetkovic,

    To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer

    !!! Sender/From address is bogus. Use reply-to one !!!

  8. Re: How to dupe a file system?

    On Thu, 04 Aug 2005 17:09:37 -0400, Dragan Cvetkovic wrote:
    >
    > To back up ReiserFS files use tar, which is universal and can be
    > applied to almost any reasonable Linux filesystem.
    >
    > It is well known among system administrators that dump is more complete
    > than unix tar, and that there is quite a list of things that unix tar
    > will fail to properly backup. This is not true of Gnu tar, which is
    > quite complete.
    >
    >
    > Bye, Dragan


    So Gnu tar will do it Ok then? Well, it's quick, what have I got to loose?

    jim
    --
    _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
    _/ Everything should be made as simple as possible, but not simpler.
    _/ -- Albert Einstein
    _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


  9. Re: How to dupe a file system?

    Jim Showalter wrote:

    >> What type of system? What type of filesystem? What are you _actually_
    >> trying to accomplish, and on what kind of computer and OS?

    >
    > Sorry, just didn't think those details were relevent as long as we're
    > talking Unix.
    >

    [...]

    As luck would have it, they don't in the case of cpio, or gnu-tar. (the
    default [ and only] tar command on SuSe, on many unices you would need to
    download and install it)

    gnu-tar preserves hard-links, symbolic links, block and character special
    files, fifos. Tt even handles sparse files

    In short, to create your backup, a tar -S -cvzf /path/to/archive.tar.gz /


    then, with the new fs loaded, tar -S -xvzf /path/to/archive.tar.gz
    -C /path/to/mountpount entirely


    (if you have the fs mounted already, do something like:
    tar -S --exclude=/path/to/mountpoint -cvf - / | \
    tar -S -C /path/to/mountpoint -xvf -

    Hope it helps.


  10. Re: How to dupe a file system?

    In article <2ywIe.35769$iG6.15849@tornado.tampabay.rr.com>,
    Jamie Beverly wrote:

    > Jim Showalter wrote:
    >
    > >> What type of system? What type of filesystem? What are you _actually_
    > >> trying to accomplish, and on what kind of computer and OS?

    > >
    > > Sorry, just didn't think those details were relevent as long as we're
    > > talking Unix.
    > >

    > [...]
    >
    > As luck would have it, they don't in the case of cpio, or gnu-tar. (the
    > default [ and only] tar command on SuSe, on many unices you would need to
    > download and install it)
    >
    > gnu-tar preserves hard-links, symbolic links, block and character special
    > files, fifos. Tt even handles sparse files
    >
    > In short, to create your backup, a tar -S -cvzf /path/to/archive.tar.gz /
    >
    >
    > then, with the new fs loaded, tar -S -xvzf /path/to/archive.tar.gz
    > -C /path/to/mountpount entirely
    >
    >
    > (if you have the fs mounted already, do something like:
    > tar -S --exclude=/path/to/mountpoint -cvf - / | \
    > tar -S -C /path/to/mountpoint -xvf -
    >
    > Hope it helps.


    What about ACL's, if your OS supports them? star does ACLs as well as
    all the other stuff:

    http://linuxcommand.org/man_pages/star1.html

    (I'm sure Joerg, star's author, will chime in here eventually)

    --
    DeeDee, don't press that button! DeeDee! NO! Dee...




  11. Re: How to dupe a file system?

    >
    > What about ACL's, if your OS supports them? star does ACLs as well as
    > all the other stuff:
    >
    > http://linuxcommand.org/man_pages/star1.html
    >
    > (I'm sure Joerg, star's author, will chime in here eventually)
    >


    Even better, gnu-tar does not support ACLs (though it's source does support
    them as a user extension, if somebody would be inclined to write it)

    8-)

+ Reply to Thread