From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,d2c67628e8942a6a X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-04-24 09:14:17 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: pan_tingli@hotmail.com (li) Newsgroups: comp.unix.tru64 Subject: Re: Duplicate system disk under Digital Tru64 Unix Date: 24 Apr 2002 09:14:17 -0700 Organization: http://groups.google.com/ Message-ID: <56c36f24.0204240814.7b615ad1@posting.google.com> References: <4ce72ad5.0204200451.7d85a852@posting.google.com> <_Z1x8.4827$6b2.42923@news2.west.cox.net> NNTP-Posting-Host: 198.89.160.22 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1019664857 4257 127.0.0.1 (24 Apr 2002 16:14:17 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 24 Apr 2002 16:14:17 GMT Xref: archiver1.google.com comp.unix.tru64:7375 "Peter Barone" wrote in message news:<_Z1x8.4827$6b2.42923@news2.west.cox.net>... > > > > "xgr" wrote in message > news:4ce72ad5.0204200451.7d85a852@posting.google.com... > > All, > > > > Does anybody know how to duplicate the system disk under Digital > > True64 Unix? I try to use dd to duplicate system disk to another disk > > as following: > > 1, boot from CD-ROM > > 2, clear label of target disk: disklabel -z /dev/rdisk/dsk2c > > 3, duplicate with dd: dd if=/dev/disk/dsk0c of=/dev/disk/dsk2c > > bs=10240k > > > > After exchanging slots of these 2 disks, I was able to boot with the > > duplicated disk to single user mode, but when I issue following > > command: > > #mount -a > > the system prompts error: > > msfs_mount: The mount device does not match the linked device. > > check linked device in /etc/fdmns/domain > > msfs_mount: setting root device name to root_device RW > > > > The contents in /etc/fdmns/ and /etc/fstab are the same as the source > > disk, but the root file system mounted is different: in the source > > disk, it's root_domain; but in the target disk, it's root_device. > > Following is the output of df when booted with the target disk: > > #df > > file system mounted on > > root_device / > > /proc /proc > > user_domain#usr /usr > > var_domain#var /var > > home_domain#home /home > > > > where, root_device should be root_domain#root. > > > > Can somebody tell me what the wrong with the system? and is there > > another way to duplicate system disk? All filesystems are created with > > Tru64Unix v5.1 AdvFS. > > > > Thanks in advance! To duplicate the system disk. Format the disk first by (assuming this is not advfs) disklabel -t nfs -wr dsk1 rz1ed Then # mount /dev/dsk1a /mnt # dump -0 -f - / | (cd /mnt; restore -x -f -) # umount /mnt # mount /dev/dsk1g /mnt # dump -0 -f - /usr | (cd /mnt; restore -x -f -) # umount /mnt ... and so on. #############