Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: "Gerard Janssen" <Gerard.Janssen@nl.origin-it.com>
Subject: Re: diskcopy on osf/1
Date: 1999/04/14	[thread overview]
Message-ID: <924079763.269628@dibbs3.eur.cis.philips.com> (raw)
In-Reply-To: yesO2.35$op.171964928@news.telia.no

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2150 bytes --]


Erling Kopperdal wrote in message ...
>Someone gave me an old DEC3000, M300 machine with two 1.05 SCSI disks,
>Digital Unix
>
>V3.2 (Prev. DEC OSF/1). Before I start playing with it, I'm trying to copy
>the
>
>OS-disk to the other disk.  But the dd command says: 'read only' filesystem
>(???).
>
>My question is: Is it possible to do an 'image' copy of disks on this
>machine, and if
>
>so: how?
>
>I should probably have read some more manuals before asking this, but if
>someone
>
>could point me in the right direction here, I will be very grateful.
>
>
>

You didn't mention if you where booted in single-user mode but I suppose sow
because the / filesystem is mounted read-only in single user mode by
default.   Most of the commands use /tmp to store temporarily stuff and /tmp
is not mounted yet (if you use a separate filesystem for it) or part of /.
And this is still read-only!
You have to give the command     mount -u /      first, to remount it
read/write.
If you need all filesystems you are better off giving the command
bcheckrc
In this case you also have /usr  (and /var)  mounted, this gives you all
access to all unix commands.
After that you may continue with the �normal� commands.

You mentioned that you want to copy the / filesystem.     Here�s what I
would do:
Single User mode:
#  bcheckrc
#  mkdir  /var/tmp/root_mount
#  mount -t advfs  temp_dmn#temp_root  /var/tmp/root_mount
or if you are using UFS type (as an example partition /dev/rrz1a )
#  mount -t ufs /dev/rz1a /var/tmp/root_mount
#  vdump  -0f  -  /  |   ( cd  /var/tmp/root_mount ;  vrestore  -xf  - )

If you want to boot from that new partition make sure the label is correct
(and it is the a-partition of the other disk!)
You can make it bootable with the following commands: (again the rz1 as an
example)
#  disklabel  -r  rz1  >  /tmp/label
#  disklabel  -R  -r  -t advfs  /dev/rrz1a   /tmp/label  SCSI
or if you are using UFS type
#  disklabel  -R  -r  -t ufs   /dev/rrz1a   /tmp/label  SCSI

Hopefully this brings you fearther�

Gerard Janssen
Senior System Manager Tru64 UNIX
Origin TIS DS System Management
Gerard.Janssen@nl.origin-it.com






      parent reply	other threads:[~1999-04-14  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-06  4:00 diskcopy on osf/1 Erling Kopperdal
1999-04-07  4:00 ` Adam Price
1999-04-14  4:00 ` Gerard Janssen [this message]
read-only archive

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