Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Copying partitions?
@ 2000-02-08 21:16 Franklin Hooker
  0 siblings, 0 replies; 4+ messages in thread
From: Franklin Hooker @ 2000-02-08 21:16 UTC (permalink / raw)
  To: axp-list

Probably not.  I don't think that "dd" works when the
partitions are not the same size.

Franklin

-----Original Message-----
From: Sean Hunter <sean@uncarved.co.uk>
To: axp-list@redhat.com <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



^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <012801bf7272$3615f4b0$2208a8c0@softwareag.com>]
* Copying partitions?
@ 2000-02-08 20:12 Franklin Hooker
  2000-02-08 20:45 ` Sean Hunter
  0 siblings, 1 reply; 4+ messages in thread
From: Franklin Hooker @ 2000-02-08 20:12 UTC (permalink / raw)
  To: axp-list

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-02-09  9:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-02-08 21:16 Copying partitions? Franklin Hooker
     [not found] <012801bf7272$3615f4b0$2208a8c0@softwareag.com>
2000-02-09  9:05 ` Joerg Bruehe
  -- strict thread matches above, loose matches on Subject: below --
2000-02-08 20:12 Franklin Hooker
2000-02-08 20:45 ` Sean Hunter

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