이 름 : 바다아이
|
조회수 : 14699
짧은 주소 : https://www.bada-ie.com/su/?521591799019
익숙하지 않아서 그렇지 리눅스랑 별 차이가 없습니다.
명령어 사용법만 다를 뿐이고 장치명만 다를 뿐입니다.
리눅스는 /dev/sda, /dev/sdb 이런 식인데.. freebsd 는 /dev/da0, /dev/da1 이런 식이고요..
하위 파티션은 리눅스는 sda1, sda2인데 freebsd 는 da0p1, da0p2 요런 식입니다. 물론 장치명은 다를 수 있습니다.
디스크를 인식할 때 gpt 냐 혹은 mbr 이냐 사용 방법에 따라서 조금씩 파티션 방법이 다릅니다. 참고하세요...
자세한 것은 아래 링크 가서 공부해 보세요...
원리만 알면 되는데 익숙치 않아서 어려워 보이는 것입니다. 알면 껌입니다. 물론 알고도 또 까먹습니다. ^^;
This section describes how to add a new SATA disk to a machine that currently only has a single drive. First, turn off the computer and install the drive in the computer following the instructions of the computer, controller, and drive manufacturers. Reboot the system and become root.
Inspect /var/run/dmesg.boot to ensure the new disk was found. In this example, the newly added SATA drive will appear as ada1.
For this example, a single large partition will be created on the new disk. The GPT partitioning scheme will be used in preference to the older and less versatile MBR scheme.
Note:
If the disk to be added is not blank, old partition information can be removed with gpart delete. See gpart(8) for details.
The partition scheme is created, and then a single partition is added. To improve performance on newer disks with larger hardware block sizes, the partition is aligned to one megabyte boundaries:
A file system is created in the new partition on the new disk:
#newfs -U /dev/ada1p1
An empty directory is created as a mountpoint, a location for mounting the new disk in the original disk's file system:
#mkdir /newdisk
Finally, an entry is added to /etc/fstab so the new disk will be mounted automatically at startup:
/dev/ada1p1 /newdisk ufs rw 2 2
The new disk can be mounted manually, without restarting the system:
#mount /newdisk
Nowadays you should use gpart to partition the disk (fdisk/disklabel are being overtaken by gpart since it supports GPT), newfs to format UFS[2] partitions and zpool to create ZFS filesystems. For example to initialize a new, unused disk with a UFS filesystem:
If the disk is already partitioned and you want to repartition it, see what's already present with:
gpart show adaX
You can then delete partitions using "gpart delete -i y adaX:
gpart delete -i 4 adaX
You can use "gpart destroy" to destroy the scheme if you want to change it from MBR to GPT for example:
gpart destroy adaX
gpart create -s gpt adaX
GPT is generally preferred nowadays unless you have to interoperate with systems which don't understand it since it can break the 2TB limit and have up to 2^32-1 partitions (in theory!).
Copyright ⓒ 2001.12. bada-ie.com. All rights reserved.
이 사이트는 리눅스에서 firefox 기준으로 작성되었습니다. 기타 브라우저에서는 다르게 보일 수 있습니다.
[ Ubuntu + GoLang + PostgreSQL + Mariadb ]
서버위치 : 오라클 클라우드 춘천 실행시간 : 0.31172 초 to webmaster... gogo sea. gogo sea.