728x90
디스크 상세 포맷 및 파티션 구조 확인
bluesanta@bluesanta-AI-Series:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 4K 1 loop /snap/bare/5
...
loop14 7:14 0 531.4M 1 loop /snap/gnome-42-2204/247
nvme1n1 259:0 0 1.9T 0 disk
nvme0n1 259:1 0 1.8T 0 disk
├─nvme0n1p1 259:2 0 1G 0 part /boot/efi
└─nvme0n1p2 259:3 0 1.8T 0 part /
디스크 상태 확인
bluesanta@bluesanta-AI-Series:/dev$ lsblk /dev/nvme1n1
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme1n1 259:0 0 1.9T 0 disk
파티션 생성 (fdisk)
- g : GPT 파티션 테이블 생성 (2TB 이상 드라이브 권장)
- n : 새 파티션 추가
- Enter (Partition number: 1)
- Enter (First sector: 기본값)
- Enter (Last sector: 기본값 - 전체 용량 사용)
- w : 설정 저장 및 종료
bluesanta@bluesanta-AI-Series:/dev$ sudo fdisk /dev/nvme1n1
Welcome to fdisk (util-linux 2.39.3).
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 (MBR) disklabel with disk identifier 0x2b149640.
Command (m for help): p
Disk /dev/nvme1n1: 1.86 TiB, 2048408248320 bytes, 4000797360 sectors
Disk model: JAZER P3500 2TB NVMe M.2
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: dos
Disk identifier: 0x2b149640
Command (m for help): g
Created a new GPT disklabel (GUID: 2DF2A5AF-C7BD-4750-A91B-835516230B84).
Command (m for help): n
Partition number (1-128, default 1): 1
First sector (2048-4000797326, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-4000797326, default 4000796671):
Created a new partition 1 of type 'Linux filesystem' and of size 1.9 TiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
포맷 (mkfs.ext4)
bluesanta@bluesanta-AI-Series:/dev$ sudo mkfs.ext4 /dev/nvme1n1p1
mke2fs 1.47.0 (5-Feb-2023)
Discarding device blocks: done
Creating filesystem with 500099328 4k blocks and 125026304 inodes
Filesystem UUID: 5d5c123d-b1e7-4a57-80b6-8bb577431383
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848
Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done
마운트 포인트 생성 및 연결
bluesanta@bluesanta-AI-Series:/dev$ sudo mkdir /bluesanta
bluesanta@bluesanta-AI-Series:/dev$ sudo mount /dev/nvme1n1p1 /bluesanta/
부팅 시 자동 마운트 설정 (UUID)
UUID 확인
bluesanta@bluesanta-AI-Series:/bluesanta$ sudo blkid /dev/nvme1n1p1
/dev/nvme1n1p1: UUID="5d5c123d-b1e7-4a57-80b6-8bb577431383" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="84b0122a-b8ff-4ed6-a052-14bff6fc2509"
fstab 수정
bluesanta@bluesanta-AI-Series:/bluesanta$ sudo vi /etc/fstab
파일 맨 아래에 한 줄을 추가
UUID=5d5c123d-b1e7-4a57-80b6-8bb577431383 /bluesanta ext4 defaults 0 2728x90