From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 31750 invoked from network); 8 Feb 2000 20:45:10 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 8 Feb 2000 20:45:10 -0000 Received: from henry.uncarved.co.uk (gateway.uncarved.co.uk [212.38.67.155]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id PAA13891 for ; Tue, 8 Feb 2000 15:45:09 -0500 Received: (qmail 19343 invoked by uid 500); 8 Feb 2000 20:45:16 -0000 From: "Sean Hunter" Date: Tue, 8 Feb 2000 20:45:16 +0000 To: axp-list@redhat.com Subject: Re: Copying partitions? Message-ID: <20000208204516.C8538@henry.uncarved.co.uk> Mail-Followup-To: axp-list@redhat.com References: <012801bf7272$3615f4b0$2208a8c0@vomit.lexra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <012801bf7272$3615f4b0$2208a8c0@vomit.lexra.com>; from Franklin Hooker on Tue, Feb 08, 2000 at 03:12:21PM -0500 X-Operating-System: Linux henry.uncarved.co.uk 2.2.14 X-Organisation: Uncarved Systems Ltd. X-CorporateURL: http://www.uncarved.co.uk/ X-Public-Key-URL: http://fido.bfriars.ox.ac.uk/~sean/pubkey.asc 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 >