Subject: Re: cloning disks?
To: NetBSD port-sparc mailing list <port-sparc@netbsd.org>
From: Julian Coleman <jdc@coris.demon.co.uk>
List: port-sparc
Date: 10/10/2002 19:05:42
> Can I clone a disk by reading /dev/rsd0c and writing it back on another
> harddisk? I know I can do so on NetBSD/i386 and it works even with
> different size harddisks (going small image to big disk)[1].
> 
> Trying the same on 1.6/sparc gives me a message that the superblock is
> not ok an LOTS of errors on fsck.
> 
> What do I miss?

Dunno.  I recently did this under 1.6G (and I've done it in the past) :

  dd if=/dev/rsd1c of=/dev/rsd0c bs=32k progress=y

  sd0 at scsibus0 target 0 lun 0: <SEAGATE, ST12400N SUN2.1G, 8720> SCSI2 0/direct fixed
  sd0: 2048 MB, 2621 cyl, 19 head, 84 sec, 512 bytes/sect x 4194685 sectors
  sd0: sync (208.0ns offset 15), 8-bit (4.807MB/s) transfers, tagged queueing
  sd1 at scsibus0 target 1 lun 0: <SEAGATE, ST12400N SUN2.1G, 8720> SCSI2 0/direct fixed
  sd1: 2048 MB, 2621 cyl, 19 head, 84 sec, 512 bytes/sect x 4194685 sectors
  sd1: sync (208.0ns offset 15), 8-bit (4.807MB/s) transfers, tagged queueing

I've never tried it on sparc with different sized disks though.

J

-- 
                    My other computer also runs NetBSD
                          http://www.netbsd.org/