| ÂÛ̳ע²á| ¼ÓÈëÊÕ²Ø | ÉèΪÊ×Ò³| RSS
Google
Äúµ±Ç°µÄλÖãºÊ×Ò³ > LinuxƵµÀ > LinuxÈëÃÅÓëÌá¸ß > °²×°ÓëÅäÖÃ

ʵÀý½â˵LinuxÖÐfdisk·ÖÇøÊ¹Ó÷½·¨

ʱ¼ä£º2005-12-28 11:57:03  À´Ô´£ºÖйúITʵÑéÊÒ  ×÷ÕߣºLinuxÁªÃËÊÕ¼¯
»
Command (m for help): p ×¢£ºÔٲ鿴һÏÂÓ²ÅÌ·ÖÇøÇé¿ö£¬¿´ÊÇ·ñɾ³ýÁË£¿
Disk /dev/sda: 1035 MB, 1035730944 bytes
256 heads, 63 sectors/track, 125 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
   Device Boot Start End Blocks Id System
/dev/sda1 1 25 201568+ c W95 FAT32 (LBA)
/dev/sda2 26 125 806400 5 Extended
/dev/sda5 26 50 201568+ 83 Linux
Command (m for help):

¡¡¡¡¾¯¸æ£ºÉ¾³ý·ÖÇøÊ±ÒªÐ¡ÐÄ£¬Çë¿´ºÃ·ÖÇøµÄÐòºÅ£¬Èç¹ûÄúɾ³ýÁËÀ©Õ¹·ÖÇø£¬À©Õ¹·ÖÇøÖ®ÏµÄÂß¼­·ÖÇø¶¼»áɾ³ý£»ËùÒÔ²Ù×÷ʱһ¶¨ÒªÐ¡ÐÄ£»Èç¹ûÖªµÀ×Ô¼º²Ù×÷´íÁË£¬Çë²»Òª¾ª»Å£¬ÓÃq²»±£´æÍ˳ö£»ÇмÇÇмǣ¡£¡£¡£¡ÔÚ·ÖÇø²Ù×÷´íÁË֮ʱ£¬Ç§Íò²»ÒªÊäÈëw±£´æÍ˳ö£¡£¡£¡

¡¡¡¡4¡¢Í¨¹ýfdiskµÄnÖ¸ÁîÔö¼ÓÒ»¸ö·ÖÇø£»

Command (m for help): p
Disk /dev/sda: 1035 MB, 1035730944 bytes
256 heads, 63 sectors/track, 125 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
   Device Boot Start End Blocks Id System
/dev/sda1 1 25 201568+ c W95 FAT32 (LBA)
/dev/sda2 26 125 806400 5 Extended
/dev/sda5 26 50 201568+ 83 Linux
Command (m for help): n ×¢£ºÔö¼ÓÒ»¸ö·ÖÇø£»
Command action
   l logical (5 or over) ×¢£ºÔö¼ÓÂß¼­·ÖÇø£¬·ÖÇø±àºÅÒª´óÓÚ5£»ÎªÊ²Ã´Òª´óÓÚ5£¬ÒòΪÒѾ­ÓÐsda5ÁË£»
   p primary partition (1-4) ×¢£ºÔö¼ÓÒ»¸öÖ÷·ÖÇø£»±àºÅ´Ó 1-4 £»µ«sda1 ºÍsda2¶¼±»Õ¼Óã¬ËùÒÔÖ»ÄÜ´Ó3¿ªÊ¼£»
p
Partition number (1-4): 3
No free sectors available ×¢£ºÊ§°ÜÖУ¬ÎªÊ²Ã´Ê§°Ü£¿

