scsi(스카시) : Small Computer System Interface
partition(파티션)
# fdisk /dev/sdb
mount(마운트) : 저장 장치에 접근할 수 있는 경로를 디렉토리 구조에 편입시키는 작업
설치 과정
[root@localhost ~]# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0x4d828209.
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p):
Using default response p
Partition number (1-4, default 1): 1
First sector (2048-2097151, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-2097151, default 2097151):
Using default value 2097151
Partition 1 of type Linux and of size 1023 MiB is set
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@localhost ~]#
파일시스템 생성(포맷)
ext4 : extended file system 4,
최대 1엑사바이트의 볼륨과 16테라바이트의 파일
# mkfs.ext4 /dev/sdb1
디렉토리 생성
# mkdir /mydata
임의의 파일을 복사(기존 하드디스크에 복사)
# cp anaconda-ks.cfg /mydata/test1
# ls -l /mydata/
sdb1 장치를 /mydata 디렉토리에 마운트(연결)
# mount /dev/sdb1 /mydata
# ls -la /mydata
마운트 해제
# umount /dev/sdb1
# ls -la /mydata
40GB test1 파일 복사
1GB test2 파일 복사
/mydata => 40GB
/mydata => 1GB
# reboot
재부팅 후 마운트가 풀림
# ls -la /mydata
# gedit /etc/fstab
맨 아래줄에 추가
/dev/sdb1 /mydata ext4 defaults 1 2
재부팅 후 확인
# reboot
# ls -la /mydata
댓글 ( 4)
댓글 남기기