From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 14033 invoked from network); 8 Feb 2000 20:22:25 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 8 Feb 2000 20:22:25 -0000 Received: from ligarius-fe0.ultra.net (ligarius-fe0.ultra.net [146.115.8.189]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id PAA12137 for ; Tue, 8 Feb 2000 15:22:25 -0500 Received: from vomit (smtp.lexra.com [4.21.164.130]) by ligarius-fe0.ultra.net (8.8.8/ult/n26500/mtc.v2) with ESMTP id PAA13706 for ; Tue, 8 Feb 2000 15:22:23 -0500 (EST) Message-ID: <012801bf7272$3615f4b0$2208a8c0@vomit.lexra.com> From: "Franklin Hooker" To: Subject: Copying partitions? Date: Tue, 8 Feb 2000 15:12:21 -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 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]#