From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,b3cd2a911d614119 X-Google-Attributes: gidfee84,public From: "Gerard Janssen" Subject: Re: diskcopy on osf/1 Date: 1999/04/14 Message-ID: <924079763.269628@dibbs3.eur.cis.philips.com>#1/1 X-Deja-AN: 466221971 Cache-Post-Path: dibbs3.eur.cis.philips.com!unknown@nld211-23.gds.cis.philips.com References: X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 X-Complaints-To: news@dibbs3.eur.cis.philips.com X-Trace: dibbs3.eur.cis.philips.com 924079763 14555 130.139.33.70 (14 Apr 1999 08:49:23 GMT) Organization: eur.cis.philips.com X-Cache: nntpcache 2.3.2.1 (see http://www.nntpcache.org/) NNTP-Posting-Date: 14 Apr 1999 08:49:23 GMT Newsgroups: comp.unix.osf.osf1 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