Subject: RE: corrupt disk label
To: 'David Brownlee' <abs@netbsd.org>
From: Jenkins, Michael <Michael.Jenkins@disney.com>
List: port-sparc64
Date: 10/18/2001 08:52:53
On Thursday, October 18, 2001, David Brownlee wrote:
> Is there a safe way to write the miniroot - maybe with two dd
> commands?
> Either: dd label from the disk into miniroot, then write miniroot
> Or: dd the boot block to disk, then a second dd for the section
> after the label?
If the partition you want to copy miniroot to starts in cylinder 0,
you can try skipping the first block of the partition:
# dd if=miniroot.fs of=/dev/rdsk/c0t0d0s1 bs=512 seek=1
Mike