리눅스 분류
centos6.5인데 파티션을 다시 설정할수 있는 방법이 있나요?
작성자 정보
- 언젠가될테다 작성
- 작성일
컨텐츠 정보
- 2,307 조회
- 2 댓글
- 0 추천
- 목록
본문
centos6.5 x64를 설치를 했습니다.
파티션은
/boot , swap , /tmp , /home , /Databases , /Backup , /
이렇게 7개로 나누었습니다.
(swap를 제외한 나머지 파티션들의 파일시스템유형은 모두 ext4 로 했습니다)
APM설치도 다끝났고 이제 소스 올려서 사이트만 오픈하면 끝인데
마지막으로 용량 확인하다가 엄청난 실수를 저지른것을
발견했습니다.
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda8 889G 6.2G 838G 1% /
tmpfs 3.9G 0 3.9G 0% /dev/shm <=swap인듯...
/dev/sda2 9.9G 151M 9.2G 2% /Backup
/dev/sda1 291M 53M 224M 19% /boot
/dev/sda3 9.9G 3.0G 6.4G 32% /Databases <= cubrid demodb가 있는것으로 지워도 됨.
/dev/sda7 1008M 34M 924M 4% /tmp
/dev/sda5 5.0G 139M 4.6G 3% /home <= index파일만 있는것으로 지워도됨.
[root@localhost ~]# fdisk /dev/sda
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): p
Disk /dev/sda: 999.7 GB, 999653638144 bytes
255 heads, 63 sectors/track, 121534 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006101c
Device Boot Start End Blocks Id System
/dev/sda1 * 1 39 307200 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 39 1344 10485760 83 Linux
/dev/sda3 1344 2650 10485760 83 Linux
/dev/sda4 2650 121535 954944512 5 Extended
/dev/sda5 2650 3303 5242880 83 Linux
/dev/sda6 3303 3564 2097152 82 Linux swap / Solaris
/dev/sda7 3564 3694 1048576 83 Linux
/dev/sda8 3695 121535 946551808 83 Linux
/파티션있는 엄청난 용량을 아래와 같이 다시 나눌수 있는 방법 좀 알려주시기 바랍니다.
파티션은
/boot , swap , /tmp , /home , /Databases , /Backup , /
이렇게 7개로 나누었습니다.
(swap를 제외한 나머지 파티션들의 파일시스템유형은 모두 ext4 로 했습니다)
APM설치도 다끝났고 이제 소스 올려서 사이트만 오픈하면 끝인데
마지막으로 용량 확인하다가 엄청난 실수를 저지른것을
발견했습니다.
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda8 889G 6.2G 838G 1% /
tmpfs 3.9G 0 3.9G 0% /dev/shm <=swap인듯...
/dev/sda2 9.9G 151M 9.2G 2% /Backup
/dev/sda1 291M 53M 224M 19% /boot
/dev/sda3 9.9G 3.0G 6.4G 32% /Databases <= cubrid demodb가 있는것으로 지워도 됨.
/dev/sda7 1008M 34M 924M 4% /tmp
/dev/sda5 5.0G 139M 4.6G 3% /home <= index파일만 있는것으로 지워도됨.
[root@localhost ~]# fdisk /dev/sda
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): p
Disk /dev/sda: 999.7 GB, 999653638144 bytes
255 heads, 63 sectors/track, 121534 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006101c
Device Boot Start End Blocks Id System
/dev/sda1 * 1 39 307200 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 39 1344 10485760 83 Linux
/dev/sda3 1344 2650 10485760 83 Linux
/dev/sda4 2650 121535 954944512 5 Extended
/dev/sda5 2650 3303 5242880 83 Linux
/dev/sda6 3303 3564 2097152 82 Linux swap / Solaris
/dev/sda7 3564 3694 1048576 83 Linux
/dev/sda8 3695 121535 946551808 83 Linux
/파티션있는 엄청난 용량을 아래와 같이 다시 나눌수 있는 방법 좀 알려주시기 바랍니다.
/boot : 300MB (기존 사이즈 유지)
/tmp : 1GB (기존 사이즈 유지)
swap : 4GB (기존 사이즈 유지)
/home : 320GB
/home : 320GB
/Databases : 320GB
/Backup : 250G
/ : 100GB정도되는 남는 용량 전부
/etc/fstab 를 수정하면 된다는 글은 봤는데 어떻게 수정해야되는건지 모르겟네요.
/Backup : 250G
/ : 100GB정도되는 남는 용량 전부
/etc/fstab 를 수정하면 된다는 글은 봤는데 어떻게 수정해야되는건지 모르겟네요.
관련자료
-
이전
-
다음
댓글 2
언젠가될테다님의 댓글의 댓글
- 언젠가될테다
- 작성일
리눅스에서도 파티션크기 조정이 가능한 프로그램이 있는지 처음 알았습니다.
[병구83]님 감사합니다.
[병구83]님 감사합니다.