你的卡驱动加了没有。
可以使用hwconfig -h来查看系统的硬件。
下面是安装的步骤:
l 系统进入单用户,运行“mkdev hd”,准备制作逻辑盘分区
# mkdev hd
Your rootdisk is attached to a SCSI controller.
Pick one of choices below or you may quit and
Invoke nkdev hd -u for a detailed usage message.
1) Add a hard disk to IDE controller
2) Add a hard disk to SCSI controller
3) Add a hard disk to IDA controller
Enter 1, 2, 3 or enter ‘q’ to quit: 2 →选择2
Enter the prefix of the SCSI host adapter that supports this device
Or press <Return> for the default:’alad’ →选择SCSI卡类型 [ips]
Enter h for a list of host adapters or enter q to quit:
Which ‘ips’ SCSI host adapter supports this device?
Select 0-6, or enter q to quit: 0 →选择SCSI卡号 [0]
The Host Adapter paramters will be automatically configured
What SCSI Bus is this device attached to?
Press <Return> to use the default: 0
Select 0-n, or h for help, or q to quit: →选择SCSI总线号 [0]
What is the Target ID for this device?
Select 0-15, or h for help, or q to quit:2 →选择设备的ID号 [1]
What is the LUN of this device?
Press <Return> to use the default: 0
Select 0-7, or h for help, or q to quit:0 →选择LUN号 [0]
l 硬盘挂接到操作系统,准备重构系统核心
You are about to add the following SCSI device:
Host
Adapter Adapter
Type Device Number ID LUN BUS
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
alad Sdsk 0 2 0 0
Update SCSI configuration? (y/n) y
The SCSI configuration file has been updated.
A new kernel must be built and rebooted before disk configuration can continue
Would you like to relink at this time? (y/n) y
The UNIX Operating System will now be rebuilt.
This will take a few minutes. Please wait.
Root for this system build is /
The UNIX kernel has been rebuilt.
Do you want this kernel to boot by default? (y/n) y
Backing up unix to unix.old
Installing new unix on the boot file system.
The kernel environment includes device node files and /etc/inittab.
The new kernel may require changes to /etc/inittab or device nodes.
Do you want the kernel environment rebuilt? (y/n) y
The kernel has been successfully linked and installed.
To activate it, reboot your system.
Setting up new kernel environment.
After the system is rebooted with the new kernel,
Reinvoke mkdev hd to initialize the new hard disk.
#
l 重新启动系统,使新系统核心生效
# sync;sync; reboot
l 进入单用户模式,再次运行硬盘加载命令
# mkdev hd
Your rootdisk is attached to a SCSI controller.
Pick one of choices below or you may quit and
Invoke nkdev hd -u for a detailed usage message.
1) Add a hard disk to IDE controller
2) Add a hard disk to SCSI controller
3) Add a hard disk to IDA controller
Enter 1, 2, 3 or enter ‘q’ to quit: 2 →选择2
Enter the prefix of the SCSI host adapter that supports this device
Or press <Return> for the default:’alad’ →选择SCSI卡类型
Enter h for a list of host adapters or enter q to quit:
Which ‘alad’ SCSI host adapter supports this device?
Select 0-6, or enter q to quit: 0 →选择SCSI卡号
The Host Adapter paramters will be automatically configured
What SCSI Bus is this device attached to?
Press <Return> to use the default: 0
Select 0-n, or h for help, or q to quit: →选择SCSI总线号
What is the Target ID for this device?
Select 0-15, or h for help, or q to quit:2 →选择设备的ID号
What is the LUN of this device?
Press <Return> to use the default: 0
Select 0-7, or h for help, or q to quit:0 →选择LUN号
During installation you may choose to overwrite all
Or part of the present contents of your hard disk.
Do you wish to continue? (y/n) y →选择“y”
l 准备对增加的硬盘进行逻辑分区
The hard disk installation program will now invoke /etc/fdisk.
Entering ‘q’ at the following menu will exit /etc/fdisk,
And the hard disk installation will continue.
If you wish to exit the entire installation at this menu,
Press the <DEL> key.
1. Display Partition Table
2. Use Entire Disk for Unix
3. Use Rest of Disk for Unix
4. Creat UNIX Partitin
5. Activate Partition
6. Delete Partition
7. Create Partition
Enter your choice or ‘q’ to quit: 2 →选择2
Current Hard Disk Drive: /dev/rdsk/3s0
+------------+---------+--------+--------+-------+---------+
| Partition | Status | Type | Start | End | Size |
+------------+---------+--------+--------+--------+--------+
| 1 | Active | UNIX | 1 | 528359 | 528359 |
+------------+---------+--------+--------+--------+--------+
Total disk size: 528615 tracks (256 reserved for masterboot and diagnostics)
Press <Return> to continue →选择回车
1. Display Partition Table
2. Use Entire Disk for Unix
3. Use Rest of Disk for Unix
4. Creat UNIX Partitin
5. Activate Partition
6. Delete Partition
7. Create Partition
Enter your choice or ‘q’ to quit: q →选择q
l 对于新创建的硬盘分区, 必须进行磁盘扫描,以保证数据空间的安全可靠
SCSI VERSION = 2
Vendor = MEGAR1 D
Product = LOGICAL DRIVE 1
1. Scan entire UNIX Partition
2. Scan a specified range of blocks
3. Scan a specified filesystem
4. List current bad block table
5. Add entries to bad block table
6. Delete entries from bad block table
7. Clear bad block table
8. Re-allocate bad blocks
Enter your choice or ‘q’ to quit: q →选择1
Select type of scan .
1. Thorough scan (6 Mbytes/min approx)
2. Quick scan (18 Mbytes/min approx)
Enter your choice or ‘q’ to quit: 2 →选择2
Do you want this to be a destructive scan ? (y/n) y →选择y
The contents of the region you are scanning will be destroyed.
Do you wish to continue ? (y/n) y →选择y
Scanning in progress, type < DEL> to quit at any time
Scanning block xxxxxx, 15% complete, bad block count = 0.
0 bad blocks have been found.
Enter the number of bad blocks to allocate space for
Or press < Return > to use the exising value of 511. →选择回车
WARNING: changing the value will remove all filesystem to this partion:0
当完成100%,并且bad block count为 0时,表示整个UNIX分区没有坏块,已经准备就绪。
l 盘分区并命名
+-------------------+-------------------+--------------+--+------------------+-----------------------+
| Name | Type | New FS | # | First Block | Last Block |
+-------------------+-------------------+--------------+--+------------------+-----------------------+
| ware | NON FS | no | 0 | 0 | 5000 |
| pp0 | NON FS | no | 1 | 8000 | 2008000 |
| pp1 | NON FS | no | 2 | 2008001 | 4008000 |
| pp2 | NON FS | no | 3 | 4008001 | 6008000 |
| dd2 | HTFS | yes | 4 | 6008001 | 16000000 |
| | NOT USED | no | 5 | - | - |
| | NOT USED | no | 6 | - | - |
| hd1a | WHOLE DISK | no | 7 | 0| 16643307 |
+-------------------+-------------------+--------------+--+------------------+-----------------------+
16635307 1K blocks for divisions, 8001 1K blocks reserved for the system
n[ame] Name or rename a division.
c[reate] Create a new file system on this division.
t[ype] Select or change filesystem type on new filesystems.
p[revent] Prevent a new file system from being created on this division.
s[tart] Start a division on a different block.
e[nd] End a division on a different block.
r[estore] Restore the original division table.
Enter your choice or q to quit:
i[nstall] Install the division set-up shown
r[eturn] Return to the previous menu
e[xit] Exit without installing a division table
Please enter your choice: I →选择 i
l 在对个分区命名及定义文件系统类型后,准备制作测试用文件系统“/dd2”
#mkdev fs
Filesystem Initialization Program
This program performs maintenance tasks required to add or delete
An existing filesystem . Would you like to:
1.Add a new filesystem to system
2.Remove a filesystem.
Select an option or enter q to quit: 1 →选择 1
Enter a device name and press <Return> or q to quit: /dev/dd2
Enter a directory name and press <Return> or q to quit: /dd2
Reserving slots in lost+found directory . . .
When entering multiuser mode:
1. Always mount /dev/dd2
2. Never mount /dev/dd2
3. Prompt before mounting /dev/dd2
Select an option: 2 →选择 2
Do you want to allow users to mount this file systems? (y/n) y
Updating system files . . .
Filesystem has been successfully added.
#
本文地址:http://com.8s8s.com/it/it34304.htm