Re: dd to clone a drive

2017-09-29 Thread Jack Dangler
On 09/26/2017 11:35 AM, Gene Heskett wrote: On Tuesday 26 September 2017 09:57:57 Jack Dangler wrote: I have an existing drive near EOL (judging from the sounds). I got a replacement drive for it (same size). I plugged the replacement into a USB port and started a byte-for-byte copy with

Re: dd to clone a drive

2017-09-26 Thread Gene Heskett
On Tuesday 26 September 2017 09:57:57 Jack Dangler wrote: > I have an existing drive near EOL (judging from the sounds). I got a > replacement drive for it (same size). > > I plugged the replacement into a USB port and started a byte-for-byte > copy with > > dd if=/dev/sda of=/dev/sdc > > The

Re: dd to clone a drive

2017-09-26 Thread Michael Stone
On Tue, Sep 26, 2017 at 04:28:10PM +0200, Thomas Schmitt wrote: The first suspect for slow dd is small block size. So you should in any case ask dd for larger chunks as already proposed by Michael Stone. For copying Debian ISOs to USB sticks the FAQ proposes 4 MiB. But i think 1 MiB is surely

Re: dd to clone a drive

2017-09-26 Thread Pascal Hambourg
Le 26/09/2017 à 15:57, Jack Dangler a écrit : I have an existing drive near EOL (judging from the sounds). I got a replacement drive for it (same size). I plugged the replacement into a USB port and started a byte-for-byte copy with dd if=/dev/sda of=/dev/sdc dd is not the best tool to

Re: dd to clone a drive

2017-09-26 Thread Thomas Schmitt
Hi, > Is it 'usual' to have dd take upwards of 2 days to copy a drive ? Not really. An old 500 GiB SATA disk may deliver about 50 MiB/s. That's 1 seconds, a bit less than 3 hours. (If you copy from filesystem to filesystem it may last much longer due to the lookup times in the trees.) The

Re: dd to clone a drive

2017-09-26 Thread Michael Stone
On Tue, Sep 26, 2017 at 09:57:57AM -0400, Jack Dangler wrote: I have an existing drive near EOL (judging from the sounds). I got a replacement drive for it (same size). I plugged the replacement into a USB port and started a byte-for-byte copy with dd if=/dev/sda of=/dev/sdc The process

Re: dd to clone a drive

2017-09-26 Thread Roberto C . Sánchez
On Tue, Sep 26, 2017 at 09:57:57AM -0400, Jack Dangler wrote: > I have an existing drive near EOL (judging from the sounds). I got a > replacement drive for it (same size). > > I plugged the replacement into a USB port and started a byte-for-byte copy > with > > dd if=/dev/sda of=/dev/sdc > >

dd to clone a drive

2017-09-26 Thread Jack Dangler
I have an existing drive near EOL (judging from the sounds). I got a replacement drive for it (same size). I plugged the replacement into a USB port and started a byte-for-byte copy with dd if=/dev/sda of=/dev/sdc The process ran quietly for almost 30 hours with no discernable results so i

Re: Using dd to clone smaller drive to larger drive

2005-12-09 Thread Andreas Rippl
On Tue, Dec 06, 2005 at 08:27:47PM -0800, Brian C wrote: Hi, /dev/hda is the Debian Sarge system, w/ 3 partitions. /dev/hdb is a new slightly larger drive w/ no partitions. /dev/hda may have a bad block or two, and so the plan is to clone it to the new drive, remove the old drive, move

Re: Using dd to clone smaller drive to larger drive

2005-12-07 Thread Lubos Vrbka
Brian C wrote: Warning to archive readers. I believe a typo in one of the commands below will destroy your data. Read on... Alvin Oga wrote: [snip] - if you want to leave bad data behind mount /dev/hdb1 /mnt/new-disk HERE IT COMES tar cvfp old-disk-paritions /mnt/new-disk just

Re: Using dd to clone smaller drive to larger drive

2005-12-07 Thread Alvin Oga
hi ya brian On Tue, 6 Dec 2005, Brian C wrote: Warning to archive readers. I believe a typo in one of the commands below will destroy your data. Read on... more serious than typo .. :-) Alvin Oga wrote: [snip] - if you want to leave bad data behind mount /dev/hdb1 /mnt/new-disk

Re: Using dd to clone smaller drive to larger drive

