Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!jhunix!barrett From: barrett@jhunix.HCF.JHU.EDU (Dan Barrett) Newsgroups: comp.unix.ultrix Subject: Using "dd" copy copy disk partitions Message-ID: <8410@jhunix.HCF.JHU.EDU> Date: 17 May 91 22:54:45 GMT Organization: The Johns Hopkins University - HCF Lines: 20 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@cs.jhu.edu | | | COMPUSERVE: >internet:barrett@cs.jhu.edu | UUCP: barrett@jhunix.UUCP | \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/////////////////////////////////////