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

Çë½Ì¸²¸Çubuntu£¬Ó²ÅÌ°²×°fedoraµÄ·½·¨£¬¾ßÌåÇé¿öÇë½ø¡£

·¢²¼Ê±¼ä:2011-12-18 19:29:18À´Ô´:ºìÁª×÷Õß:yuejiaojie
ÎÒÊÇwin7µÄϵͳ¼Óubuntu£¬Ö®Ç°ubuntuÊÇÓÃUÅÌÒýµ¼°²×°µÄ£¬µ«ÊǸоõ²»Ì«Ï²»¶£¬»¹ÏëÓÃfedora£¬ÄÚÈÝÓеãµã³¤£¬»¹ÇëÄÍÐÄ¿´Íê¡£
win7ÓÐÁù¸ö·ÖÇø£¬¶¼ÊÇntfh¸ñʽ¡£ubuntuÓжÀÁ¢µÄboot·ÖÇø£¬/·ÖÇø£¬/home·ÖÇø£¬/usr·ÖÇø¡£ÏÖÔÚ¿ª»úÆô¶¯Ê±ºòÓõÄÊÇubuntuµÄgrub½øÐÐÒýµ¼¡£
ÎÒÏÂÔØÁË×îеÄfedora16-DVD3.5GB£¬È»ºó½âѹϵͳ֮ºóµÃµ½initrd.img¡¢vmlinuzÎļþ£¬»¹ÓÐimagesÎļþ¼Ð¡£
ÒÔÏÂÊÇÎÒ×Ô¼ºµÄһЩ³¢ÊÔ£º
1¡¢ÒòΪ¿¼Âǵ½Windows·ÖÇø¶¼ÊÇntfs¸ñʽ£¬ºÃÏñfedora²»ÄܶÁÈ¡Îļþ£¬ÎÒ±ã°ÑÎļþinitrd.img¡¢vmlinuz·ÅÔÚubuntu/homeÏÂÒ»¸öн¨µÄ/bootÎļþ¼ÐÄÚ£¨ÕæÕýµÄ/boot·ÖÇøÖ»Óм¸Ê®Õ×£¬¿ÉÊÇÕâÁ½¸öÎļþ¾ÓȻһ°Ù¶à£¬·Å²»Ï£¬ÎÞÄηÅÔÚÁË/home·ÖÇøϵÄÒ»¸öÎļþ¼ÐÀï¡££©
2¡¢°ÑimagesÎļþ¼ÐºÍfedora16µÄisoÎļþ·ÅÔÚ/home·ÖÇøÏÂÒ»¸öfedora16µÄÎļþ¼ÐÄÚ¡£
3¡¢×öµ½ÒÔÉϵÄÖ®ºó¾Í²»»áÁË£¬²»ÖªµÀ¸Ã¼ÌÐøÔõôŪÏÂÈ¥£¬ÎÒ±¾ÒâÊÇÏ뿪»úÒýµ¼ÏµÍ³´ÓÒøÅÌÀ´°²×°¡£µ«ÊÇ¿ª»úµÄÆô¶¯ÎļþÎÒ²»ÖªµÀ¸ÃÔõôд£¬²éÁ˺ܶà×ÊÁÏ£¬»úÆ÷ÖØÆôÎÞÊý´Î£¬ÏÖÔÚÈÔÈ»ÎÞ¹û£¬Ëì·¢ÌûÇóÖú¡£
¾Ý˵¿ª»úʱ±à¼­¼ÓÔغËÐľͿÉÒÔ£¬»òÕß¿ª»úʱͨ¹ýÃüÁîÐÐÒ²¿ÉÒÔÒýµ¼£¬²»¹ÜÔõôÑù£¬Ï£Íû¸ßÊÖÄÜÖ§¸öÕС£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 2 ÌõÆÀÂÛ

  1. alick ÓÚ 2011-12-19 11:31:57·¢±í:

    ÏÂÃæÌùµÄÊÇÎÒÓÃfedora14µÄgrubÒýµ¼isoÖÐÌáÈ¡³öµÄÄں˺ͳõʼ»¯Ó³Ïñ£¬
    ÒÔÆô¶¯Ó²ÅÌ°²×°µÄ¹ý³Ì¡£½ö¹©²Î¿¼£¬ºÍgrub2µÄ¾ßÌåÃüÁî»á²»Ò»Ö¡£
    ## using grub, with vmlinuz, initrd.img from DVD
    ×îÖÕ£¬Ê¹ÓÃϵͳÏÖÓеÄ(F14µÄ) GRUB Òýµ¼ÆðÀ´ÁË°²×°³ÌÐò¡£
    ÏÈÊÇ´Ó DVD ÖÐÌáÈ¡ vmlinuz ÄÚºËÎļþ¡¢initrd.img ³õʼ»¯Ó³ÏñÎļþ¡£
    ½«¶þÕß¿½±´µ½Ò»¸ö·ÖÇøÉÏ£¨ÎÒµÄÊÇ /dev/sda5£¬Ò»¸ö²»»á±»¸²¸ÇµÄС
    ext3 ·ÖÇø¡£²»Çå³þÈç¹ûÕâ¸ö·ÖÇøÔÚ°²×°Ê±±»¸ñʽ»¯Ö®ºó£¬°²×°³ÌÐò
    »á²»»áÕý³£¼ÌÐø£¿£©¡£È»ºóÖØÆô£¬ÔÚgrub½çÃ棬°´c½øÈëÃüÁîÐУ¬
    ÇÃÃüÁ

    grub> kernel (hd0,4)/vmlinuz linux askmethod

    ÕâÀïÖ¸¶¨ÄÚºËÎļþ£¬askmethod ÔÊÐíѯÎÊ/Ñ¡Ôñ°²×°·½Ê½¡£

    grub> initrd (hd0,4)/initrd.img

    ÕâÒ»²½¼ÓÔسõʼ»¯Ó³Ïñ£¬ÕâÒ»²½ÒªµÈºÃ¾Ã£¬ÎÒÒ»¶ÈÈÏΪÓÖ»áfail
    ²»¹ý×îºóÕý³£¼ÓÔØ£¬»Øµ½ÁËÃüÁîÌáʾ·û¡£ÓÚÊÇ

    grub> boot

    Òýµ¼°²×°³ÌÐò¡£È»ºóÊÇÀàËÆncursesµÄÎı¾²Ëµ¥½çÃæÑ¡Ôñ¼üÅ̲¼¾Ö¡¢
    ѯÎÊ°²×°·½Ê½£¬Ñ¡ÔñÓ²ÅÌ°²×°ºóÖ¸¶¨repo¼´dvd isoÎļþλÖá£
    ÎÒÀÏÔç¾Í°Ñ DVD iso ¿½±´µ½ÁËÒ»¸öÒƶ¯Ó²ÅÌFAT·ÖÇøÉÏ¡££¨×¢Ò⣬
    F16 ÒªÇóÓ²ÅÌ°²×°Ê±isoÔÚfat,ext2,ext3µÈ·ÖÇøÉÏ£¬NTFS²»ÐУ¬
    LVMÉÏ·ÖÇøÒ²²»ÐУ©¡£ËùÒÔÎÒÑ¡ÔñÄǸöÒƶ¯Ó²ÅÌ·ÖÇø /dev/sdb1£¬
    Îļþ·¾¶ÊÇ/£¬ÒòΪÎļþ¾ÍÔÚ×²ãĿ¼Ï¡£

    Ö®ºó£¬¿´µ½ÁË¿É°®µÄͼÐΰ²×°½çÃæ :)¡£Ê£ÏµIJ¿·Ö¶¼ºÜÓѺÃ
    ¶øÊìϤÁË£¬rootÃÜÂ롢ʱÇøµÈµÄÅäÖ᣷ÖÇøʱÎÒ×ÔȻѡÔñÊÖ¹¤
    ·ÖÇø¹þ£¬°ÑF14µÄ/¸ñʽ»¯¹ÒÔص½ÐÂϵͳµÄ/£¬F14µÄswap¸ñʽ»¯³É
    swap£¨Õâ¸öËƺõ²»±ØÒª£©£¬½«¾ÉµÄ /home µÈ¹ÒÔص½ÐÂϵͳµÄ
    /home µÈ£¨ÇÐÎð¸ñʽ»¯£¡£©¡£

  2. alick ÓÚ 2011-12-19 11:29:07·¢±í:

    1. µÄÈ·²»ÄÜ°Ñfedora µÄisoµÈ·ÅÔÚNTFS·ÖÇø£¬Ò²²»ÄÜ·ÅÔÚLVM·ÖÇø¡£Ö§³Ö·ÖÇøÓÐFAT¡¢ext ϵÁС£
    2. fedora16Ó²ÅÌ°²×°ÒѾ­²»ÐèÒª½âѹ³ö imagesÎļþ¼Ð¡£µ±È»£¬½âѹ³öÁËҲû´í¡£
    3. ÔÙ½ÓÏÂÀ´¾ÍÊÇÈÃϵͳÒýµ¼½âѹ³öµÄ°²×°³ÌÐòÄÚºË(vmlinuz)ºÍ³õʼ»¯Ó³Ïñ(initrd.img)ÁË¡£
    ¿¼ÂÇubuntuÓõÄGRUB2£¬Çë²éÔÄgrub2×ÊÁÏ»òÎĵµÁ˽âÈçºÎÐÞ¸ÄÆäÅäÖÃÎļþ£¬Ìí¼ÓÒ»¸ö²Ëµ¥ÌõÄ¿
    À´Òýµ¼°²×°ÐÂϵͳ£¬»òÕßʹÓÃÆäÃüÁîÐÐÒýµ¼ÐÂÄںˡ££¨ÎÒ»¹Ã»ÓÐÏà¹Ø¾­Ñé¡«£©
    ×¢ÒâÐèÒªgrub2ÅäÖÃÎļþÖлòÃüÁîÐÐÐмÓÔØÄÚºËÒ»ÐУ¨Ó¦¸ÃÊÇÒÔlinux¿ªÍ·£©Ðè×·¼ÓÉÏ
    linux askmethod ÕâÑù²Å»áµ¯³öÑ¡Ôñ°²×°·½Ê½µÄ²Ëµ¥¡£