Oracle® Solaris 11.2의 장치 관리

인쇄 보기 종료

업데이트 날짜: 2014년 7월
 
 

USB 대용량 저장 장치에서 분할 영역을 수정하고 PCFS 파일 시스템을 만드는 방법

다음 단계는 기존 분할 영역을 삭제하고 새 분할 영역을 만든 다음 USB 장치에 PCFS 파일 시스템을 만드는 방법을 설명합니다. 이 작업을 수행하기 전에 모든 데이터를 백업해야 합니다.

  1. 관리자로 전환합니다.
  2. 다음과 같이 분할 영역을 수정합니다.
    1. fdisk 유틸리티를 시작합니다.
      # fdisk device
    2. 표시되는 대화형 인터페이스에서 다음 작업에 대한 프롬프트가 나타나면 적절한 옵션을 선택합니다.
      • 분할 영역을 삭제합니다.

      • 삭제할 분할 영역 번호를 지정합니다.

      • 분할 영역을 만듭니다.

      • 만들려는 분할 영역 유형을 선택합니다.

      • 분할 영역에 사용할 디스크 공간 비율을 지정합니다.

      • 새 분할 영역을 활성 또는 비활성으로 지정합니다.

      • 디스크 구성 업데이트 옵션을 선택하고 종료합니다.

  3. 필요한 경우 장치를 마운트 해제합니다.

    USB 장치의 마운트 해제에 대한 자세한 내용은 USB 대용량 저장 장치를 마운트 또는 마운트 해제하는 방법을 참조하십시오.

  4. 이 분할 영역에 PCFS 파일 시스템을 만듭니다.
    # mkfs -F FS-type -o FS-type-specific-option raw-device-file
    
예 13-1  USB 디스켓의 분할 영역 수정

이 예에서는 c3t0d0p0의 디스크 구성이 수정됩니다. 먼저 분할 영역이 생성됩니다.

# fdisk /dev/rdsk/c3t0d0p0
      Total disk size is 29 cylinders
Cylinder size is 2048 (512 byte) blocks

Cylinders
Partition   Status    Type          Start   End   Length    %
=========   ======    ============  =====   ===   ======   ===
1       Active    Solaris2          1    28      28     97

SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 3Partition will be deleted.


      Total disk size is 29 cylinders
Cylinder size is 2048 (512 byte) blocks

Cylinders
Partition   Status    Type          Start   End   Length    %
=========   ======    ============  =====   ===   ======   ===
1       Active    Solaris2          1    28      28     97

SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Specify the partition number to delete (or enter 0 to exit): 1Partition number to delete.

Partition deleted.Deletion is completed.


      Total disk size is 29 cylinders
Cylinder size is 2048 (512 byte) blocks

Cylinders
Partition   Status    Type          Start   End   Length    %
=========   ======    ============  =====   ===   ======   ===

WARNING: no partitions are defined!

SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 1Partition will be created.


      Total disk size is 29 cylinders
Cylinder size is 2048 (512 byte) blocks

Cylinders
Partition   Status    Type          Start   End   Length    %
=========   ======    ============  =====   ===   ======   ===

WARNING: no partitions are defined!

SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Select the partition type to create:
1=SOLARIS2  2=UNIX        3=PCIXOS     4=Other
5=DOS12     6=DOS16       7=DOSEXT     8=DOSBIG
9=DOS16LBA  A=x86 Boot    B=Diagnostic C=FAT32
D=FAT32LBA  E=DOSEXTLBA   F=EFI        0=Exit? cPartition type is selected.


       Total disk size is 29 cylinders
Cylinder size is 2048 (512 byte) blocks

Cylinders
Partition   Status    Type          Start   End   Length    %
=========   ======    ============  =====   ===   ======   ===

WARNING: no partitions are defined!

SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Select the partition type to create:
Specify the percentage of disk to use for this partition (or type "c" to
specify the size in cylinders). 100Percentage of disk space is specified.


              Total disk size is 29 cylinders
Cylinder size is 2048 (512 byte) blocks

Cylinders
Partition   Status    Type          Start   End   Length    %
=========   ======    ============  =====   ===   ======   ===

WARNING: no partitions are defined!

SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Select the partition type to create:
Should this become the active partition? If yes, it  will be activated
each time the computer is reset or turned on.
Please type "y" or "n". nInactive partition is selected.


      Total disk size is 29 cylinders
Cylinder size is 2048 (512 byte) blocks

Cylinders
Partition   Status    Type          Start   End   Length    %
=========   ======    ============  =====   ===   ======   ===
1                 Win95 FAT32       1    28      28     97

SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 5Disk configuration will be updated.

# mkfs -F pcfs -o fat=32 /dev/rdsk/c3t0d0p0:c
Construct a new FAT file system on /dev/rdsk/c3t0d0p0:c: (y/n)? yFile system is created.