ºìÁªLinuxÃÅ»§
Linux°ïÖú

¸ßÊÖÇë½øÖ¸µãһϷÖÇø

·¢²¼Ê±¼ä:2008-10-17 12:28:38À´Ô´:ºìÁª×÷Õß:natasa
ÎÒÏÖÔڸ㲻Çå·ÖÇøµÄ·½·¨,ÒÔÏÂÊÇÎÒ²»Ã÷°×µÄµØ·½.лл´ó¼Ò°ï°ï
µÚÒ»
ÊDz»ÊÇÖ»¿ÉÒÔ·Ö³É Ò»¸öhd1(ex3) »¹ÓÐÒ»¸öswap(½»»»·ÖÇø)

µÚ¶þ,·ÖÒ»¸öswap(½»»»·ÖÇø) hd1(Ï൱ÓÚc:) hd2(Ï൱ÓÚd:) hd3(Ï൱ÓÚe:)
»¹ÓоÍÊÇ/boot /use /var /tmp ¶¼½¨ÔÚhd1ÄÚ»¹Êǵ¥¶À½¨

ÐÂÊÖ´ó¼Ò¶à¶àÖ¸µã,»¹Ã»×°¹ý,Ì«±¿
ÎÊÌâ½â¾öÁ˾ÍÁ¢Âí×°ÁË[size=6][/size]
лл´ó¼Ò¿´Ìù
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 4 ÌõÆÀÂÛ

  1. zxf ÓÚ 2008-10-17 23:30:50·¢±í:

    Èç¹ûÄãÊÇÔÚѧϰµÄ»°£¬Ï£ÍûºóÃæÒ»¶Î¶ÔÄãÓÐÓÃ
    1 fdisk/dev/had »òsd----°´Ó²ÅÌÀàÐÍ
    2 Command (m for help): n n --Ìí¼Ó·ÖÇø p --²é¿´ m--À©Õ¹·ÖÇø
    t --¸Ä±ä·ÖÇøÀàÐÍ (ÓÃL²é¿´Ó²ÅÌÀàÐͱàºÅ) d --ɾ³ý·ÖÇø
    3 ommand action
    e extended e--À©Õ¹·ÖÇø
    p primary partition (1-4) p--Ö÷·ÖÇø£¬Ö÷·ÖÇøÖ»ÄÜ·Ö4¸ö£¬Ñ¡e³ÉΪÀ©Õ¹·ÖÇø
    4 Partition number (1-4): ·ÖÇø±àºÅ
    5 First cylinder (1-2080, default 1): ĬÈÏÊý¾Ý»Ø³µ£¬
    6 Last cylinder or +size or +sizeM or +sizeK (1-2080, default 2080):100MB ÉèÖ÷ÖÇø´óС
    7 Command (m for help):w w--±£´æ·ÖÇø
    ¸½Â¼ ÈçÓÐÊ£ÓàÈÝÁ¿£¬Öظ´2-7²½
    Ìí¼Óswap ·ÖÇøÈçÏ£¬Ðø7²½Ö®ºó
    1£¡ Command (m for help):t ½øÐÐÐÞ¸Ä
    2£¡ Partition number (1-4):
    3£¡ Hex code (type L to list codes): 82 ÀàÐͱàºÅ£¬²»Öª¿ÉÒÔÊäÈëL²é¿´
    4£¡ Command (m for help):w w--±£´æ·ÖÇø
    8 mke2fs -j /dev/hda1 ¸ñʽ»¯·ÖÇø(hda1,µÚÒ»·ÖÇø£©
    ¸½Â¼ mkswap /dev/hda2 ¸ñʽ»¯swap·ÖÇø(hda2,µÚ2·ÖÇø£©
    9 e2label /dev/hda1 /a a(×Ô¼º¶¨ÒåµÄÎļþ¼Ð)
    10 mount /dev/hda1 /a ¹ÒÔØÓ²ÅÌ
    ¸½Â¼ swapon /dev/hda2 ¼¤»îswap·ÖÇø
    11 vi /etc/fstab ÉèÖÿª»ú×Ô¶¯¹ÒÔØ
    LABEL=/a£¨Ó²ÅÌÃû£© /a £¨ÕæʵµÄÎļþ¼Ð£© ext3 defaults 1 1

  2. 373302931 ÓÚ 2008-10-17 14:20:59·¢±í:

    swap·ÖÇøÏ൱ÓÚMSµÄÐéÄâÄڴ棬ÊDZØÐëµÄ£¬Ò»°ãʽÎïÀíÄÚ´æµÄ2±¶Èç¹ûÎïÀíÄÚ´æºÜ´óµÄ»°£¬Éè³É512M¾Í¿ÉÒÔÁË¡£/Ò²ÊDZØÐëµÄ£¬´ó²¿·ÖÎļþ¶¼ÊÇ·ÅÔÚÕâ¸ö·ÖÇøÏ£¬»¹ÓÐÒ»¸ö/boot·ÖÇø£¬ÊÇ·ÅÄÚºËʲôµÄ£¬100M¾Í¿ÉÒÔÁË
    ²»ÖªµÀÄãÔÚÓ²ÅÌÉÏÖ»×°ÁËlinux»¹ÊǺÍxp×é³É¶àϵͳ£¬·ÖÇøµÄ±íʾ·¨¾Í²»ºÃ˵ÁË

  3. ˮ֮äØ ÓÚ 2008-10-17 14:20:52·¢±í:

    ÏÈ·ÖSWAP°É¡£ÎÒÕâÑùµÄ²»È»·Ö²»³öÀ´¡£ÎÒÒ²²ËÄñ»¹²»»á×°Èí¼þÄØ¡£ÎÒ²»ÖªÎªÊ²Ã´ÏÈ·Ö/ºóÆäËüµÄ¾Í·Ö²»³öÁË¡£ÏÈ·ÖÁËSWAPºó¾ÍÄÜÕý³£·Ö³öÆäËü·ÖÇøÀ´ÁË¡£ÎÒ·ÖÁË3¸ö/ºÍ/HOMEºÍSWAP¡£²»Öª¶Ô²»¶Ô¡£·´ÕýÏÖÔÚÄÜÕý³£Ê¹ÓÃ

  4. million ÓÚ 2008-10-17 13:06:58·¢±í:

    /ºÍswapͨ³£ÊDZØÐèµÄ£¬Ã»ÓÐÏ൱D,EµÄ
    ÔÚ·ÖÇø¹¤¾ßÖÐÄã¾Í¿ÉÒÔ¿´ÁË£¬/µÄ¸ñʽһ°ãÓÃext3