¡¡¡¡×¢£ºÎÒÊÔͼÔö¼ÓÒ»¸öÖ÷·ÖÇø£¬¿´À´ÊÇʧ°ÜÁË£¬ÎªÊ²Ã´Ê§°Ü£¿ÒòΪÎÒÃÇ¿´µ½Ö÷·ÖÇø+À©Õ¹·ÖÇø°ÑÕû¸ö´ÅÅ̶¼ÓùâÁË£¬¿´À©Õ¹·ÖÇøµÄEndµÄÖµ£¬ÔÙ¿´Ò»Ï pÊä³öÐÅÏ¢ÖÐÓÐ125 cylinders£»×îºÃ»¹ÊÇ¿´Ç°Ã沿·Ý£»ÄÇÀïÓÐÌáµ½£»

¡¡¡¡ËùÒÔÎÒÃÇÖ»ÄÜÔö¼ÓÂß¼­·ÖÇøÁË£»

 Command (m for help): n
Command action
   l logical (5 or over)
   p primary partition (1-4)
l ×¢£ºÔÚÕâÀïÊäÈël£¬¾Í½øÈë»®·ÖÂß¼­·ÖÇø½×¶ÎÁË£»
First cylinder (51-125, default 51): ×¢£ºÕâ¸ö¾ÍÊÇ·ÖÇøµÄStart Öµ£»ÕâÀï×îºÃÖ±½Ó°´»Ø³µ£¬Èç¹ûÄúÊäÈëÁËÒ»¸ö·ÇĬÈϵÄÊý×Ö£¬»áÔì³É¿Õ¼äÀË·Ñ£»
Using default value 51
Last cylinder or +size or +sizeM or +sizeK (51-125, default 125): +200M ×¢£ºÕâ¸öÊǶ¨Òå·ÖÇø´óСµÄ£¬+200M ¾ÍÊÇ´óСΪ200M £»µ±È»ÄúÒ²¿ÉÒÔ¸ù¾ÝpÌáʾµÄµ¥Î»cylinderµÄ´óСÀ´Ë㣬ȻºóÀ´Ö¸¶¨ EndµÄÊýÖµ¡£»ØÍ·¿´¿´ÊÇÔõôËãµÄ£»»¹ÊÇÓÃ+200MÕâ¸ö°ì·¨À´Ìí¼Ó£¬ÕâÑùÄÜÖ±¹ÛÒ»µã¡£Èç¹ûÄúÏëÌí¼ÓÒ»¸ö10G×óÓÒ´óСµÄ·ÖÇø£¬ÇëÊäÈë +10000M £»
Command (m for help):

¡¡¡¡5¡¢Í¨¹ýfdiskµÄtÖ¸ÁîÖ¸¶¨·ÖÇøÀàÐÍ£»

Command (m for help): t ×¢£ºÍ¨¹ýtÀ´Ö¸¶¨·ÖÇøÀàÐÍ£»
Partition number (1-6): 6 ×¢£ºÒª¸Ä±äÄĸö·ÖÇøÀàÐÍÄØ£¿ÎÒÖ¸¶¨ÁË6£¬ÆäʵҲ¾ÍÊÇsda6
Hex code (type L to list codes):L ×¢£ºÔÚÕâÀïÊäÈëL£¬¾Í¿ÉÒԲ鿴·ÖÇøÀàÐ͵ÄidÁË£»
Hex code (type L to list codes): b ×¢£ºÈç¹ûÎÒÏëÈÃÕâ¸ö·ÖÇøÊÇ W95 FAT32 ÀàÐ͵ģ¬Í¨¹ýL²é¿´µÃÖª bÊDZíʾµÄÊÇ£¬ËùÒÔÊäÈëÁËb£»
Changed system type of partition 6 to b (W95 FAT32) ×¢£ºÏµÍ³ÐÅÏ¢£¬¸Ä±ä³É¹¦£»ÊÇ·ñÊǸıäÁË£¬ÇëÓÃp²é¿´£»
Command (m for help): p
Disk /dev/sda: 1035 MB, 1035730944 bytes
256 heads, 63 sectors/track, 125 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
   Device Boot Start End Blocks Id System
/dev/sda1 1 25 201568+ c W95 FAT32 (LBA)
/dev/sda2 26 125 806400 5 Extended
/dev/sda5 26 50 201568+ 83 Linux
/dev/sda6 51 75 201568+ b W95 FAT32

¡¡¡¡6¡¢fdisk µÄÍ˳ö£¬ÓÃq»òÕß w£»

¡¡¡¡ÆäÖÐ qÊÇ ²»±£´æÍ˳ö£¬wÊDZ£´æÍ˳ö£»

¡¡¡¡Command (m for help): w
¡¡¡¡»ò
¡¡¡¡Command (m for help): q

¡¡¡¡7¡¢Ò»¸öÌí¼Ó·ÖÇøµÄÀý×Ó£»

¡¡¡¡±¾ÀýÖÐÎÒÃÇ»áÌí¼ÓÁ½¸ö200MµÄÖ÷·ÖÇø£¬ÆäËüΪÀ©Õ¹·ÖÇø£¬ÔÚÀ©Õ¹·ÖÇøÖÐÎÒÃÇÌí¼ÓÁ½¸ö200M´óСµÄÂß¼­·ÖÇø£»

Command (m for help): p ×¢£ºÁгö·ÖÇø±í£»
Disk /dev/sda: 1035 MB, 1035730944 bytes
256 heads, 63 sectors/track, 125 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
   Device Boot Start End Blocks Id System
Command (m for help): n ×¢£ºÌí¼Ó·ÖÇø£»
Command action
   e extended
   p primary partition (1-4)
p ×¢£ºÌí¼ÓÖ÷·ÖÇø£»
Partition number (1-4): 1 ×¢£ºÌí¼ÓÖ÷·ÖÇø1£»
First cylinder (1-125, default 1): ×¢£ºÖ±½Ó»Ø³µ£¬Ö÷·ÖÇø1µÄÆðʼλÖã»Ä¬ÈÏΪ1,ĬÈϾͺã»
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-125, default 125): +200M ×¢£ºÖ¸¶¨·ÖÇø´óС£¬ÓÃ+200MÀ´Ö¸¶¨´óСΪ200M
Command (m for help): n ×¢£ºÌí¼ÓзÖÇø£»
Command action
   e extended
   p primary partition (1-4)
p ×¢£ºÌí¼ÓÖ÷·ÖÇø
Partition number (1-4): 2 ×¢£ºÌí¼ÓÖ÷·ÖÇø2£»
First cylinder (26-125, default 26):
Using default value 26
Last cylinder or +size or +sizeM or +sizeK (26-125, default 125): +200M ×¢£ºÖ¸¶¨·ÖÇø´óС£¬ÓÃ+200MÀ´Ö¸¶¨´óСΪ200M
Command (m for help): n
Command action
   e extended
   p primary partition (1-4)
e ×¢£ºÌí¼ÓÀ©Õ¹·ÖÇø£»
Partition number (1-4): 3 ×¢£ºÖ¸¶¨Îª3 £¬ÒòΪÖ÷·ÖÇøÒѾ­·ÖÁËÁ½¸öÁË£¬Õâ¸öÒ²ËãÖ÷·ÖÇø£¬´Ó3¿ªÊ¼£»
First cylinder (51-125, default 51): ×¢£ºÖ±½Ó»Ø³µ£

À´¶¥Ò»ÏÂ
½ü»ØÊ×Ò³
·µ»ØÊ×Ò³
·¢±íÆÀÂÛ ¹²ÓÐÌõÆÀÂÛ
Óû§Ãû: ÃÜÂë:
ÑéÖ¤Âë: ÄäÃû·¢±í
Ïà¹ØÎÄÕÂ
    ÎÞÏà¹ØÐÅÏ¢
À¸Ä¿¸üÐÂ
À¸Ä¿ÈÈÃÅ