'파티션'에 해당되는 글 1건

  1. 2009.05.22 데비안 하드디스크 추가방법

리눅스에서 하드디스크를 추가하려면 다음과 같이 한다.

 

1. 파티션 생성
fdisk /dev/hdb
Command (m for help): p

Disk /dev/hdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 10000 80324968+ 83 Linux
/dev/hdb2 10001 19457 75963352+ 83 Linux

2. 파일시스템 생성
debian:~# mkfs.ext3 /dev/hdb1
mke2fs 1.37 (21-Mar-2005)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
10043392 inodes, 20081242 blocks
1004062 blocks (5.00%) reserved for the super user
First data block=0
613 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

Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 20 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.


debian:~# mkfs.ext3 /dev/hdb2
mke2fs 1.37 (21-Mar-2005)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
9502720 inodes, 18990838 blocks
949541 blocks (5.00%) reserved for the super user
First data block=0
580 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

Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 24 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.


3. 마운트 포인트 지정
debian:/mnt# mkdir homebackup
debian:/mnt# mkdir sqlbackup

4. 백업
- /mnt/sqlbackup# mysqldump -A -u root -p > 20031225.sql

Posted by novice9

댓글을 달아 주세요

이전버튼 1 이전버튼

블로그 이미지
이 블로그는 삽질을 기록하는 곳입니다. ^_^
novice9
텍스트큐브,티스토리 검색

달력

 « |  » 2018.08
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

최근에 받은 트랙백

글 보관함

Yesterday15,250
Today4,143
Total4,253,500