[ale] hd duplication --quick response requested--
Jim Lynch
jwl at pinckneya.peachtree.sgi.com
Fri Sep 4 12:12:10 EDT 1998
David Hamm wrote:
>
> So will this allow me to duplicate the disk with the partition table
> intact?
> Could I copy from one raw device to the other?
> cp /dev/sd0 /dev/sd1
>
No, the dump/restore will be used on each partition. You'll have to
generate the partition table manually. If the target disk is larger
than the source, you may be able to do a dd if=/dev/sda of=/dev/sdb but
what you will get is a target with less space. I've done with identical
disks, but I don't know if it will work with different disks. Build
your partitions with fdisk, mkfs them and then use dump/restore. Safest
way I know.
Others may have other opinions.
Jim.
> On Fri, 4 Sep 1998, Jim Lynch wrote:
>
> > Hi, David,
> >
> > Dump/restore is probably the safest way. From restore man page:
> >
> >
> > f The next argument to restore is used as the name of the archive
> > instead of /dev/rmt?. If the name of the file is of the form
> > ``host:file'', restore reads from the named file on the remote
> > host using rmt(8). If the name of the file is `-', restore
> > reads
> > from standard input. Thus, dump(8) and restore can be used in a
> > pipeline to dump and restore a file system with the command
> >
> > dump 0f - /usr | (cd /mnt && restore xf -)
> >
> > Jim.
> > --
> > ------------------------------------------------------------------------
> > Jim Lynch, SGI/Cray Research, Inc. / ARS: K4GVO
> > Phone: (770) 631-2254, Email: jwl at sgi.com
> > Suite 270, 200 Westpark Drive, Peachtree City, GA 30269
> >
--
------------------------------------------------------------------------
Jim Lynch, SGI/Cray Research, Inc. / ARS: K4GVO
Phone: (770) 631-2254, Email: jwl at sgi.com
Suite 270, 200 Westpark Drive, Peachtree City, GA 30269
More information about the Ale
mailing list