Handbook:SPARC/Blocks/Disks/ko

공간 분할
이론적으로는 리눅스 시스템을 전체 디스크에 넣을 수 있지만, 실제론 거의 불가능합니다. 대신 전체 블록 장치를 작게 나누어 더욱 관리하기 쉬운 블록 장치를 만들 수 있습니다. 이를 파티션 또는 슬라이스라고 부릅니다.

첫번째 SCSI 디스크의 첫번째 파티션은 이고 두번째 파티션은 이런식입니다.

썬 시스템의 세번째 파티션은 "전체 디스크" 슬라이스로 설정합니다. 이 파티션에는 파일 시스템을 포함해서는 안됩니다.

DOS 파티션 형태를 쓰던 사용자는 썬 디스크 레이블에서 "주" 파티션과 "확장" 파티션이 없음을 참고해야 합니다. 대신 드라이브별로 최대 8개의 파티션을 사용할 수 있으며 세번째 파티션은 예약되어 있습니다.

기본 분할 형태
아래의 표에서는 대부분의 시스템에서의 적합한 시작 방식을 제안합니다. 어디까지나 예제이기 때문에 다른 분할 형태를 사용하셔도 됩니다.

디스크 공간 분할에 fdisk 사용
The following parts explain how to create the example partition layout described previously, namely:

Change the partition layout as required. Remember to keep the root partition entirely within the first 2 GB of the disk for older systems. There is also a 15-partition limit for SCSI and SATA.

Firing up fdisk
Start fdisk with the disk as argument:

To view the available partitions, type in :

Note the Sun disk label in the output. If this is missing, the disk is using the DOS-partitioning, not the Sun partitioning. In this case, use to ensure that the disk has a Sun partition table:

The right values can be found in the documentation of the hard disk itself. The 'auto configure' option does not usually work.

기존 파티션 삭제
It's time to delete any existing partitions. To do this, type and hit. Give the partition number to delete. To delete a pre-existing {{Path|/dev/sda1||, type:

{{RootCmd|prompt=Command (m for help): |d|output= Partition number (1-4): 1 }}

Do not delete partition 3 (whole disk). This is required. If this partition does not exist, follow the "Creating a Sun Disklabel" instructions above.

After deleting all partitions except the Whole disk slice,a partition layout similar to the following should show up:

{{RootCmd|prompt=Command (m for help): |p|output= Disk /dev/sda (Sun disk label): 64 heads, 32 sectors, 8635 cylinders Units = cylinders of 2048 * 512 bytes Device Flag   Start       End    Blocks   Id  System /dev/sda3            0      8635   8842240    5  Whole disk }}

Creating the root partition
Next create the root partition. To do this, type to create a new partition, then type  to create the partition. When prompted for the first cylinder, hit. When prompted for the last cylinder, type +512M to create a partition 512 MB in size. Make sure that the entire root partition fits within the first 2 GB of the disk. The output of these steps is as follows:

When listing the partitions (through ), the following partition printout is shown:

Creating a swap partition
Next, let's create the swap partition. To do this, type to create a new partition, then  to create the second partition,  in our case. When prompted for the first cylinder, hit. When prompted for the last cylinder, type +512M to create a partition 512 MB in size. After this, type to set the partition type, and then type in 82 to set the partition type to "Linux Swap". After completing these steps, typing should display a partition table that looks similar to this:

Creating the usr, var and home partitions
Finally, let's create the, and  partitions. As before, type to create a new partition, then type  to create the third partition (we do not count the whole disk as being a partition),  in our case. When prompted for the first cylinder, hit. When prompted for the last cylinder, enter +2048M to create a partition 2 GB in size. Repeat this process for and, using the desired sizes. When finished, the partition table will look similar to the following:

Save and exit
Save the partition layout and exit fdisk by typing :