LinuxÎļþϵͳ¼Ü¹¹Ïê½â
LinuxÎļþϵͳ¼Ü¹¹Ïê½â
Linux×÷Ϊһ¿î¿ªÔ´µÄ²Ù×÷ϵͳ£¬ÆäÎļþϵͳ¼Ü¹¹ÊÎÑÝ×ÅÖÁ¹ØÖ÷ÒªµÄ½ÇÉ«¡£ÎļþϵͳÊDzÙ×÷ϵͳÖÐÈÏÕæÖÎÀíÊý¾ÝµÄÖ÷Òª²¿·Ö£¬LinuxϵͳÖÐÓжàÖÖ²î±ðµÄÎļþϵͳ£¬Ã¿ÖÖÎļþϵͳ¶¼ÓÐÆäÌض¨µÄÓÅÊƺÍÓÃ;¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃǽ«ÏêϸÆÊÎöLinuxÎļþϵͳµÄ¼Ü¹¹£¬´ÓÎļþϵͳµÄ»ù±¾¿´·¨¡¢Ä¿Â¼½á¹¹µ½ÏêϸµÄ´úÂëʾÀý£¬×ÊÖú¶ÁÕ߸üºÃµØÃ÷È·²¢Ó¦ÓÃLinuxÎļþϵͳ¡£
Ò»¡¢ÎļþϵͳµÄ»ù±¾¿´·¨
ÎļþϵͳÊDzÙ×÷ϵͳÓÃÀ´×éÖ¯ºÍÖÎÀíÊý¾ÝµÄÒªÁ죬Æä½¹µãÄ¿µÄÊÇÔÚ´ÅÅÌ»òÆäËû´æ´¢×°±¸ÉÏ´æ´¢ºÍ»á¼ûÎļþ¡£ÔÚLinuxϵͳÖУ¬ÎļþϵͳÈÏÕ潫Îļþ°²Åŵ½´ÅÅÌÉϵĴ洢λÖã¬ÌṩÎļþµÄ»á¼ûºÍÖÎÀí½Ó¿Ú¡£Linuxϵͳ֧³Ö¶àÖÖ²î±ðÀàÐ͵ÄÎļþϵͳ£¬°üÀ¨³£¼ûµÄext4¡¢XFS¡¢NTFSµÈ¡£
¶þ¡¢LinuxÎļþϵͳµÄĿ¼½á¹¹
LinuxÎļþϵͳµÄĿ¼½á¹¹ÒÔ¸ùĿ¼¡°/¡±ÎªÆðµã£¬ËùÓеÄÎļþºÍĿ¼¶¼´Ó¸ùĿ¼×îÏÈÕö¿ª¡£³£¼ûµÄһЩÖ÷ҪĿ¼°üÀ¨£º
/bin£º´æ·Å¿ÉÖ´ÐÐÎļþ
/etc£º´æ·ÅÉèÖÃÎļþ
/home£ºÓû§µÄ¼ÒĿ¼
/lib£ºÏµÍ³¿âÎļþ
/usr£º´æ·ÅÓû§ÎļþºÍÓ¦ÓóÌÐò
/var£º´æ·Å¾³£×ª±äµÄÎļþ£¬ÈçÈÕÖ¾
Èý¡¢LinuxÎļþϵͳµÄ×é³É²¿·Ö
LinuxÎļþϵͳÖ÷ÒªÓÉÒÔϼ¸²¿·Ö×é³É£º
Superblock£ºÎļþϵͳµÄ»ù±¾ÐÅÏ¢£¬°üÀ¨ÎļþϵͳµÄ¾Þϸ¡¢¿é¾ÞϸµÈ¡£
Inode£º´æ´¢ÎļþµÄÔªÊý¾ÝÐÅÏ¢£¬°üÀ¨ÎļþµÄȨÏÞ¡¢ËùÓÐÕß¡¢ÐÞ¸Äʱ¼äµÈ¡£
Block Bitmap£ºÓÃÀ´±ê¼Ç¿ÕÏпéµÄλͼ¡£
Inode Bitmap£ºÓÃÀ´±ê¼Ç¿ÕÏÐinodeµÄλͼ¡£
Data Blocks£º´æ´¢ÎļþµÄÏÖʵÊý¾Ý¡£
ËÄ¡¢Îļþϵͳ²Ù×÷ʾÀý
ÏÂÃæÎÒÃÇͨ¹ýÏêϸµÄ´úÂëʾÀýÀ´Õ¹Ê¾ÎļþϵͳµÄ²Ù×÷£¬ÒÔ±ã¶ÁÕ߸üºÃµØÃ÷È·£º
Éó²éÎļþϵͳÐÅÏ¢
sudo df -Th
µÇ¼ºó¸´ÖÆ
¸ÃÏÂÁîÓÃÓÚÉó²éÄ¿½ñϵͳÖÐËùÓÐÎļþϵͳµÄÐÅÏ¢£¬°üÀ¨ÎļþϵͳÀàÐÍ¡¢×ܾÞϸ¡¢ÒÑÓþÞϸµÈ¡£
¹ÒÔØеÄÎļþϵͳ
sudo mount /dev/sdb1 /mnt/new_fs
µÇ¼ºó¸´ÖÆ
ÕâÌõÏÂÁ/dev/sdb1·ÖÇø¹ÒÔص½/mnt/new_fsĿ¼Ï£¬Ê¹µÃеÄÎļþϵͳ¿ÉÒÔ±»»á¼û¡£
½¨ÉèÐÂÎļþ
touch /mnt/new_fs/new_file.txt
µÇ¼ºó¸´ÖÆ
ʹÓÃtouchÏÂÁîÔÚеÄÎļþϵͳÖн¨ÉèÒ»¸öÃûΪnew_file.txtµÄ¿ÕÎļþ¡£
Îå¡¢×ܽá
ͨ¹ý±¾ÎĵÄÏÈÈÝ£¬ÎÒÃǶÔLinuxÎļþϵͳµÄ¼Ü¹¹ÓÐÁ˸üÉîÈëµÄÏàʶ¡£Îļþϵͳ×÷Ϊ²Ù×÷ϵͳÖÐÖÁ¹ØÖ÷ÒªµÄÒ»²¿·Ö£¬ÈÏÕæÖÎÀíÊý¾ÝµÄ´æ´¢ºÍ»á¼û£¬¶ÔϵͳµÄÐÔÄܺÍÎȹÌÐÔÆð×ÅÖ÷Òª×÷Óá£ÔÚÏÖʵӦÓÃÖУ¬ºÏÀíÑ¡ÔñÊʺϵÄÎļþϵͳÀàÐͺÍÓÅ»¯Îļþϵͳ½á¹¹£¬Äܹ»ÌáÉýϵͳµÄЧÂʺͿɿ¿ÐÔ¡£
Ï£Íû±¾ÎÄÄܹ»Îª¶ÁÕß´øÀ´¶ÔLinuxÎļþϵͳµÄÃ÷È·ºÍÓ¦Ó㬽øÒ»²½ÌáÉýϵͳÖÎÀíºÍ¿ª·¢ÄÜÁ¦¡£
£¨×¢£º±¾ÎĽöΪ¶ÔLinuxÎļþϵͳ¼Ü¹¹µÄ¼òÒªÏÈÈÝ£¬Ïêϸʵ¼ùÖÐÇëƾ֤ÏÖÕæÏàÐξÙÐвÙ×÷¡££©
ÒÔÉϾÍÊÇLinuxÎļþϵͳ¼Ü¹¹Ïê½âµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