정리
1. 부팅시 장치 인식하도록 # touch /reconfigure 파일 생성 후 종료
2. 디스크 삽입 후 부팅
3. # format 명령후 디스크 번호 선택하고 fdisk 실행
4. fdisk 완료 후 part 실행
5. part 로 첫번째 파티션인 0번부터 선택해서 파티션 나눔
※ 주의!! 2번은   2     backup    wu       0 - 2077     1022.77MB    (2078/0/0) 2094624 이므로 건드리지 말기.
    0,1,3,4,5,6,7번 순서로 파티션 지정
6. 이름, 플래그, 퍼스트실린더, 용량 순서로 지정하기
※ 주의!! 실린더 번호 부여할때 주의. 전 실린더 마지막번호의 다음번호로 지정해주기.
    실린더 번호 보는 방법은 print 명령어. 여러개의 파티션 나눌때 나머지 용량 주고 싶을때는 $ 표시해주기.
7. 모든 과정 마치면 label 명령으로 작업내용 저장하고 quit로 나가기

8. 포맷명령어
# newfs /dev/rdsk/c0d1s0
디스크 번호 주의해서 입력하기

9. 마운트
# mkdir /data1
# mount /dev/dsk/c0d1s0 /data1
디렉토리 생성해서 마운트 시키기

10. 재부팅시 마운트 인식하게 하기 위해서는
# vi /etc/vfstab
으로 현재 마운트 정보 입력시키기

11. 장치관리자 명령어
# prtconf 
# prtonf | grep -v not



이하 실습-------------------------------------------

# touch /reconfigure

재부팅시 장치 검색하도록 파일 생성후 장치 종료


# init 0

끄기


VMware에서 하드추가하기
Add로 1GB추가
솔라리스 전원 켜기

# format


 연결된 하드 보여줌
솔라리스 하드번호
c (controller name)
t (target number)
d (disk number)
s (slice number)

 0. c0d0 <DEFAULT cyl 44381 alt 2 hd 15 sec 63>
      /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
 1. c0d1 <DEFAULT cyl 2077 alt 2 hd 16 sec 63>
      /pci@0,0/pci-ide@7,1/ide@0/cmdk@1,0

Specify disk (enter its number): 1

 연결한 1번하드 선택

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> part
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


format> part
파티션을 나누기 위해 part를 쓰면  fdisk 하라고 한다.
partition> fdisk
 이하드를 솔라리스에서 다쓸꺼냐?
y
 fdisk 끝


format> part
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> 0
Part      Tag    Flag     Cylinders        Size            Blocks
  0 unassigned    wm       0               0         (0/0/0)          0

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

Part      Tag    Flag     Cylinders        Size            Blocks
  0 unassigned    wm       0 -  609      300.23MB    (610/0/0)   614880
  1 unassigned    wm       0               0         (0/0/0)          0
  2     backup    wu       0 - 2077     1022.77MB    (2078/0/0) 2094624
  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

pratition> part
partition> 0
 이름쳐라:
 플래그쳐라:
 퍼스트실린더:
 용량: 300mb
>print


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

Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 610
Enter partition size[0b, 0c, 610e, 0.00mb, 0.00gb]: $
partition> label
Ready to label disk, continue? y

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> quit



partition>1
 이름쳐라:
 플래그쳐라:
 퍼스트실린더: 610
 용량: $    --->남은용량 다 줘라 $
> label
 정말저장? y

 파티션 작업 끝
> quit
format> quit


포맷하기
# newfs /dev/rdsk/c0d1s0
y

# newfs /dev/rdsk/c0d1s1
y

마운트하기
# mkdir /data1
# mkdir /data2
# mount /dev/dsk/c0d1s0 /data1
# mount /dev/dsk/c0d1s1 /data2

Posted by 딩구르
,