>> Delete No. 2321 article
No. 리눅스에 새로운 하드디스크 추가 하기

등록 2002-03-17 16:33:00     조회 5
이름 유재철    

		검색어: 하드추가 새로운하드
 리눅스 레드핫에서 새로운 하드디스트 추가 하기
1. 새로운 하드디스크를 물리적으로 추가한다.
2. 새로운 디스크에 파티션을 만든다.
2-1. # fdisk /dev/sdc
--------------------------------------------------------------------
The number of cylinders for this disk is set to 2495.
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., LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
  Command (m for help):
--------------------------------------------------------------------
2-2. 도움말 보기 : "m" 키
-------------------------------------------------------------------------
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition"s system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
--------------------------------------------------------------------
   2-3. 파티션 생성 : "n" 키
 --------------------------------------------------------------------
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p ---> 주 파티션을 생성함
 Partition number (1-4): 1 ---> 파티션 번호 선택
 First cylinder (1-2495, default 1): ---> 시작 실린더(Enter는 기본값사용)
Using default value 1
 Last cylinder or +size or +sizeM or +sizeK (1-504, default 504): +20M ---> 끝 실린더( +20M 등의 SIZE 단위 지
원가능함)   Command (m for help): p ---> 생성된 파티션 확인
  Disk /dev/hda: 255 heads, 63 sectors, 2495 cylinders
Units = cylinders of 16065 * 512 bytes
  Device Boot Start End Blocks Id System
/dev/hda1 1 3 24066 83 Linux
/dev/hda2 505 1779 10241437+ 83 Linux
/dev/hda3 1780 2495 5751270 83 Linux
 2-4. 파티션 작업 정보 저장 : "w" 키
 "w"키를 누르면 현재 설정된 파티션 정보를 저장하고 fdisk를 빠져나가게
됩니다. 나간후에 쉘에서 mkfs명령을 이용하여 파일시스템을 생성합니다.
 파일시스템을 생성한 후에야 mount 해서 사용할 수 있습니다.
 --------------------------------------------------------------------
Command (m for help): w
--------------------------------------------------------------------
3. 새로운 디스크 포맷하기
#./mke2fs /dev/sdc1
 4. 새로운 마운트 포인트 생성
# mkdir /home6
 5. 마운드
#mount –t ext2 /dev/sdc1 /home6
 6. /etc/fstab을 적절히 변경하기
# /etc/fstab파일을 새로운 디스크에 맞도록 적당하게 변경한다 .
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved