/usr/etc/dump disk-to-disk?

/usr/etc/dump disk-to-disk?

am 26.10.2007 03:20:53 von paintedjazz

Sorry if this is the wrong place to ask this but I don't know where
else a SunOS 4 question could be asked. I haven't really used SunOS 4
in about 16 years. Is it possible to duplicate a disk using /usr/etc/
dump? I have a colleague with an old Solflower running SunOS 4
(connected to an instrument). He wants to make a duplicate of his
boot disk by booting off of a different disk and then using /usr/etc/
dump to transfer the data.

Can this be done similar to ufsdump as in the following?

rsd3a : the original boot partition which is now just the 2nd of
three SCSI-2 disks
rsd1a : the filesystem which will receive the data from rsd3a

# mount /dev/rsd1a /mnt # mount filesystem which will receive
the data

# dump 0f /dev/rsd3a - |(cd /mnt ; restore xf -)

# rm restoresymtable
# cd /
# umount /mnt
# fsck /dev/rsd1a

# mount /dev/rsd1a /mnt
# cd /usr/mdec # /usr/mdec contains boot blocks
# installboot /mnt/boot bootid /dev/rsd1a
# fsck /dev/rsd1a
# shutdown -h now


Step 2: do similar steps with /usr partition
Step 3: test booting off of all three disks

Does this sound right? Many thanks for any help.

Re: /usr/etc/dump disk-to-disk?

am 26.10.2007 09:39:14 von huge

On 2007-10-26, paintedjazz@gmail.com wrote:
> Sorry if this is the wrong place to ask this but I don't know where
> else a SunOS 4 question could be asked. I haven't really used SunOS 4
> in about 16 years. Is it possible to duplicate a disk using /usr/etc/
> dump? I have a colleague with an old Solflower running SunOS 4
> (connected to an instrument). He wants to make a duplicate of his
> boot disk by booting off of a different disk and then using /usr/etc/
> dump to transfer the data.
>
> Can this be done similar to ufsdump as in the following?
>
> rsd3a : the original boot partition which is now just the 2nd of
> three SCSI-2 disks
> rsd1a : the filesystem which will receive the data from rsd3a
>
> # mount /dev/rsd1a /mnt # mount filesystem which will receive
> the data
>
> # dump 0f /dev/rsd3a - |(cd /mnt ; restore xf -)
>
> # rm restoresymtable
> # cd /
> # umount /mnt
> # fsck /dev/rsd1a
>
> # mount /dev/rsd1a /mnt
> # cd /usr/mdec # /usr/mdec contains boot blocks
> # installboot /mnt/boot bootid /dev/rsd1a
> # fsck /dev/rsd1a
> # shutdown -h now
>
>
> Step 2: do similar steps with /usr partition
> Step 3: test booting off of all three disks
>
> Does this sound right? Many thanks for any help.

That sounds fine.

You could also do it with 'dd' (instead of ufsdump);

dd if=/dev/rsd3a of=/dev/rsd1a bs=1024000


--
"Be thankful that you have a life, and forsake your vain
and presumptuous desire for a second one."
[email me at huge {at} huge (dot) org uk]

Re: /usr/etc/dump disk-to-disk?

am 26.10.2007 10:12:57 von Cyrus Kriticos

paintedjazz@gmail.com wrote:
> Sorry if this is the wrong place to ask this but I don't know where
> else a SunOS 4 question could be asked.

comp.unix.solaris