Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* HELP! How to restore '/' filesystem to non-DEC disk?? (RISC/Ultrix)
       [not found] <1992May20.095716.3179@gdunix.gd.chalmers.se>
@ 1992-05-20 14:49 ` Grant W. Petty
  1992-05-20 21:48   ` Grant W. Petty
  1992-05-20 22:05   ` Peter Lee
  0 siblings, 2 replies; 3+ messages in thread
From: Grant W. Petty @ 1992-05-20 14:49 UTC (permalink / raw)



My root filesystem on my DECstation 5000/200 (Ultrix 4.1) has gotten
mildly corrupted (see companion posting on upgrading Ultrix from
non-standard distribution)and I want to restore it to its original
condition from my last level 0 dump.  Unfortunately, I am having some
difficulty figuring out how this is done correctly in my case, and I
am extremely leary of doing anything that might make the situation
worse than it already is -- at the moment at least, I still have a
usable (though slightly limping) system.

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.  )

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).

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.

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.

Thanks.


-- 
Grant W. Petty                                gpetty@rain.atms.purdue.edu
Assistant Prof. of Atmospheric Science        (317) 494-2544
Dept. of Earth & Atmospheric Sciences         Disclaimer: The opinions expressed are my own.
Purdue University, West Lafayette IN  47907-1397  


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

* Re: HELP! How to restore '/' filesystem to non-DEC disk?? (RISC/Ultrix)
  1992-05-20 14:49 ` HELP! How to restore '/' filesystem to non-DEC disk?? (RISC/Ultrix) Grant W. Petty
@ 1992-05-20 21:48   ` Grant W. Petty
  1992-05-20 22:05   ` Peter Lee
  1 sibling, 0 replies; 3+ messages in thread
From: Grant W. Petty @ 1992-05-20 21:48 UTC (permalink / raw)


As it turns out, the last paragraph of my original posting sums up why
I was having problems. I was taking the DEC documentation too
literally.  All is well now.  Please disregard my original posting.



-- 
Grant W. Petty                                gpetty@rain.atms.purdue.edu
Assistant Prof. of Atmospheric Science        (317) 494-2544
Dept. of Earth & Atmospheric Sciences         Disclaimer: The opinions expressed are my own.
Purdue University, West Lafayette IN  47907-1397  


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

* Re: HELP! How to restore '/' filesystem to non-DEC disk?? (RISC/Ultrix)
  1992-05-20 14:49 ` HELP! How to restore '/' filesystem to non-DEC disk?? (RISC/Ultrix) Grant W. Petty
  1992-05-20 21:48   ` Grant W. Petty
@ 1992-05-20 22:05   ` Peter Lee
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Lee @ 1992-05-20 22:05 UTC (permalink / raw)


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


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

end of thread, other threads:[~1992-05-20 22:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1992May20.095716.3179@gdunix.gd.chalmers.se>
1992-05-20 14:49 ` HELP! How to restore '/' filesystem to non-DEC disk?? (RISC/Ultrix) Grant W. Petty
1992-05-20 21:48   ` Grant W. Petty
1992-05-20 22:05   ` Peter Lee

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