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 |
|---|---|---|
| 2901 | 2026. 05. 28. | systemd 서비스 하드닝 실전 가이드: 권한·파일시스템·네트워크 접근 줄이기 |
| 2843 | 2026. 05. 20. | Linux 서버 로그 운영 실전 가이드: journald 영구 저장, 용량 제한, logrotate 점검법 |
| 2643 | 2026. 04. 29. | Kubernetes v1.36 Haru 완전 가이드: AI 워크로드 DRA, User Namespaces GA, PSI Metrics 실전 적용 |
| 2566 | 2026. 04. 21. | systemd 260 + Linux 6.19 핵심 신기능 완전 가이드: mstack, sched_ext, Varlink Metrics 실전 적용 |
| 2496 | 2026. 04. 14. | Linux 시스템 관리 완벽 가이드: systemd 258, Kernel 6.x, 현대적 CLI 명령어 |
| 2475 | 2026. 04. 13. | Linux 시스템 관리 2026 완벽 가이드: systemd, journalctl, 성능 튜닝, 보안 설정 |
| 2455 | 2026. 04. 12. | Linux 커널 6.12/6.13 신기능 완전 분석: PREEMPT_RT, sched_ext, Rust 통합 |
| 2431 | 2026. 04. 11. | macOS defaults 명령어로 숨겨진 설정 마스터하기 |
| 2395 | 2026. 04. 09. | macOS/Linux 터미널 고급 명령어 가이드 - 프로세스 관리, 네트워크 진단, 시스템 모니터링 |
| 2374 | 2026. 04. 08. | Linux 시스템 관리 실전 가이드 2025: 커널 최적화, 보안 강화, 자동화 명령어 총정리 |