60.Unix2008. 11. 7. 17:20
반응형

root 로 /etc/format  명령을 내리면 장착되있는 하드의 리스트가 나옵니다..


# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <SEAGATE-ST318275LC-0001 cyl 11697 alt 2 hd 10 sec 304>
          /pci@1f,4000/scsi@3/sd@0,0
       1. c0t8d0 <SEAGATE-ST318275LC-0001 cyl 11697 alt 2 hd 10 sec 304>
          /pci@1f,4000/scsi@3/sd@8,0
       2. c0t10d0 <SEAGATE-ST318406LC-0109 cyl 26123 alt 2 hd 2 sec 686>
          /pci@1f,4000/scsi@3/sd@a,0


2번 디스크를 선택 하겠습니다


Specify disk (enter its number): 2
selecting c0t10d0
[disk formatted]
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
        repair     - repair a defective sector
        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
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit


여기서 파티션을 선택


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: 26123 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0 unassigned    wm       0                0         (0/0/0)            0
  1 unassigned    wu       0                0         (0/0/0)            0
  2     backup    wu       0 - 26122       17.09GB    (26123/0/0) 35840756
  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       home    wm       0 - 13756        9.00GB    (13757/0/0) 18874604
  7       home    wm   13757 - 26121        8.09GB    (12365/0/0) 16964780


파티션 번호를 선택하시고


partition> 6
Part      Tag    Flag     Cylinders         Size            Blocks
  6       home    wm       0 - 13756        9.00GB    (13757/0/0) 18874604


Enter partition id tag[home]: home

원하시는 유형선택
Enter partition permission flags[wm]:

적절한 퍼미션 선택
Enter new starting cyl[0]:

시작하는 사이클 선택
Enter partition size[18874604b, 13757c, 13756e, 9216.12mb, 9.00gb]: 13757c

파티션 영역 지정

 
partition> quit


format> quit


이제 포맷을 해야죠


newfs /dev/dsk/c0t10d0s6   6번째파티션을 포맷합니다



그다음 파일시스템 검사를


fsck /dev/dsk/c0t10d0s6


그다음 적절한 디렉토리생성후


마운트 시키면 됩니다..


mount /dev/dsk/c0t10d0s6 /export/home1


df -h 를 눌러 확인 후 사용하시면 됩니다..



vfstab설정 (자동마운트 설정파일)

설정전

# vi /etc/vfstab
"/etc/vfstab" 9 행, 319 문자
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c0t0d0s1       -       -       swap    -       no      -
/dev/dsk/c0t0d0s0       /dev/rdsk/c0t0d0s0      /       ufs     1       no      -
/dev/dsk/c0t0d0s7       /dev/rdsk/c0t0d0s7      /export/home    ufs     2       yes     -
swap     -       /tmp    tmpfs   -       yes     -


설정후


# vi /etc/vfstab
"/etc/vfstab" 9 행, 319 문자
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c0t0d0s1       -       -       swap    -       no      -
/dev/dsk/c0t0d0s0       /dev/rdsk/c0t0d0s0      /       ufs     1       no      -
/dev/dsk/c0t0d0s7       /dev/rdsk/c0t0d0s7      /export/home    ufs     2       yes     -
/dev/dsk/c0t10d0s6      /dev/rdsk/c0t10d0s6     /export/home1   ufs     3       yes     -
/dev/dsk/c0t10d0s7      /dev/rdsk/c0t10d0s7     /export/home2   ufs     4       yes     -
swap    -       /tmp    tmpfs   -       yes     -


Posted by 1010