һƪ¼ò»¯µÄLinuxÆô¶¯¹ý³Ì˵Ã÷
Æô¶¯µÚÒ»²½££¼ÓÔØBIOS
µ±Äã´ò¿ª¼ÆËã»úµçÔ´£¬¼ÆËã»ú»áÊ×ÏȼÓÔØBIOSÐÅÏ¢£¬BIOSÐÅÏ¢ÊÇÈç´ËµÄÖØÒª£¬ÒÔÖÁÓÚ¼ÆËã»ú±ØÐëÔÚ×ʼ¾ÍÕÒµ½Ëü¡£ÕâÊÇÒòΪBIOSÖаüº¬ÁËCPUµÄÏà¹ØÐÅÏ¢¡¢É豸Æô¶¯Ë³ÐòÐÅÏ¢¡¢Ó²ÅÌÐÅÏ¢¡¢ÄÚ´æÐÅÏ¢¡¢Ê±ÖÓÐÅÏ¢¡¢PnPÌØÐԵȵȡ£ÔÚ´ËÖ®ºó£¬¼ÆËã»úÐÄÀï¾ÍÓÐÆ×ÁË£¬ÖªµÀÓ¦¸ÃÈ¥¶ÁÈ¡ÄĸöÓ²¼þÉ豸ÁË¡£
Æô¶¯µÚ¶þ²½££¶ÁÈ¡MBR
ÖÚËùÖÜÖª£¬Ó²ÅÌÉϵÚ0´ÅµÀµÚÒ»¸öÉÈÇø±»³ÆΪMBR£¬Ò²¾ÍÊÇMaster Boot Record£¬¼´Ö÷Òýµ¼¼Ç¼£¬ËüµÄ´óСÊÇ512×Ö½Ú£¬±ð¿´µØ·½²»´ó£¬¿ÉÀïÃæÈ´´æ·ÅÁËÔ¤Æô¶¯ÐÅÏ¢¡¢·ÖÇø±íÐÅÏ¢¡£
ϵͳÕÒµ½BIOSËùÖ¸¶¨µÄÓ²Å̵ÄMBRºó£¬¾Í»á½«Æ临ÖƵ½0×7c00µØÖ·ËùÔÚµÄÎïÀíÄÚ´æÖС£Æäʵ±»¸´ÖƵ½ÎïÀíÄÚ´æµÄÄÚÈݾÍÊÇBoot Loader£¬¶ø¾ßÌåµ½ÄãµÄµçÄÔ£¬ÄǾÍÊÇlilo»òÕßgrubÁË¡£
Æô¶¯µÚÈý²½££Boot Loader
Boot Loader ¾ÍÊÇÔÚ²Ù×÷ϵͳÄÚºËÔËÐÐ֮ǰÔËÐеÄÒ»¶ÎС³ÌÐò¡£Í¨¹ýÕâ¶ÎС³ÌÐò£¬ÎÒÃÇ¿ÉÒÔ³õʼ»¯Ó²¼þÉ豸¡¢½¨Á¢ÄÚ´æ¿Õ¼äµÄÓ³Éäͼ£¬´Ó¶ø½«ÏµÍ³µÄÈíÓ²¼þ»·¾³´øµ½Ò»¸öºÏÊʵÄ״̬£¬ÒÔ±ãΪ×îÖÕµ÷ÓòÙ×÷ϵͳÄÚºË×öºÃÒ»ÇÐ×¼±¸¡£
Boot LoaderÓÐÈô¸ÉÖÖ£¬ÆäÖÐGrub¡¢LiloºÍspfdiskÊdz£¼ûµÄLoader¡£
ÎÒÃÇÒÔGrubΪÀýÀ´½²½â°É£¬±Ï¾¹ÓÃliloºÍspfdiskµÄÈ˲¢²»¶à¡£
ϵͳ¶ÁÈ¡ÄÚ´æÖеÄgrubÅäÖÃÐÅÏ¢£¨Ò»°ãΪmenu.lst»ògrub.lst£©£¬²¢ÒÀÕÕ´ËÅäÖÃÐÅÏ¢À´Æô¶¯²»Í¬µÄ²Ù×÷ϵͳ¡£
Æô¶¯µÚËIJ½££¼ÓÔØÄÚºË
¸ù¾ÝgrubÉ趨µÄÄÚºËÓ³ÏñËùÔÚ·¾¶£¬ÏµÍ³¶ÁÈ¡ÄÚ´æÓ³Ïñ£¬²¢½øÐнâѹËõ²Ù×÷¡£´Ëʱ£¬ÆÁĻһ°ã»áÊä³ö“Uncompressing Linux”µÄÌáʾ¡£µ±½âѹËõÄÚºËÍê³Éºó£¬ÆÁÄ»Êä³ö“OK, booting the kernel”¡£
ϵͳ½«½âѹºóµÄÄں˷ÅÖÃÔÚÄÚ´æÖ®ÖУ¬²¢µ÷ÓÃstart_kernel()º¯ÊýÀ´Æô¶¯Ò»ÏµÁеijõʼ»¯º¯Êý²¢³õʼ»¯¸÷ÖÖÉ豸£¬Íê³ÉLinuxºËÐÄ»·¾³µÄ½¨Á¢¡£ÖÁ´Ë£¬LinuxÄÚºËÒѾ½¨Á¢ÆðÀ´ÁË£¬»ùÓÚLinuxµÄ³ÌÐòÓ¦¸Ã¿ÉÒÔÕý³£ÔËÐÐÁË¡£
Æô¶¯µÚÎå²½££Óû§²ãinitÒÀ¾ÝinittabÎļþÀ´É趨ÔËÐеȼ¶
Äں˱»¼ÓÔغ󣬵ÚÒ»¸öÔËÐеijÌÐò±ãÊÇ/sbin/init£¬¸ÃÎļþ»á¶ÁÈ¡/etc/inittabÎļþ£¬²¢ÒÀ¾Ý´ËÎļþÀ´½øÐгõʼ»¯¹¤×÷¡£
Æäʵ/etc/inittabÎļþ×îÖ÷ÒªµÄ×÷ÓþÍÊÇÉ趨LinuxµÄÔËÐеȼ¶£¬ÆäÉ趨ÐÎʽÊÇ“£ºid:5:initdefault:”£¬Õâ¾Í±íÃ÷LinuxÐèÒªÔËÐÐÔڵȼ¶5ÉÏ¡£LinuxµÄÔËÐеȼ¶É趨ÈçÏ£º
0£º¹Ø»ú
1£ºµ¥Óû§Ä£Ê½
2£ºÎÞÍøÂçÖ§³ÖµÄ¶àÓû§Ä£Ê½
3£ºÓÐÍøÂçÖ§³ÖµÄ¶àÓû§Ä£Ê½
4£º±£Áô£¬Î´Ê¹ÓÃ
5£ºÓÐÍøÂçÖ§³ÖÓÐX-WindowÖ§³ÖµÄ¶àÓû§Ä£Ê½
6£ºÖØÐÂÒýµ¼ÏµÍ³£¬¼´ÖØÆô
¹ØÓÚ/etc/inittabÎļþµ
Ïà¹ØÎĵµ£º
sudo rm ½â³ýËøÎļþ¼Ð
sudo chmod 777 / ÓÐÁËËùÓÐȨÏÞ
yjh@ubuntu:~$ cd /etc
yjh@ubuntu:/etc$ sudo chmod 777 bash.bashrc ³¬¼¶Óû§È¨ÏÞ ÐÞ¸Äbash.bashrc
yjh@ubuntu:/etc$ gedit bash.bashrc
yjh@ubuntu:/etc$
etcÏ»·¾³±äÁ¿ ÐÞ¸Ä bash.bashrv
×îº ......
¡¡¡¡4ÔÂ13ÈÕÏûÏ¢£¬¾Ý¹úÍâýÌ屨µÀ£¬Ó¢¹úITÍøÕ¾VnunetÁ½ÖÜÇ°ÆÀ³öÁË“ITÊг¡10´ó¶ñ¹÷”£¬ÈÕÇ°£¬VnunetÓÖÆÀ³öÁË“ITÊг¡10´óÓ¢ÐÛ”£¬LinuxÖ®¸¸ÀîÄÉ˹·ÍÐÎÖ×È(Linus Torvalds)ºÍÆ»¹ûÁªºÏ´´Ê¼ÈËÊ·µÙ·ò·ÎÖ×ÈÄáÑÇ¿Ë(Steve Wozniak)µÈ·×·×ÉÏ°ñ¡£
¡¡¡¡ÕâÀïËùνµÄ“Ó¢ÐÛ”²¢²»ÊÇÖ¸Óж ......
LinuxÉ豸Çý¶¯³ÌÐòѧϰ±Ê¼ÇϵÁÐÎÄÕÂÔ×÷ÕßÊÇ£ºTekkaman Ninja£¬Ëû²©¿ÍµØÖ·£º
http://blog.chinaunix.net/u1/34474/showart_404278.html
ÔÚ´ËÏòTekkaman Ninja±íʾ¸Ðл£¬Ð´³öÕâôºÃµÄÎÄÕ£¬Ê¹ÎÒÉÙ×ßÁ˺ܶàÍä·¡£
ÓÉÓÚÇ°ÃæµÄѧϰÖÐÓÐÓõ½ µÚʮһÕ ÄÚºËÊý¾Ý½á¹¹ÀàÐÍ µÄ֪ʶ£¬ËùÒÔÎÒÏÈ¿´ÁË¡£ÒªµãÈçÏ£º
½«linux ÒÆÖ²µ½Ð ......
sudo rm ½â³ýËøÎļþ¼Ð
sudo chmod 777 / ÓÐÁËËùÓÐȨÏÞ
yjh@ubuntu:~$ cd /etc
yjh@ubuntu:/etc$ sudo chmod 777 bash.bashrc ³¬¼¶Óû§È¨ÏÞ ÐÞ¸Äbash.bashrc
yjh@ubuntu:/etc$ gedit bash.bashrc
yjh@ubuntu:/etc$
etcÏ»·¾³±äÁ¿ ÐÞ¸Ä bash.bashrv
×îº ......
LinuxÉ豸Çý¶¯³ÌÐòѧϰ±Ê¼ÇϵÁÐÎÄÕÂÔ×÷ÕßÊÇ£ºTekkaman Ninja£¬Ëû²©¿ÍµØÖ·£º
http://blog.chinaunix.net/u1/34474/showart_404278.html
ÔÚ´ËÏòTekkaman Ninja±íʾ¸Ðл£¬Ð´³öÕâôºÃµÄÎÄÕ£¬Ê¹ÎÒÉÙ×ßÁ˺ܶàÍä·¡£
ͨ¹ýÒ»¸öÉ豸ÔÚÄÚºËÖÐÉúÃüÖÜÆڵĸ÷¸ö½×¶Î£¬¿ÉÒÔ¸üºÃµØÀí½âLinuxÉ豸ģÐÍ¡£ÎÒ½«Í¨¹ý·ÖÎölddbusºÍsculldµÄÔ ......