免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1333 | 回复: 3

Solaris 8 for Intel 新增硬盘安装步骤 [复制链接]

论坛徽章:
0
发表于 2004-05-04 10:20 |显示全部楼层
Solaris 8 for Intel 新增硬盘安装步骤


1、连接好新增加的硬盘设备
2、启动Solaris
3、在系统运行到Select boot (b) or interpreter (i)提示符时,输入:
   b -r (注:-r参数是告诉系统在系统重新引导时要进行重新配置)
4、以root用户登陆Solaris
5、使用format对磁盘进行分区:
# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0d1 <DEFAULT cyl 8298 alt 2 hd 16 sec 63>;
          /pci@0,0/pci-ide@7,1/ide@0/cmdk@1,0
       1. c1d0 <DEFAULT cyl 8319 alt 2 hd 16 sec 63>;
          /pci@0,0/pci-ide@7,1/ide@1/cmdk@0,0
       2. c1d1 <DEFAULT cyl 8320 alt 2 hd 16 sec 63>;
          /pci@0,0/pci-ide@7,1/ide@1/cmdk@1,0
Specify disk (enter its number): 2 (注:硬盘2为新增硬盘)
selecting c1d1
Controller working list found
[disk formatted, defect list found]


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        fdisk      - run the fdisk program
        repair     - repair a defective sector
        show       - translate a disk address
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        volname    - set 8-character volume name
        !<cmd>;     - execute <cmd>;, then return
        quit
format>; partition
Please run fdisk first.
format>; fdisk
No fdisk table exists. The default partition for the disk is:

  a 100% "SOLARIS System" partition

Type "y" to accept the default partition, otherwise type "n" to edit the
partition table.
y

WARNING: Solaris fdisk partition changed - Please relabel the disk
format>; partition


PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd>; - execute <cmd>;, then return
        quit
partition>; print
Current partition table (original):
Total disk cylinders available: 8319 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0 unassigned    wm       0               0         (0/0/0)          0
  1 unassigned    wm       0               0         (0/0/0)          0
  2     backup    wu       0 - 8318        4.00GB    (8319/0/0) 8385552
  3 unassigned    wm       0               0         (0/0/0)          0
  4 unassigned    wm       0               0         (0/0/0)          0
  5 unassigned    wm       0               0         (0/0/0)          0
  6 unassigned    wm       0               0         (0/0/0)          0
  7 unassigned    wm       0               0         (0/0/0)          0
  8       boot    wu       0 -    0        0.49MB    (1/0/0)       1008
  9 alternates    wm       1 -    2        0.98MB    (2/0/0)       2016

partition>; 3
Part      Tag    Flag     Cylinders        Size            Blocks
  3 unassigned    wm       0               0         (0/0/0)          0

Enter partition id tag[unassigned]: stand
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[0b, 0c, 0.00mb, 0.00gb]: 2g
partition>; print
Current partition table (unnamed):
Total disk cylinders available: 8319 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0 unassigned    wm       0               0         (0/0/0)          0
  1 unassigned    wm       0               0         (0/0/0)          0
  2     backup    wu       0 - 8318        4.00GB    (8319/0/0) 8385552
  3      stand    wm       0 - 4161        2.00GB    (4162/0/0) 4195296
  4 unassigned    wm       0               0         (0/0/0)          0
  5 unassigned    wm       0               0         (0/0/0)          0
  6 unassigned    wm       0               0         (0/0/0)          0
  7 unassigned    wm       0               0         (0/0/0)          0
  8       boot    wu       0 -    0        0.49MB    (1/0/0)       1008
  9 alternates    wm       1 -    2        0.98MB    (2/0/0)       2016

partition>; quit


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        fdisk      - run the fdisk program
        repair     - repair a defective sector
        show       - translate a disk address
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        volname    - set 8-character volume name
        !<cmd>;     - execute <cmd>;, then return
        quit

format>; label
Ready to label disk, continue? y
format>;quit

6、格式化分区:
# newfs -Nv /dev/dsk/c1d1s3
mkfs -F ufs -o N /dev/rdsk/c1d1s3 4195296 63 16 8192 1024 64 3 60 6144 t 0 -1 8 7
/dev/rdsk/c1d1s3:       4195296 sectors in 4162 cylinders of 16 tracks, 63 sectors
        2048.5MB in 66 cyl groups (64 c/g, 31.50MB/g, 5312 i/g)
超块 (fsck -F ufs -o b=#) 备份在:
32, 64608, 129184, 193760, 258336, 322912, 387488, 452064, 516640, 581216,
645792, 710368, 774944, 839520, 904096, 968672, 1032224, 1096800, 1161376,
1225952, 1290528, 1355104, 1419680, 1484256, 1548832, 1613408, 1677984,
1742560, 1807136, 1871712, 1936288, 2000864, 2064416, 2128992, 2193568,
2258144, 2322720, 2387296, 2451872, 2516448, 2581024, 2645600, 2710176,
2774752, 2839328, 2903904, 2968480, 3033056, 3096608, 3161184, 3225760,
3290336, 3354912, 3419488, 3484064, 3548640, 3613216, 3677792, 3742368,
3806944, 3871520, 3936096, 4000672, 4065248, 4128800, 4193376,

# newfs -v -m 5 /dev/dsk/c1d1s3
newfs: construct a new file system /dev/rdsk/c1d1s3: (y/n)? y
mkfs -F ufs /dev/rdsk/c1d1s3 4195296 63 16 8192 1024 64 5 60 6144 t 0 -1 8 7
/dev/rdsk/c1d1s3:       4195296 sectors in 4162 cylinders of 16 tracks, 63 sectors
        2048.5MB in 66 cyl groups (64 c/g, 31.50MB/g, 5312 i/g)
超块 (fsck -F ufs -o b=#) 备份在:
32, 64608, 129184, 193760, 258336, 322912, 387488, 452064, 516640, 581216,
645792, 710368, 774944, 839520, 904096, 968672, 1032224, 1096800, 1161376,
1225952, 1290528, 1355104, 1419680, 1484256, 1548832, 1613408, 1677984,
1742560, 1807136, 1871712, 1936288, 2000864, 2064416, 2128992, 2193568,
2258144, 2322720, 2387296, 2451872, 2516448, 2581024, 2645600, 2710176,
2774752, 2839328, 2903904, 2968480, 3033056, 3096608, 3161184, 3225760,
3290336, 3354912, 3419488, 3484064, 3548640, 3613216, 3677792, 3742368,
3806944, 3871520, 3936096, 4000672, 4065248, 4128800, 4193376,

7、建立装载点:
# mkdir /test
# mount /dev/dsk/c1d1s3 /test
# cd /test
# ls
lost+found
#
8、安装完毕。

论坛徽章:
0
发表于 2004-05-04 11:34 |显示全部楼层

Solaris 8 for Intel 新增硬盘安装步骤

不错

论坛徽章:
0
发表于 2004-05-05 06:53 |显示全部楼层

Solaris 8 for Intel 新增硬盘安装步骤

是否也适用与S9啊?

论坛徽章:
0
发表于 2004-05-05 22:50 |显示全部楼层

Solaris 8 for Intel 新增硬盘安装步骤

应该也适用S9的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP