5Àå . µð½ºÅ© °ø°£ °ü¸®

Red Hat Linux ½Ã½ºÅÛ ¼³Ä¡¸¦ ¸¶Ä¡½Å ÈÄ, ±âÁ¸ ÆÄƼ¼Ç Å×À̺íÀ» »ìÆ캸°í, ÆÄƼ¼Ç Å©±â¸¦ º¯°æÇÏ°í »èÁ¦Çϰųª, ¿©À¯ °ø°£À̳ª Ãß°¡ ÇÏµå µå¶óÀ̹ö¿¡¼­ ÆÄƼ¼ÇÀ» Ãß°¡ÇؾßÇÒ °æ¿ì°¡ ÀÖ½À´Ï´Ù. parted´Â ÀÌ·¯ÇÑ ÀÛ¾÷À» ½±°Ô ¼öÇàÇÒ ¼ö ÀÖ°Ô µ½´Â À¯Æ¿¸®Æ¼ÀÔ´Ï´Ù. ÀÌ Àå¿¡¼­´Â parted¸¦ »ç¿ëÇÏ¿© ÆÄÀÏ ½Ã½ºÅÛ ÀÛ¾÷À» ¼öÇàÇÏ´Â ¹æ¹ý¿¡ ´ëÇÏ¿© ¼³¸íÇØ º¸°Ú½À´Ï´Ù. fdisk¸¦ »ç¿ëÇÏ¿© ÆÄƼ¼ÇÀÇ Å©±â¸¦ º¯°æÇÏ´Â ÀÛ¾÷À» Á¦¿ÜÇÑ ´ëºÎºÐÀÇ ÀÛ¾÷À» ¼öÇàÇÏ½Ç ¼öµµ ÀÖ½À´Ï´Ù. fdisk¿Í °ü·ÃµÈ º¸´Ù ¸¹Àº Á¤º¸¸¦ ¿øÇϽŴٸé, fdiskÀÇ ¸Þ´º¾ó ÆäÀÌÁö³ª Á¤º¸ ÆäÀÌÁö¸¦ ÂüÁ¶ÇϽñ⠹ٶø´Ï´Ù.

½Ã½ºÅÛÀÇ µð½ºÅ© °ø°£ »ç¿ë·®À» ¾Ë¾Æº¸°í °¨½ÃÇÏ´Â ¹æ¹ý¿¡ ´ëÇØ ¾Ë°í ½ÍÀ¸½Ã¸é, 26.3 ÀýÀ» ÂüÁ¶ÇϽñ⠹ٶø´Ï´Ù.

parted À¯Æ¿¸®Æ¼¸¦ »ç¿ëÇϱâ À§Çؼ­´Â parted ÆÐÅ°Áö°¡ ¼³Ä¡µÇ¾î ÀÖ¾î¾ß ÇÕ´Ï´Ù. parted¸¦ ½ÃÀÛÇϽ÷Á¸é, ½© ÇÁ·ÒÇÁÆ®¿¡ ·çÆ®·Î ·Î±×ÀÎÇϽŠÈÄ parted /dev/hdb ¸í·ÉÀ» ÀÔ·ÂÇØ ÁֽʽÿÀ. ¿©±â¼­ /dev/hdb´Â ¼³Á¤ÇϽ÷Á´Â µå¶óÀ̺꿡 »ç¿ëµÇ´Â ÀåÄ¡¸íÀÔ´Ï´Ù. (parted) ÇÁ·ÒÇÁÆ®°¡ ³ªÅ¸³ª¸é help¸¦ ÀÔ·ÂÇÏ¿© »ç¿ë °¡´ÉÇÑ ¸í·É¾î ¸ñ·ÏÀ» º¸½Ç ¼ö ÀÖ½À´Ï´Ù.

ÆÄƼ¼ÇÀ» »ý¼º, »èÁ¦ ¶Ç´Â ÀçÁ¶Á¤Çϱâ À§Çؼ­´Â, ½Ã½ºÅÛÀ» º¹±¸ ¸ðµå·Î ºÎÆÃÇÏ¿© ÀåÄ¡¸¦ »ç¿ë ÁßÁöÇÏ¼Å¾ß ÇÕ´Ï´Ù. (ÆÄƼ¼ÇÀº ¸¶¿îÆ®µÇÁö ¾Ê°í ½º¿Ò °ø°£Àº ºñÈ°¼ºÈ­ µÇ¾î¾ß ÇÕ´Ï´Ù). º¹±¸ ¸ðµå·Î ºÎÆÃÇÏ´Â ¹æ¹ý¿¡ ´ëÇÑ ¼³¸íÀ» ¿øÇϽŴٸé, 9 ÀåÀ» ÂüÁ¶ÇϽñ⠹ٶø´Ï´Ù. ÆÄÀÏ ½Ã½ºÅÛÀ» ¸¶¿îÆ® Çϵµ·Ï ¿äûµÈ´Ù¸é, »ý·« ¹öÆ°À» ¼±ÅÃÇØ ÁֽʽÿÀ.

µå¶óÀÌºê »ó¿¡¼­ ÆÄƼ¼ÇÀÌ »ç¿ëµÇÁö ¾Ê´Â´Ù¸é, umount ¸í·ÉÀ» »ç¿ëÇÏ¿© ±× ÆÄƼ¼ÇÀ» ¸¶¿îÆ® ÇØÁ¦ÇϽŠÈÄ swapoff ¸í·ÉÀ» ÀÌ¿ëÇÏ¿© ÇÏµå µå¶óÀÌºê »óÀÇ ¸ðµç ½º¿Ò °ø°£À» ºñÈ°¼ºÈ­ ½ÃÄÑÁֽʽÿÀ.

Ç¥ 5-1Àº ÀÚÁÖ »ç¿ëµÇ´Â parted ¸í·É¾î ¸ñ·ÏÀÔ´Ï´Ù. ´ÙÀ½ ºÎºÐ¿¡¼­´Â ÀϺΠÀÚÁÖ »ç¿ëµÇ´Â ¸í·É¾î¿¡ ´ëÇÏ¿© º¸´Ù ÀÚ¼¼ÇÏ°Ô ´Ù·ç¾î º¸µµ·Ï ÇÏ°Ú½À´Ï´Ù.

¸í·É¾î¼³¸í
check minor-numÆÄÀÏ ½Ã½ºÅÛ¿¡ ´ëÇÑ °£´ÜÇÑ È®ÀÎ ÀÛ¾÷À» ¼öÇàÇÕ´Ï´Ù.
cp from toÆÄÀÏ ½Ã½ºÅÛÀ» ÇÑ ÆÄƼ¼Ç¿¡¼­ ´Ù¸¥ ÆÄƼ¼ÇÀ¸·Î º¹»çÇÕ´Ï´Ù; from°ú to´Â ÆÄƼ¼ÇÀÇ minor ¹øÈ£¸¦ ÀǹÌÇÕ´Ï´Ù.
help»ç¿ë °¡´ÉÇÑ ¸í·É¾î ¸ñ·ÏÀ» º¸¿©ÁÝ´Ï´Ù.
mklabel labelÆÄƼ¼Ç Å×ÀÌºí¿¡ ´ëÇÑ µð½ºÅ© ·¹À̺íÀ» »ý¼ºÇÕ´Ï´Ù.
mkfs minor-num file-system-typefile-system-type À¯ÇüÀÇ ÆÄÀÏ ½Ã½ºÅÛÀ» »ý¼ºÇÕ´Ï´Ù.
mkpart part-type fs-type start-mb end-mb»õ·Î¿î ÆÄÀÏ ½Ã½ºÅÛÀ» »ý¼ºÇÏÁö ¾Ê°í ÆÄƼ¼ÇÀ» ¸¸µì´Ï´Ù.
mkpartfs part-type fs-type start-mb end-mbÆÄƼ¼ÇÀ» ¸¸µé°í ƯÁ¤ ÆÄÀÏ ½Ã½ºÅÛÀ» »ý¼ºÇÕ´Ï´Ù.
move minor-num start-mb end-mbÆÄƼ¼ÇÀ» À̵¿ÇÕ´Ï´Ù.
printÆÄƼ¼Ç Å×À̺íÀ» º¸¿©ÁÝ´Ï´Ù.
quitparted¸¦ Á¾·áÇÕ´Ï´Ù.
resize minor-num start-mb end-mbÆÄƼ¼ÇÀÇ Å©±â¸¦ start-mb¿¡¼­ end-mb·Î ÀçÁ¶Á¤ÇÕ´Ï´Ù.
rm minor-numÆÄƼ¼ÇÀ» »èÁ¦ÇÕ´Ï´Ù.
select device¼³Á¤ÇÒ ´Ù¸¥ ÀåÄ¡¸¦ ¼±ÅÃÇÕ´Ï´Ù.
set minor-num flag stateÆÄƼ¼Ç »ó¿¡ Ç÷¡±×(flag)¸¦ ¼³Á¤ÇÕ´Ï´Ù; state´Â on(ÄÑÁü) À̳ª off(²¨Áü) Áß Çϳª¸¦ ÀÔ·ÂÇÕ´Ï´Ù.

Ç¥ 5-1. parted ¸í·É¾î

5.1. ÆÄƼ¼Ç Å×ÀÌºí º¸±â

parted¸¦ ½ÃÀÛ ÈÄ ´ÙÀ½ ¸í·ÉÀ» ÀÔ·ÂÇÏ¿© ÆÄƼ¼Ç Å×À̺íÀ» º¼ ¼ö ÀÖ½À´Ï´Ù:

print

´ÙÀ½°ú °°Àº ÆÄƼ¼Ç Å×À̺íÀÌ ³ªÅ¸³¯ °ÍÀÔ´Ï´Ù:

Disk geometry for /dev/hda: 0.000-9765.492 megabytes
Disk label type: msdos
Minor    Start       End     Type      Filesystem  Flags
1          0.031    101.975  primary   ext3        boot
2        101.975    611.850  primary   linux-swap  
3        611.851    760.891  primary   ext3        
4        760.891   9758.232  extended              lba
5        760.922   9758.232  logical   ext3        

ÀÌ ¸ñ·ÏÀÇ Ã¹¹ø° ÁÙÀº µð½ºÅ©ÀÇ ¿ë·®À» º¸¿©ÁÖ¸ç, µÎ¹ø° ÁÙ¿¡¼­´Â µð½ºÅ© ·¹À̺í À¯ÇüÀ» º¸¿©ÁÝ´Ï´Ù. ¼¼¹ø° ÁÙ ¾Æ·¡·Î´Â ÆÄƼ¼Ç Å×À̺íÀÌ ³ªÅ¸³³´Ï´Ù. ÀÌ ÆÄƼ¼Ç Å×À̺íÀ» º¸½Ã¸é, Minor ¹øÈ£´Â ÆÄƼ¼Ç ¹øÈ£¸¦ ÀǹÌÇÕ´Ï´Ù. ¿¹¸¦ µé¾î minor ¹øÈ£ 1À» °¡Áø ÆÄƼ¼ÇÀº /dev/hda1¿¡ »óÀÀÇÕ´Ï´Ù. Start¿Í End °ªÀº ¸Þ°¡¹ÙÀÌÆ® ´ÜÀ§·Î ³ªÅ¸³³´Ï´Ù. TypeÀº ÆÄƼ¼Ç À¯ÇüÀ¸·Î¼­ ÀÏÂ÷ ÆÄƼ¼Ç (primary), È®Àå ÆÄƼ¼Ç (extended), ³í¸® ÆÄƼ¼Ç (logical) Áß ÇÑ°¡Áö·Î ¼±Åõ˴ϴÙ. ´Ù¼¸¹ø° ÇàÀÎ FilesystemÀº ÆÄÀÏ ½Ã½ºÅÛ À¯ÇüÀ» ³ªÅ¸³»¸ç ext2, ext3, FAT, hfs, jfs, linux-swap, ntfs, reiserfs, hp-ufs, sun-ufs, xfs¿Í °°Àº À¯ÇüÀÌ Á¸ÀçÇÕ´Ï´Ù. ±× ´ÙÀ½ Flags ÇàÀº ÆÄƼ¼Ç¿¡ ¼³Á¤µÈ Ç÷¡±× (flag)¸¦ ³ªÅ¸³»¸ç, »ç¿ë °¡´ÉÇÑ Ç÷¡±× Á¾·ù¿¡´Â boot, root, swap, hidden, raid, lvm, lba°¡ ÀÖ½À´Ï´Ù.

ÀÛÀºº¸ÈùÆ®
 

parted¸¦ ½ÃÀÛÇÏÁö ¾Ê°í ´Ù¸¥ ÀåÄ¡¸¦ ¼±ÅÃÇϱâ À§Çؼ­´Â, select ¸í·É°ú ÀåÄ¡¸í (¿¹, /dev/hdb)À» »ç¿ëÇÏ½Ã¸é µË´Ï´Ù. ¸í·ÉÀ» ÀÔ·ÂÇϽŠÈÄ ÆÄƼ¼Ç Å×À̺íÀ» º¸°Å³ª ¼³Á¤ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.