sudo fdisk -l 명령어를 통해 현재 서버에 HDD가 설치 되어 있는지 확인Disk /dev/sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST500DM002-1BD14
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/nvme0n1: 119.24 GiB, 128035676160 bytes, 250069680 sectors
Disk model: SAMSUNG MZVLQ128HBHQ-000
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 256B4EEE-E592-4B15-9904-0A73936CF55E
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 2203647 2201600 1G EFI System
/dev/nvme0n1p2 2203648 6397951 4194304 2G Linux filesystem
/dev/nvme0n1p3 6397952 250066943 243668992 116.2G Linux filesystem
Disk /dev/mapper/ubuntu--vg-ubuntu--lv: 58.09 GiB, 62377689088 bytes, 121831424 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
df -h명령어를 통해 사용 중인 디스크 확인Filesystem Size Used Avail Use% Mounted on
tmpfs 777M 4.6M 772M 1% /run
efivarfs 128K 62K 62K 50% /sys/firmware/efi/efivars
/dev/mapper/ubuntu--vg-ubuntu--lv 57G 7.2G 47G 14% /
tmpfs 3.8G 0 3.8G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/nvme0n1p2 2.0G 186M 1.7G 11% /boot
/dev/nvme0n1p1 1.1G 6.2M 1.1G 1% /boot/efi
tmpfs 777M 12K 777M 1% /run/user/1000
- 마운트 할 디렉터리 생성
sudo mkdir -p /mnt/hdd1
- 디스크 마운트 명령어
sudo mount /dev/sda /mnt/hdd1
df -h명령어를 통해 마운트 확인Filesystem Size Used Avail Use% Mounted on
tmpfs 777M 4.6M 772M 1% /run
efivarfs 128K 62K 62K 50% /sys/firmware/efi/efivars
/dev/mapper/ubuntu--vg-ubuntu--lv 57G 7.2G 47G 14% /
tmpfs 3.8G 0 3.8G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/nvme0n1p2 2.0G 186M 1.7G 11% /boot
/dev/nvme0n1p1 1.1G 6.2M 1.1G 1% /boot/efi
/dev/sda 458G 28K 435G 1% /mnt/hdd1
tmpfs 777M 12K 777M 1% /run/user/1000
- 서버 부팅 시에 자동 마운트가 되도록 설정 : /etc/fstab 파일 수정 필요