Contents
see List작성일 2015. 12. 01.
[root@localhost ~]# fdisk -l
[root@localhost ~]# fdisk /dev/hdb
The number of cylinders for this disk is set to 19457.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Command (m for help): m
Command (m for help): d <- 파티션 삭제
Command (m for help): p
Command (m for help): n <- 파티션 추가
p
Partition number (1-4): 1
First cylinder (1-19457, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-19457, default 19457):
Using default value 19457
Command (m for help): p
Command (m for help): v
5165 unallocated sectors
Command (m for help): w <- 저장하고 종료
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
3. 디스크 format : mkfs
[root@localhost home]# mkfs
Usage: mkfs [-V] [-t fstype] [fs-options] device [size]
[root@localhost ~]# mkfs.ext4 /dev/hdb1
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
19546112 inodes, 39072080 blocks
1953604 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=41943040
1193 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 32 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@localhost ~]#
3. mount 하기
mkdir /home/music
mount /dev/hdb1 /home/music
4. /etc/fstab 내용 추가 ( 리부팅후에도 적용되도록)
#vi /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hdb1 /home/music ext4 defaults 1 1 <- 추가된 내용
os
| No | 작성일 | Title |
|---|---|---|
| 2207 | 2026. 02. 11. | Linux 서버 보안 강화 체크리스트 2025 |
| 2161 | 2026. 02. 11. | Nginx vs Caddy: 최신 웹서버 비교와 설정 가이드 |
| 2160 | 2026. 02. 11. | 서버 모니터링 자동화: Netdata, Zabbix, Datadog 비교 |
| 2159 | 2026. 02. 11. | 컨테이너 보안: rootless Docker와 Podman |
| 2158 | 2026. 02. 11. | Linux 네트워크 성능 튜닝과 eBPF 활용 |
| 2157 | 2026. 02. 11. | Kubernetes 클러스터 운영 실전 가이드 |
| 2156 | 2026. 02. 11. | ZFS vs Btrfs: 차세대 파일시스템 비교 |
| 2155 | 2026. 02. 11. | SSH 보안 강화와 터널링 고급 기법 |
| 2154 | 2026. 02. 11. | systemd 고급 활용: 서비스 관리와 타이머 |
| 2153 | 2026. 02. 11. | macOS Sequoia 개발 환경 최적 설정 가이드 |