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,

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 - http://www.unc.edu/~aperr

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 -) > > > >

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 t

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 - . | ... tar

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 dr

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 Statio

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 (prima

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 T

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 /mn

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 watch

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 ABOVE.

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 dr

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 new