Using "dd" copy copy disk partitions

Dan Barrett barrett at jhunix.HCF.JHU.EDU
Sat May 18 08:54:45 AEST 1991


	I have used "dd" to copy one disk partition to another over 
ethernet (dd if=/dev/foo | rsh another dd of=/dev/bar).  Unfortunately,
this causes the destination partition to believe it is the SAME SIZE
as the original partition, despite how it was created by newfs.

	I'd like to know if there is a way to convince my destination
partition of its correct size.  I tried "chpt -d" but that didn't do it.  A
newfs did it, but of course my data doesn't like that. :-)

	BTW, I know that using dump/restore instead of "dd" would avoid this
problem.  I'd prefer an after-the-fact fix, not a new method.  Thanks!

                                                        Dan

 //////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
| Dan Barrett, Department of Computer Science      Johns Hopkins University |
| INTERNET:   barrett at cs.jhu.edu           |                                |
| COMPUSERVE: >internet:barrett at cs.jhu.edu | UUCP:   barrett at jhunix.UUCP    |
 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/////////////////////////////////////



More information about the Comp.unix.ultrix mailing list