Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Setting up alternate boot disk?
@ 1999-03-08  5:00 Robert Young
  1999-03-09  5:00 ` Mark
  1999-03-09  5:00 ` Jeff Wilson
  0 siblings, 2 replies; 3+ messages in thread
From: Robert Young @ 1999-03-08  5:00 UTC (permalink / raw)


I need to set up an alternate boot disk. How can I use the existing boot
disk to help configure a second disk?




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

* Re: Setting up alternate boot disk?
  1999-03-08  5:00 Setting up alternate boot disk? Robert Young
  1999-03-09  5:00 ` Mark
@ 1999-03-09  5:00 ` Jeff Wilson
  1 sibling, 0 replies; 3+ messages in thread
From: Jeff Wilson @ 1999-03-09  5:00 UTC (permalink / raw)


It is just a matter of formatting and copying the original disk to the new.

Use "disklabel" to partition the new disk with, at least, a root and swap
partition - then use "newfs" to format them, apart from swap. You can, of
course, have partitions for /usr, /tmp, /var if you want to dispense with
the old versions too. A bootblock is the default for newfs.

Then you can mount each formatted partition in turn on to /mnt for copying.
Use the commands "dump" and "restore", or "vdump" and "vrestore", in a pipe
something like "dump 0f - / | ( cd /mnt; restore xf - )" for copying.

After copying the partitions mount the root partition again on /mnt. Edit
lines in /mnt/etc/fstab and /mnt/etc/rc.config pointing to the old disk -
usually just a matter of changing the SCSI ident.

Then boot from the new disk.

Good luck.
-- 

     Jeff Wilson
     London ~ UK


Robert Young <rcyoung@groupz.net> wrote in article
<36E43AD6.8CA49B74@groupz.net>...
> I need to set up an alternate boot disk. How can I use the existing boot
> disk to help configure a second disk?
> 
> 



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

* Re: Setting up alternate boot disk?
  1999-03-08  5:00 Setting up alternate boot disk? Robert Young
@ 1999-03-09  5:00 ` Mark
  1999-03-09  5:00 ` Jeff Wilson
  1 sibling, 0 replies; 3+ messages in thread
From: Mark @ 1999-03-09  5:00 UTC (permalink / raw)


In article <36E43AD6.8CA49B74@groupz.net>,
  Robert Young <rcyoung@groupz.net> wrote:
> I need to set up an alternate boot disk. How can I use the existing boot
> disk to help configure a second disk?
>
>
You could use dd to take a copy of your boot disk:
e.g. copying from rz0 to rz1
disklabel -z rz1 (if you don't want to keep the disklabel)

dd if=/dev/rrz0c of=/dev/rrz1c skip=16 seek=16 bs=512
This will make a copy of the root disk and also keep the target disk label.
Mark.


-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    



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

end of thread, other threads:[~1999-03-09  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-08  5:00 Setting up alternate boot disk? Robert Young
1999-03-09  5:00 ` Mark
1999-03-09  5:00 ` Jeff Wilson

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