
๊ฐ์ ์๋ฒ์ ๋ฌผ๋ฆฌ์ ์ธ ํ๋๋์คํฌ๋ฅผ ์ฅ์ฐฉํ๊ณ ์ฌ์ฉํ ์ ์๋ ํ๊ฒฝ์ ์ค์ตํด ๋ด ๋๋ค.
๋จผ์ , ์๋ฒ์ ์๋ก์ด ํ๋๋์คํฌ(SCSI) 1GB๋ฅผ ์ถ๊ฐ๋ก ์ฅ์ฐฉํ ๋ค์์ ์๋ฒ๋ฅผ ์คํ์ํต๋๋ค.

ํํฐ์ ๋ง๋ค๊ธฐ fdisk
ํฐ๋ฏธ๋์์ fdisk๋ก ํํฐ์ ๋ช ๋ น์ด ์ ๋ ฅ
root@server:~/๋ฐํํ๋ฉด# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.34).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x2d3dee30.
Command (m for help):
m์ ์ ๋ ฅ์ ๋ค์ํ ๋ช ๋ ์ด ํ์ธ ๊ฐ๋ฅ
๋ฌผ๋ฆฌ์ ์ธ ํ๋๋์คํฌ์ ์๋ก์ด ํํฐ์ ์์ฑ (ํํฐ์ ์ ์ด 4๊ฐ๋ก ๋ถํ ๊ฐ๋ฅ)
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-2097151, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-2097151, default 2097151):
Created a new partition 1 of type 'Linux' and of size 1023 MiB.
๋ถํ ์ ์ํ ๊ฒฝ์ฐ Partition number์์ ์ํ๋ ๋งํผ์ ํํฐ์ ๊ฐ์ ์ ๋ ฅ, ๊ทธ๋ฆฌ๊ณ 300m ์ด๋ฐ์์ผ๋ก ํํฐ์ ์ง์ . ์์ธํ ์ฌํญ์ ์ฑ์งํผํฐ๋ ๊ตฌ๊ธ์ ํตํด ๊ฒ์
์ ์ฉ์ w
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
ํ์ผ์์คํ ์์ฑ(ํฌ๋งท)
mkfs.ext4 /dev/sdb1
Mount
mkdir /mydata // ์์์ ํ์ผ ์์ฑ
mount /dev/sdb1 /mydata // mount
df // ํ์ธ ๋ช
๋ น์ด
Reboot ํด๋ ์ ์งํ๋ ๋ฐฉ๋ฒ
gedit /etc/fstab
-- in the file
/dev/sdb1 /mydata ext4 defaults 0 0
'Computer Science > Linux (Ubuntu)' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
16 ์ฟผํฐ(quota) (1) | 2024.02.09 |
---|---|
15 RAID, LVM (0) | 2024.02.09 |
13 SATA & SCSI (0) | 2024.02.08 |
12 ์ฌ๋ฌ๊ฐ์ง ํ๋ก๊ทธ๋จ (0) | 2024.02.08 |
11 ์๊ธ๋ณต๊ตฌ (feat, GRUB ๋ถํธ๋ก๋) (0) | 2024.02.08 |
๋๊ธ