Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Copying a HD to another in stages
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
binary-no...@hotmail.com  
View profile  
 More options Apr 13 2005, 2:16 pm
Newsgroups: comp.os.linux.admin, comp.unix.admin
From: binary-no...@hotmail.com
Date: 13 Apr 2005 11:16:51 -0700
Local: Wed, Apr 13 2005 2:16 pm
Subject: Copying a HD to another in stages
Hi,

How can I accomplish this? I would like to use dd, I think, since cp is
not really what I'm looking for - eg. if the 2nd drive is unformatted,
and the 1st is Reiser, the 2nd one will automatically become Reiser,
yes? At leas, till the part that the files take up?

If not, and the 2nd is formatted to Reiser, will just cp work? What's
the exact command, to make sure it copies *everything*?

In any case, how do I do it in stages? ie. copy a bit, and then resume
from where the first copying left off? My first drive is pretty old and
rickety, I DON'T want a continuous 10GB read from it, it is *sure* to
kill it.

Thanks a lot,

The Nomad.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hewillrejo...@yahoo.com  
View profile  
 More options Apr 13 2005, 8:03 pm
Newsgroups: comp.os.linux.admin, comp.unix.admin
From: HeWillRejo...@yahoo.com
Date: 13 Apr 2005 17:03:31 -0700
Local: Wed, Apr 13 2005 8:03 pm
Subject: Re: Copying a HD to another in stages
I came up with a way using find and a shell script.  Do you have perl?
If so I could write a better way.  The problem with using a shell
script is having it pause periodically like you want it to.  In perl it
would be easier.  Here is one way using the shell, tar, and find:
1) format new drive & make the file system & mount it at /newdrive
2) create the shell script: (as root)
cat > /tmp/ttt
#/bin/sh -v
tar -cf - "$1" | ( cd /newdrive; tar -xf - )
(hit ctrl-d)
chmod 755 /tmp/ttt
cd (source directory)
find . -exec /tmp/ttt {} \; -exec sleep 1 \;

This will copy over one file at a time and then sleep 1 second.  Very
slow to do a whole disk.  It's just an idea to help you get started.
I'll try to think of a more clever way to pause less frequently.

Boyd
P.S. You can write me directly at TBMoore(remove the
parenthesis)@bealenet.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions Older topic »