2005-12-07 Thread Hugo Vanwoerkom
Brian C wrote: Warning to archive readers. I believe a typo in one of the commands below will destroy your data. Read on... Alvin Oga wrote: [snip] - if you want to leave bad data behind mount /dev/hdb1 /mnt/new-disk HERE IT COMES tar cvfp old-disk-paritions /mnt/new-disk DON'T

Re: Using dd to clone smaller drive to larger drive

2005-12-07 Thread Andrew Perrin
On Tue, 6 Dec 2005, Brian C wrote: Hi, /dev/hda is the Debian Sarge system, w/ 3 partitions. /dev/hdb is a new slightly larger drive w/ no partitions. /dev/hda may have a bad block or two, and so the plan is to clone it to the new drive, remove the old drive, move new drive to /dev/hda

Re: Using dd to clone smaller drive to larger drive

2005-12-07 Thread Nate Bargmann
I found that rsync does an excellent job of copying the data over. It can be used with two machines over a network. I used a KNOPPIX CD to boot each machine (laptops) and then copied the data over. I should add my notes to my web pages sometime... - Nate -- Wireless | Amateur Radio Station

Re: Using dd to clone smaller drive to larger drive

2005-12-07 Thread Hugo Vanwoerkom
Andrew Perrin wrote: On Tue, 6 Dec 2005, Brian C wrote: Hi, /dev/hda is the Debian Sarge system, w/ 3 partitions. /dev/hdb is a new slightly larger drive w/ no partitions. /dev/hda may have a bad block or two, and so the plan is to clone it to the new drive, remove the old drive, move new

Re: Using dd to clone smaller drive to larger drive

2005-12-07 Thread Lubos Vrbka
1.) partition the new drive as you want it 2.) for each partition of the new drive, mount the partition in /mnt/tmp or something like that, then cd /old-partition-mount ; tar cf - . | (cd /mnt/tmp ; tar xf -) What does the dot do? archive the local directory to the stdout tar cf - . | ...

Re: Using dd to clone smaller drive to larger drive

2005-12-07 Thread Hugo Vanwoerkom
Hugo Vanwoerkom wrote: Andrew Perrin wrote: On Tue, 6 Dec 2005, Brian C wrote: Hi, /dev/hda is the Debian Sarge system, w/ 3 partitions. /dev/hdb is a new slightly larger drive w/ no partitions. /dev/hda may have a bad block or two, and so the plan is to clone it to the new drive, remove

Re: Using dd to clone smaller drive to larger drive

2005-12-07 Thread Merlin, the Mage
On Wednesday 07 December 2005 13:01, Lubos Vrbka wrote: 1.) partition the new drive as you want it 2.) for each partition of the new drive, mount the partition in /mnt/tmp or something like that, then cd /old-partition-mount ; tar cf - . | (cd /mnt/tmp ; tar xf -) What does the dot

Re: Using dd to clone smaller drive to larger drive

2005-12-07 Thread Andrew Perrin
On Wed, 7 Dec 2005, Hugo Vanwoerkom wrote: cd /old-partition-mount ; tar cf - . | (cd /mnt/tmp ; tar xf -) What does the dot do? current directory -- Andrew J Perrin - andrew_perrin (at) unc.edu -

Using dd to clone smaller drive to larger drive

2005-12-06 Thread Brian C
Hi, /dev/hda is the Debian Sarge system, w/ 3 partitions. /dev/hdb is a new slightly larger drive w/ no partitions. /dev/hda may have a bad block or two, and so the plan is to clone it to the new drive, remove the old drive, move new drive to /dev/hda (primary master) and then run from the

Re: Using dd to clone smaller drive to larger drive

2005-12-06 Thread Alvin Oga
good email addy On Tue, 6 Dec 2005, Brian C wrote: /dev/hda is the Debian Sarge system, w/ 3 partitions. /dev/hdb is a new slightly larger drive w/ no partitions. /dev/hda may have a bad block or two, and so the plan is to clone it to the new drive, remove the old drive, move new drive

Re: Using dd to clone smaller drive to larger drive

2005-12-06 Thread Brian C
Warning to archive readers. I believe a typo in one of the commands below will destroy your data. Read on... Alvin Oga wrote: [snip] - if you want to leave bad data behind mount /dev/hdb1 /mnt/new-disk HERE IT COMES tar cvfp old-disk-paritions /mnt/new-disk DON'T TYPE THE