• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

Solaris的分区

发布: 2007-6-08 22:43 | 作者: seanhe | 来源: | 查看: 29次 | 进入软件测试论坛讨论

领测软件测试网 Solaris的分区、格式化、建立文件系统的过程。

一:装载硬盘到SUN主机,开机进入系统。

二:运行format命令,先择要进行分区格式化的磁盘:

bash-2.05# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0d0
          /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
       1. c0d1
          /pci@0,0/pci-ide@7,1/ide@0/cmdk@1,0
Specify disk (enter its number): 1
selecting c0d1
Controller working list found
[disk formatted, defect list found]
Warning: Current Disk has mounted partitions.


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
        !     - execute , then return
        quit

三:输入命令fdisk,对硬盘进行分区后,退出fdisk界面。

format> fdisk  
             Total disk size is 8322 cylinders
             Cylinder size is 1008 (512 byte) blocks

                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1                 Solaris           1  8321    8321    100

SELECT ONE OF THE FOLLOWING:

   1. Create a partition
   2. Specify the active partition
   3. Delete a partition
   4. Exit (update disk configuration and exit)
   5. Cancel (exit without updating disk configuration)
Enter Selection: 5

四:输入命令partition,修改完毕后,必要要运行label命令,以把分区表写入到磁盘中,退出partition状态。

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
        ! - execute , then return
        quit
partition> label
Ready to label disk, continue? yes

partition>

五:运行命令save保存分区信息,保存文件名使用默认文件,然后退出format状态。

format> save
Saving new disk and partition definitions
Enter file name["./format.dat"]:
format>

六:建立文件系统。

bash-2.05# newfs /dev/dsk/c0d1s0
newfs: /dev/rdsk/c0d1s0 last mounted as /test
newfs: construct a new file system /dev/rdsk/c0d1s0: (y/n)? y
/dev/rdsk/c0d1s0:       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)
super-block backups (for fsck -F ufs -o b=#) at:
 32, 64608, 129184, 193760, 258336, 322912, 387488, 452064, 516640, 581216,
 3613216, 3677792, 3742368, 3806944, 3871520, 3936096, 4000672, 4065248,
 4128800, 4193376,
bash-2.05#

七:建立目录

bash-2.05#mkdir /test

八:mount分区

bash-2.05#mount /dev/dsk/c0d1s0 /test

九:完毕。

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网