⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install.1

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 1
📖 第 1 页 / 共 2 页
字号:
		ns=22;nt=19;;	RP07 )		ns=50; nt=32;;	RF30 )		ns=37; nt=6;;	RF71 )		ns=37; nt=16;;	RZ23 )		ns=33; nt=8;;	RZ55 )		ns=36; nt=15;;	RZ56 )		ns=54; nt=15;;	* )		GEOMETRY=`geometry $root_d $root_u`		case $? in		0 )     ;;		* )			echo "Unable to obtain device geometry for $root_d$root_u.This is not a supported system disk."			exit 1			;;		esac		set xx $GEOMETRY		ns=$2; nt=$3;		;;	esac	case $root_D in	RZ23 | RZ23L | RD53 ) echo "NOTE: The ${root_D} disk is not supported by itself as a system disk.A second suitably sized disk is required to perform the installation.Disk partitions must be carefully selected based on the usage infor-mation in the Guide to Installing ULTRIX."		if test "$ADVFLAG" -eq "0"		then		echo "BASIC installations are not allowed using the ${root_D} as a systemdisk.  The installation procedure will switch to ADVANCED installationand continue."		ADVFLAG=1		DEF_PT=0		fi		;;	esac	cd /dev	MAKEDEV ${root_d}${root_u}a ${root_d}${root_u}c > /dev/null	case $? in	0 )	;;	* )		echo "The MAKEDEV command could not make the special files for the system disk,$root_d$root_u. $ERMSG1"		exit 1	;;	esac	cd /	case $DEF_PT in	0 )		chpt -q /dev/r$root_d${root_u}a > /tmp/pt_exist 2>/dev/null 		case $? in		0 )			chpt -q -d /dev/r$root_d${root_u}a > /tmp/pt_def 2>/dev/null 			ed /tmp/pt_def <<xxEOFxx 1>/dev/null				1,2d				w				qxxEOFxx			ed /tmp/pt_exist <<xxEOFxx 1>/dev/null				1,2d				w				qxxEOFxx			PTdef=`dd if=/tmp/pt_def 2>/dev/null`			PTexist=`dd if=/tmp/pt_exist 2>/dev/null`			if [ "$PTdef" = "$PTexist" ]			then				DEF_PT=1			fi			;;		esac		;;	esac	case $DEF_PT in	1 )		chpt -d /dev/r$root_d${root_u}a 2>/dev/null 		chpt -d /dev/r$root_d${root_u}c 2>/dev/null 		;;	0 )		while :		do				echo -n "Select one of the following partition tables to be displayed for the system disk $root_d$root_u $root_D:	1 ) Default partition table	2 ) Existing partition table	Enter your choice: "			read ppp			ppp=`echo $ppp`			case $ppp in			1 )				echo "The following table shows the default disk partitions: Note: The size is shown in 512-byte blocks."				dd if=/tmp/pt_def 2>/dev/null				;;			2 )				echo "The following table shows the existing disk partitions:Note: The size is shown in 512-byte blocks."				dd if=/tmp/pt_exist 2>/dev/null				;;			* )					continue				;;			esac			echo -n "Are these the disk partitions you want? (y/n): "			read ans			ans=`echo $ans`			case $ans in			n )				continue				;;			y )		            case $ppp in			    1 )				chpt -d /dev/r$root_d${root_u}a 2>/dev/null 				chpt -d /dev/r$root_d${root_u}c 2>/dev/null 				DEF_PT=1				;;			    2 )				ed /tmp/pt_exist 1>/dev/null <<xxEOFxx					2w /tmp/partxxEOFxx				set xxx `dd if=/tmp/part 2>/dev/null`				case $6 in				*b* )						echo "$ERMSG5The 'a' and 'b' partitions overlap.  You must select the default diskpartition layout to use this disk."					continue 2					;;				esac				ROOTSIZE=$5				if test $ROOTSIZE -lt $MINIROOTSIZE				then					echo "$ERMSG5The 'a' partition needs a size of at least ${MINIROOTSIZE}.  You must select the default disk partition layout to use this disk."					continue 2				fi					ed /tmp/pt_exist 1>/dev/null <<xxEOFxx					3w /tmp/partxxEOFxx				set xxx `dd if=/tmp/part 2>/dev/null`				if test $5 -lt $MINISWAPSIZE				then					echo "$ERMSG5The 'b' partition needs a size of at least ${MINISWAPSIZE}.  You mustselect the default disk partition layout to use this disk."					continue 2				fi					;;			    esac			    ;;			* )				continue				;;			esac			break		done		;;	esac	echo "The installation procedure now allocates the root file system onpartition 'a' of the system disk, ${root_d}${root_u} ${root_D}. ${LL}"	dd if=bootblks of=/dev/r${root_d}${root_u}a bs=8192 count=1 >/dev/null 2>&1	case $? in	0 )	;;	* )	echo "$ERMSG3"		rm -f /dev/*${root_d}${root_u}* 		continue ;;	esac	breakdoneumount /mnt >/dev/null 2>&1echo "Making the root file system on $root_d$root_u $root_D."(echo "Making the root file system on $root_d$root_u $root_D.") > /FILESYS.logcase $DEF_PT in1 )	ROOTSIZE=$MINIROOTSIZE	;;esacmkfs /dev/r${root_d}${root_u}a $ROOTSIZE $ns $nt 8192 1024 2>&1 >> /FILESYS.log case $? in0 )	;;* )	echo "The mkfs command failed to construct a file system onpartition 'a' of the system disk, ${root_d}${root_u}. $ERMSG1"	exit 1	;;esacmount /dev/${root_d}${root_u}a /mnt case $? in0 ) ;;* )	echo "The mount command failed to mount partition 'a' of the systemdisk, ${root_d}${root_u}. $ERMSG1"	exit 1 ;;esac	while : truedo	case $media_D in	REMOTE )		cd /mnt                rsh $SERVER -l ris -n grep "'^$CLIENT:'" clients/risdb 2>/dev/null > /tmp/ris.ent		[ -s /tmp/ris.ent ]  || {			echo "Cannot find $CLIENT in risdb file.  Check the sytem manager of your host server."			exit 1		}		DIFS="$IFS"		IFS=:		set `dd if=/tmp/ris.ent 2>/dev/null`		PRODS=$3		IFS=,		set $PRODS		RISROOT=`rsh $SERVER -l ris -n "echo $1/*/ROOT"`		IFS=$DIFS		echo "$MSG4 ${root_d}${root_u} ${root_D}. "		rsh $SERVER -l ris -n "dd if=$RISROOT bs=10k" | restore rf -		case $? in		0 )	;;		* )			echo "The root file system restore operation failed.  Please check with thesystem manager of your host server."			exit 1 ;;		esac		dd if=/netstart of=netstart 2>/dev/null		dd if=/etc/hosts of=etc/hosts 2>/dev/null		break		;;	RA60 | CDROM )		if test "$media_D" = "RA60"		then			echo "${LL}The installation procedure now checks your distribution medium,${media_d}${media_u}, to ensure that it is not corrupt. "			fsck /dev/r${media_d}${media_u}${media_p}			case $? in			0 ) ;;			* )				echo "The fsck command failed to complete a file consistency checkfor the file system on partition ${media_p} of the ra60 distribution medium,${media_d}${media_u}. $ERMSG1"				exit 1				;;			esac		fi		mkdir rootdump		mount -r /dev/${media_d}${media_u}${media_p} /rootdump 		case $? in		0 )	;;		* )			echo "The mount command was unable to mount the ra60 distribution medium,${media_d}${media_u} on /rootdump.  $ERMSG1"			exit 1	;;		esac		cd /mnt		echo "$MSG4 ${root_d}${root_u} ${root_D}."		restore rf /rootdump/$DISK_MEDIA_DIR/ROOT 		case $? in		0 )	;;		* )			echo "The restore command could not access the root file system. $ERMSG1"			exit 1	;;		esac		break		;;	RX50)		cd /mnt		echo "$MSG4 ${root_d}${root_u} ${root_D}."		restore rBf 400 /dev/${media_d}${media_u}$media_p		case $? in		0 )	;;		* )			echo -n "The restore command failed to access the RX50 distribution medium. Tocorrect the error, make sure you loaded the appropriate RX50 distributionmedium correctly in the drive. Then answer y to the following question.	Do you want to continue with the installation? (y/n) [y]: "			read resp			resp=`echo $resp`			case $resp in			n* | N*)				;;			*)				continue ;;			esac			;;		esac		break		;;	 * )		cd /mnt		mt -f /dev/nrmt0h fsf 2		echo "$MSG4 ${root_d}${root_u} ${root_D}."		restore rf /dev/nrmt0h		case $? in 		0 )	;;		* )			echo "The restore command failed to access the magnetic tape distributionmedium. $ERMSG1"			exit 1	;;		esac		break		;;	esacdoneecho "$root_D $root_d $root_u $media_D $media_d $media_u $media_p" > .minideviceecho "$ADVFLAG $DEF_PT $MACHTYPE" > .advflagdd if=/tmp/showboot of=/mnt/tmp/showboot 2>/dev/nullcd /echo "${LL}*** BOOTSTRAP COMMAND SEQUENCE ***" >> /install.logcase media_D inREMOTE )	echo "${LL}Distribution source is remote server $SERVER" >> /install.log	;;esacdd if=/tmp/showboot 2>/dev/null >> /install.logdd if=/install.log of=/mnt/install.log 2>/dev/nulldd if=/FILESYS.log of=/mnt/FILESYS.log 2>/dev/nullumount /dev/${root_d}${root_u}aecho "$MSG5 ${root_d}${root_u}  ${root_D}."fsck /dev/r${root_d}${root_u}a case $? in0 )	;;* )	echo "The fsck command failed to complete a file system consistency check for the file system on partition 'a' of the system disk, ${root_d}${root_u}.$ERMSG1 "	exit 1	;;esacecho "${LL} *** BOOTSTRAP COMMAND SEQUENCE ***"dd if=/tmp/showboot 2>/dev/null exit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -