Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Franklin Hooker" <Franklin.Hooker@mail.com>
To: <axp-list@redhat.com>
Subject: Copying partitions?
Date: Tue, 8 Feb 2000 15:12:21 -0500	[thread overview]
Message-ID: <012801bf7272$3615f4b0$2208a8c0@vomit.lexra.com> (raw)

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]#





             reply	other threads:[~2000-02-08 20:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-08 20:12 Franklin Hooker [this message]
2000-02-08 20:45 ` Copying partitions? Sean Hunter
  -- strict thread matches above, loose matches on Subject: below --
2000-02-08 21:16 Franklin Hooker
     [not found] <012801bf7272$3615f4b0$2208a8c0@softwareag.com>
2000-02-09  9:05 ` Joerg Bruehe
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox