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 |
|---|---|---|
| 3372 | 2026. 08. 18. | Linux 서버에서 포트는 열려 있는데 접속이 안 될 때: 방화벽·바인딩·라우팅 점검 순서 |
| 3340 | 2026. 08. 09. | systemd로 Linux 서비스 장애 자동 복구하기: 재시작 정책과 운영 로그 설정 |
| 3308 | 2026. 08. 01. | Linux 디스크 용량 부족을 막는 운영 가이드: 로그·임시파일·inode를 함께 점검하는 방법 |
| 3277 | 2026. 07. 24. | Linux 서버 SSH 보안 설정 가이드: 비밀번호 로그인 줄이고 접근 통제하기 |
| 3247 | 2026. 07. 16. | systemd 서비스 장애 대응 가이드: 자동 재시작과 로그 확인을 운영 표준으로 만드는 방법 |
| 3194 | 2026. 07. 07. | Linux 서버 디스크 용량 장애 예방: 로그와 임시 파일을 자동으로 정리하기 |
| 3158 | 2026. 06. 29. | Linux 서버 SSH 보안 강화: 키 인증, 접속 제한, 감사 로그를 함께 점검하기 |
| 3102 | 2026. 06. 21. | 크론 장애를 줄이는 systemd 타이머 운영 가이드: 실패 로그, 재시도, 격리 실행까지 |
| 3013 | 2026. 06. 13. | Linux 서버 로그 폭주 방지: journald와 logrotate로 디스크 장애를 막는 운영 가이드 |
| 2957 | 2026. 06. 05. | SSH 서버 접속 보안 점검: 키 인증, 접속 제한, 차단 로그 운영 가이드 |