From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 28477 invoked from network); 8 Feb 2000 21:16:23 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 8 Feb 2000 21:16:23 -0000 Received: from antiochus-fe0.ultra.net (antiochus-fe0.ultra.net [146.115.8.188]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id QAA16111 for ; Tue, 8 Feb 2000 16:16:23 -0500 Received: from vomit (smtp.lexra.com [4.21.164.130]) by antiochus-fe0.ultra.net (8.8.8/ult/n20340/mtc.v2) with ESMTP id QAA21928 for ; Tue, 8 Feb 2000 16:16:23 -0500 (EST) Message-ID: <014b01bf7279$c050bff0$2208a8c0@vomit.lexra.com> From: "Franklin Hooker" To: Subject: Re: Copying partitions? Date: Tue, 8 Feb 2000 16:16:23 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 Probably not. I don't think that "dd" works when the partitions are not the same size. Franklin -----Original Message----- From: Sean Hunter To: axp-list@redhat.com Date: Tuesday, February 08, 2000 3:47 PM Subject: Re: Copying partitions? If you need to copy raw devices, you probably want "dd". Sean On Tue, Feb 08, 2000 at 03:12:21PM -0500, Franklin Hooker wrote: > Why can't I use the following technique to copy > disk partitions? > > dump -0 -f - /dev/sdb2 | (cd /mnt/disk; restore yrf -) > > Thanks, > Franklin > > ------------------------------------------------------ > Franklin Hooker Work: (781)899-5799, ext 812 > Franklin.Hooker@mail.com Home: (508)481-5330 > ------------------------------------------------------ > > > > [root@pc164 /]# mke2fs /dev/sdd2 > mke2fs 1.17, 26-Oct-1999 for EXT2 FS 0.5b, 95/08/09 > Filesystem label= > OS type: Linux > Block size=1024 (log=0) > Fragment size=1024 (log=0) > 60480 inodes, 240975 blocks > 12048 blocks (5.00%) reserved for the super user > First data block=1 > 30 block groups > 8192 blocks per group, 8192 fragments per group > 2016 inodes per group > Superblock backups stored on blocks: > 8193, 24577, 40961, 57345, 73729, 204801, 221185 > > Writing inode tables: 29/30 done > Writing superblocks and filesystem accounting information: done > [root@pc164 /]# > [root@pc164 /]# mount /dev/sdd2 /mnt/disk > [root@pc164 /]# > [root@pc164 /]# df > Filesystem 1k-blocks Used Available Use% Mounted on > /dev/sdb1 303251 63155 224435 22% / > /dev/sdc1 2035606 900760 1029622 47% /home > /dev/sdb4 1297966 1189329 41566 97% /usr > /dev/sdb2 303243 26005 261575 9% /var > /dev/sdd2 233338 13 221277 0% /mnt/disk > [root@pc164 /]# > [root@pc164 /]# cd /var > [root@pc164 /var]# > [root@pc164 /var]# dump -0 -f - /dev/sdb2 | (cd /mnt/disk; restore yrf -) > DUMP: Date of this level 0 dump: Tue Feb 8 07:42:34 2000 > DUMP: Date of last level 0 dump: the epoch > DUMP: Dumping /dev/sdb2 (/var) to standard output > DUMP: mapping (Pass I) [regular files] > DUMP: mapping (Pass II) [directories] > DUMP: estimated 26364 tape blocks. > DUMP: Volume 1 started at: Tue Feb 8 07:42:34 2000 > DUMP: dumping (Pass III) [directories] > DUMP: dumping (Pass IV) [regular files] > restore: ./lost+found: File exists > restore: ./lib/games/xbill/bitmaps: cannot create special file: Invalid > argument > ./lib/games/xbill/pixmaps: not found on tape > DUMP: Broken pipe > DUMP: The ENTIRE dump is aborted. > [root@pc164 /var]# > [root@pc164 /var]# > > > > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com