Linux Newbie help
 help / color / mirror / Atom feed
From: "Jamie Risk" <jamie_risk@yahoo.ca>
To: linux-newbie@vger.kernel.org
Subject: copying file systems ...
Date: Wed, 29 Jan 2003 12:35:23 -0500	[thread overview]
Message-ID: <b19395$6c9$2@main.gmane.org> (raw)

How do I copy an entire file system, symlinks and all, to a temporarily
mounted partition? (what are the pertinent 'cp' switches?)

I've got an extra harddrive (&PC) and I want to mirror my original system
with as little work as possible.

I put the third harddrive in my system, and mounted it at "/mnt/new". Thus,
the mounts are:

/dev/hda2   /         ext2
/dev/hda1   /boot     ext2
/dev/hda3   /usr      ext3
/dev/hda4   /home     ext3
/dev/hdb1   /usr/doc  ext2
/dev/hdb2   /usr/src  ext2
/dev/hdc1   /mnt/new  ext2

Can I simply use the following command?

[bash-2.05]# cp -r / /mnt/new

- Jamie
p.s. (I'd then test the output using 'chroot')





-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

             reply	other threads:[~2003-01-29 17:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-29 17:35 Jamie Risk [this message]
2003-01-30 13:58 ` copying file systems whitnl73
  -- strict thread matches above, loose matches on Subject: below --
2003-01-30  0:10 BEN RITCHEY

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='b19395$6c9$2@main.gmane.org' \
    --to=jamie_risk@yahoo.ca \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox