FDISK

Section: Linux Programmer's Manual (8)
Updated: 3 June 1995
Index
Return to Main Contents
 

À̸§

fdisk - ¸®´ª½º¸¦ À§ÇÑ ÆÄƼ¼Ç Å×ÀÌºí °ü¸®ÀÚ  

»ç¿ë¹ý

fdisk [ -l ] [ -v ] [ -s ÆÄƼ¼Ç] [ ÀåÄ¡À̸§ ]  

»ç¿ë¹ý

fdisk Ç®±×¸²Àº ÇÏµå µð½ºÅ© ÆÄƼ¼Ç Å×À̺íÀ» ÁöÁ¤, º¯È¯, °Ë»çÇÏ´Â Ç®±×¸²ÀÌ´Ù. ÀåÄ¡À̸§À¸·Î »ç¿ëµÉ °ªÀº ´ÙÀ½°ú °°´Ù:

/dev/hda /dev/hdb /dev/sda /dev/sdb
ÆÄƼ¼Ç °ªÀº ÀåÄ¡À̸§ °ªÀÇ ÆÄƼ¼Ç¹øÈ£¸¦ ¸»ÇÑ´Ù. ¿¹¸¦ µé¾î, /dev/hda1 °ªÀº ù¹ø° Çϵåµð½ºÅ©ÀÇ Ã¹¹ø° ÆÄƼ¼ÇÀ» ¸»ÇÑ´Ù.

°¡´ÉÇÏ´Ù¸é, fdisk ¸í·ÉÀº ÀÚµ¿À¸·Î µð½ºÅ© ¿µ¿ªÀ» °è»êÇس½´Ù. ±×·¡¼­, ¹°¸®ÀûÀÎ µð½ºÅ© ¿µ¿ª ÁöÁ¤Àº ±»ÀÌ ÇÊ¿äÇÏÁö´Â ¾Ê´Ù. ÇÏÁö¸¸ MS-DOS ÆÄƼ¼Ç¿¡ ´ëÇؼ­´Â ÁöÁ¤ÇÒ ÇÊ¿äµµ ÀÖ´Ù. ÀϹÝÀûÀ¸·Î µð½ºÅ© ¿µ¿ªÀ» ÁöÁ¤Ç϶ó´Â °æ°í¸¦ ³»¸é, ±×¶§ ÁöÁ¤ÇØ ÁÖ¸é µÈ´Ù. ÀÌ·± °æ°í´Â ÁÖ·Î SCSI ÇÏµå µð½ºÅ©ÀÏ °æ¿ì¿¡ ¹ß»ýÇÑ´Ù. (±×°Íµµ µð½ºÅ© ¿µ¿ªÀ» ÀÚµ¿À¸·Î °è»êÇØ ³»Áö ¸øÇÏ´Â µð½ºÅ© ¾î´ðÅ͸¦ »ç¿ëÇÒ °æ¿ì¿¡ ÇØ´çµÈ´Ù.)

ÆÄƼ¼Ç Å×À̺íÀÌ Ãâ·ÂµÉ ¶§¸¶´Ù, ±× ÆÄƼ¼Ç Å×ÀÌºí¿¡ ¿À·ù°¡ ¾ø´ÂÁö, Ç×»ó È®ÀÎÀ» ÇÑ´Ù. ÀÌ ¿À·ù °Ë»ç´Â ¹°¸®Àû, ³í¸®Àû ÆÄƼ¼Ç Å×À̺íÀÇ ½ÃÀÛ°ú ³¡ À§Ä¡ È®Àΰú ½Ç¸°´õ °æ°è°¡ ¹Ù¸¥Áö °Ë»çÇÑ´Ù.(ù¹ø° ÆÄƼ¼ÇÀº Á¦¿ÜµÈ´Ù.)

¿¾ ¹öÀüÀÇ fdisk(1.1r ÀÌÀü ¹öÀü)¿¡¼­´Â ½Ç¸°´õ/Çì´õ/¼½ÅÍ ¼ýÀÚµéÀÌ ÀÚµ¿°Ë»öµÉ ¶§ Ʋ¸®°Ô º¸¿©ÁÖ´Â °æ¿ì°¡ ÀÖ¾ú´Ù. ÀÌ·± Çö»óÀº ÇÑ µå¶óÀ̺êÀÇ Ã¹¹ø° ÆÄƼ¼Ç ¿À·ù °Ë»ç ¾È¿¡¼­ ³ªÅ¸³µ´Ù. LILO ºÎÆ® °ü¸®ÀÚ¸¦ »ç¿ëÇÒ °æ¿ì¿¡´Â ÀÌ·± Çö»óÀ» ¹«½ÃÇÒ ¼öµµ ÀÖ´Ù. ¹Ý¸é, OS/2 ºÎÆ® °ü¸®ÀÚ¸¦ »ç¿ëÇÒ °æ¿ì¿¡´Â ÀÌ·± Çö»óÀÌ ³ªÅ¸³­´Ù°í ÇÑ´Ù.

¾î¶² MS-DOS ¹öÀü¿¡¼­´Â ù¹ø° ÆÄƼ¼ÇÀ» ½Ç·±´õ °æ°è¿¡¼­ ½ÃÀÛÇÏ´Â °ÍÀÌ ¾Æ´Ï¶ó, ù¹ø° ½Ç¸°ÅÍÀÇ ¼½ÅÍ 2¿¡¼­ ¸¸µç´Ù. ½Ç¸°ÅÍ 1¿¡¼­ ½ÃÀÛÇÏ´Â ÆÄƼ¼ÇÀº ½Ç¸°´õ °æ°è¿¡¼­ ½ÃÀÛÇÒ ¼ö ¾ø´Ù. ÇÏÁö¸¸, OS/2°¡ ¾øÀÌ´Â ÀÌ·± Çö»óÀÌ µå¹°°Ô ³ªÅ¸³­´Ù.

¹öÀü 1.1r¿¡¼­´Â, ÆÄƼ¼Ç Å×À̺íÀÌ °»½ÅµÉ ¶§, Á¾·áµÇ±â Àü¿¡ BLKRRPART ioctl() ÇÔ¼ö¸¦ ±¸¼ºÇÑ´Ù. ÀÌ·± ÀÛ¾÷Àº ¿ø·¡, Áö¿öÁú ¼ö ÀÖ´Â SCSI µð½ºÅ©´Â ±× ÆÄƼ¼Ç Å×À̺í Á¤º¸°¡ °»½ÅµÇ¾ú´Ù´Â °ÍÀ» °¡Á¤ÇÑ´Ù. ¸¸¾à Ä¿³ÎÀÌ ±× °»½ÅµÈ ÆÄƼ¼Ç Å×À̺íÀ» ÀνÄÇÏÁö ¸øÇÑ´Ù¸é, fdisk´Â ¸®ºÎÆ® Ç϶ó°í °æ°í¸¦ ³½´Ù. ÀÌ °æ°í ÈÄ¿¡ ¸®ºÎÆ®¸¦ ÇÏÁö ¾Ê°í °è¼Ó »ç¿ëÇÑ´Ù¸é, µð½ºÅ©ÀÇ ÀڷḦ ÀÐÀ» ¼öµµ ÀÖ´Ù. ¸®´ª½º¸¦ ¼³Ä¡ÇÒ ¶§, °¡²û BLKRRPART °¡ ¾Æ¹« °æ°í ¾øÀÌ ½ÇÆÐµÉ ¼öµµ Àִµ¥, ÀÌ·± ¹®Á¦¸¦ ¸·±â À§Çؼ­´Â ÆÄƼ¼Ç Å×À̺íÀ» °»½ÅÇßÀ» °æ¿ì¿¡´Â Ç×»ó ¸®ºÎÆà Çϵµ·Ï ÇÑ´Ù.

 

DOS 6.x °æ°í

The DOS 6.x FORMAT command looks for some information in the first sector of the data area of the partition, and treats this information as more reliable than the information in the partition table. DOS FORMAT expects DOS FDISK to clear the first 512 bytes of the data area of a partition whenever a size change occurs. DOS FORMAT will look at this extra information even if the /U flag is given -- we consider this a bug in DOS FORMAT and DOS FDISK.

The bottom line is that if you use cfdisk or fdisk to change the size of a DOS partition table entry, then you must also use dd to zero the first 512 bytes of that partition before using DOS FORMAT to format the partition. For example, if you were using cfdisk to make a DOS partition table entry for /dev/hda1, then (after exiting fdisk or cfdisk and rebooting Linux so that the partition table information is valid) you would use the command "dd if=/dev/zero of=/dev/hda1 bs=512 count=1" to zero the first 512 bytes of the partition. BE EXTREMELY CAREFUL if you use the dd command, since a small typo can make all of the data on your disk useless.

ÁÁÀº °á°ú¸¦ ¾ò±â À§Çؼ­´Â, Ç×»ó ÇØ´ç OS ¿ë ÆÄƼ¼Ç Å×À̺í Ç®±×¸²À» »ç¿ëÇÏ´Â °ÍÀÌ °¡Àå ÁÁ´Ù. ¿¹¸¦ µé¾î, DOS ÆÄƼ¼ÇÀ» °ü¸®ÇÏ·Á¸é, DOS ¿ë FDISk¸¦, ¸®´ª½º ÆÄƼ¼ÇÀ» °ü¸®Çϸç¸é, ¸®´ª½º fdisk, ¶Ç´Â cfdisk Ç®±×¸²À» »ç¿ëÇÑ´Ù.

 

¿É¼Ç

-v
¹öÀü Á¤º¸¸¦ º¸¿©ÁÖ°í ¸¶Ä£´Ù.
-l
ÇöÀç ½Ã½ºÅÛÀÇ ÆÄƼ¼Ç Å×À̺íÀ» ³ª¿­ÇÏ°í ¸¶Ä£´Ù. °è»êµÇ´Â ÀåÄ¡´Â ´ÙÀ½°ú °°´Ù. /dev/hda, /dev/hdb, /dev/sda, /dev/sdb, /dev/sdc, /dev/sdd, /dev/sde, /dev/sdf, /dev/sdg, /dev/sdh
-sÆÄƼ¼Ç
µµ½º ÆÄƼ¼ÇÀÌ ¾Æ´Ï¸é(°¡·É, ÆÄƼ¼Ç ID°¡ 10º¸´Ù Å©¸é), ±× ÆÄƼ¼ÇÀÇ Å©±â°¡ Ãâ·ÂµÈ´Ù. ÀÌ °ªÀº º¸Åë mkfs(8) Ç®±×¸²¿¡¼­ »ç¿ëµÈ´Ù.
 

¹ú·¹

ÀÌ ¸Å´º¾ó ÆäÀÌÁö(¾´ÀÌ faith@cs.unc.edu)´Â ³»¿ëÀÌ ºÒÃæºÐÇÏ´Ù. ÀÚ¼¼ÇÑ À̾߱â´Â README.fdisk(¾´ÀÌ LeBlanc@mcc.ac.uk) ÆÄÀÏÀ» ÂüÁ¶ÇÑ´Ù. ¸¸¾à ÀÌ ÆÄÀÏÀ» ãÁö ¸øÇÑ´Ù¸é, util-linux-* ¼Ò½º ÆÖÅ°Áö ¾ÈÀÇ fdisk.c ÆÄÀÏÀÌ ÀÖ´Â °æ·Î ¾È¿¡ ÀÖ´Ù. °¡±î¿î ¸®´ª½º ¹èÆ÷º» »çÀÌÆ®¿¡¼­ ±¸Çϱ⠹ٶõ´Ù.  

¸¸µçÀÌ

A. V. Le Blanc (LeBlanc@mcc.ac.uk)ÀÌ Ã³À½ ¸¸µé¾ú°í,
v1.0r: Rik Faith (faith@cs.unc.edu)°¡ SCSI, extfs Áö¿ø,
v1.1r: Rik Faith (faith@cs.unc.edu)°¡ Michael Bischoff (i1041905@ws.rz.tu-bs.de, mbi@mo.math.nat.tu-bs.de) µµ¿òÀ¸·Î ¹ú·¹Àâ°í, ±â´É Çâ»ó ½ÃÅ°°í,
v1.3: A. V. Le BlancÀÌ ÃÖ±Ù ±â´É »óÅ·Π¸¸µé°í, -s ¿É¼Ç Ãß°¡,
v2.0: Remy CardÀÇ µµ¿òÀ¸·Î 2GB ÀÌ»óÀÇ Çϵ嵵 Áö¿øÇÏ°Ô µÇ¾ú´Ù.


 

Index

À̸§
»ç¿ë¹ý
»ç¿ë¹ý
DOS 6.x °æ°í
¿É¼Ç
¹ú·¹
¸¸µçÀÌ

This document was created by man2html, using the manual pages.
Time: 08:07:01 GMT, March 25, 2004