From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1020c6,6054e09ec6533d4e X-Google-Attributes: gid1020c6,public X-Google-Thread: 10b612,aa81205d6b91ea7c X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,aa81205d6b91ea7c X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-05-20 09:34:18 PST Xref: sparky comp.unix.admin:3388 comp.unix.ultrix:4530 comp.sys.dec:3050 Newsgroups: comp.unix.admin,comp.unix.ultrix,comp.sys.dec Path: sparky!uunet!snorkelwacker.mit.edu!bloom-picayune.mit.edu!news!plee From: plee@yoyodyne.mit.edu (Peter Lee) Subject: Re: HELP! How to restore '/' filesystem to non-DEC disk?? (RISC/Ultrix) In-Reply-To: gpetty@rain.atms.purdue.edu's message of 20 May 92 14:49:38 GMT Message-ID: <1992May20.210552.26469@athena.mit.edu> Followup-To: comp.unix.admin Sender: news@athena.mit.edu (News system) Nntp-Posting-Host: yoyodyne.mit.edu Organization: /users/plee/.organization References: <49403@mentor.cc.purdue.edu> Date: Wed, 20 May 1992 22:05:13 GMT In article <49403@mentor.cc.purdue.edu> gpetty@rain.atms.purdue.edu (Grant W. Petty) writes: >> According to the Backup and Restore document from DEC, I need to take >> the following steps: >> >> 1. Boot the TK50 device where the standalone system volume is mounted. >> >> 2. Select menu item 3 for system management >> >> 3. Run MAKEDEV in the /dev directory to make the system disk special file >> and the tape device special file. e.g., >> >> cd /dev >> MAKEDEV mnemonic -- where mnemonic = rz, according to Table A-1 >> >> 4. Change to root directory >> >> 5. Make a new root file system, i.e., >> >> mkfs dev-name 32768 nsectors ntracks >> >> 6. followed by fsck, mount, restore, etc. >> >> Right now at least, I'm not getting any further than step 3. When I >> do 'MAKEDEV rz', I get an error saying something about a bad disk. >> (Incidentally, the table of devices supported by MAKEDEV seems to >> indicate that a device no. is not expected after 'rz' -- that is, >> there's no asterisk. Is this just a typo? As noted at the beginning, >> I'm extremely reluctant to experiment at this point for fear of making >> things worse. ) MAKEDEV expects a device number (which should correspond to the SCSI drive address). So in this case, # cd /dev # MAKEDEV rz1 Don't forget to create tape devices (at SCSI address 5): # MAKEDEV tz5 >> I'm not a Unix expert, but I suspect that MAKEDEV in the standalone >> shell is expecting the system disk to be rz0, whereas my root >> filesystem is in fact located on a non-DEC disk -- specifically, >> partition 'a' of an RZ57-like 3d-party 1.2 GB SCSI disk (/dev/rrz1a). ULTRIX installation procedure makes no initial assumptions about which disk should be designated as the system disk. >> The following may or may not be relevant: In the past, I had been >> unable to get the Ultrix installation software to permit me to assign >> a non-DEC SCSI disk as the system partition; ultimately, the 3d party >> vendor (TotalTec) did the installation for me and everything had >> worked fined after that. I wish I knew how they did it. ULTRIX installation procedure frequently has difficulty obtaining the device geometry from a third-party disk. But this is not an insurmoutable problem, especially for SCSI disks. >> If anyone can tell me with utmost certainty how I can proceed in way >> that will successfully restore my root filesystem without risking >> trashing it further, I would be very grateful. Incidentally, don't >> try to send me e-mail, because /bin/mail seems to be MIA. First, if the old system disk and the new system disk are not the same disks or do not have the same SCSI address, then you should take the following into consideration: If the kernel in the filesystem dump that you are restoring explicitly specifies the root and the swap partitions in its configuration (this is the default), the system disk from which you hope to boot this kernel should have the same device designation. That is, if its configuration file says (or used to say): config vmunix root on rz1a swap on rz1b dumps on rz1b this kernel will have difficulty booting from a partition other than rz1a. You may have to manipulate your SCSI device addresses to make this work. The next steps are: Check the disk partition table. Hopefully it hasn't been damaged and can still be used. # /etc/chpt -q /dev/rrz1a If it has been damaged, you may need to change the partition table entries, again using the chpt program. See chpt(8) man page for details. Install the boot blocks on the new system disk: # dd if=/bootblks of=/dev/rrz1a bs=512 conv=sync Initialize a new file system on this partition, mount it, restore your root file system dump, and recheck: # /etc/mkfs /dev/rrz1a 32768 ... ... <- fill ... with nsect and ntrack . . . . . # /etc/fsck /dev/rrz1a . . . . . # /etc/mount /dev/rz1a /mnt # cd /mnt # restore rf /dev/rmt0h . . . . . # cd / # /etc/umount /mnt # /etc/fsck /dev/rrz1a . . . . . Shutdown: # sync # sync # halt -Peter Lee DEC System Consultant Education Software Library MIT Information Systems plee@mit.edu 617.253.3131