|
ÍøÕ¾Ê×Ò³
|
Êý¾Ý»Ö¸´×ÊÁÏ
|
Êý¾Ý»Ö¸´Èí¼þ
|
×ÉѯÁôÑÔ
|
Êý¾Ý»Ö¸´²©¿Í
|
Êý¾Ý»Ö¸´ÂÛ̳
|
ÄúÏÖÔÚµÄλÖãº
±±ÑÇÊý¾Ý»Ö¸´¼¼ÊõÕ¾
>>
Êý¾Ý»Ö¸´×ÊÁÏ
>>
Êý¾Ý»Ö¸´ÎÄÀ¸
>> ÎÄÕÂÕýÎÄ
LinuxÎļþϵͳµÄ·´É¾³ý·½·¨
ÈÈ
¡ï¡ï¡ï
¡¾×ÖÌ壺
С
´ó
¡¿
LinuxÎļþϵͳµÄ·´É¾³ý·½·¨
×÷ÕߣºØýÃû ÎÄÕÂÀ´Ô´£º±¾Õ¾Ô´´ µã»÷Êý£º ¸üÐÂʱ¼ä£º2004-11-03
×÷Ϊһ¸ö¶àÓû§¡¢¶àÈÎÎñµÄ²Ù×÷ϵͳ£¬LinuxϵÄÎļþÒ»µ©±»É¾³ý£¬ÊÇÄÑÒÔ»Ö¸´µÄ¡£¾¡¹Üɾ³ýÃüÁîÖ»ÊÇÔÚÎļþ½ÚµãÖÐ×÷ɾ³ý±ê¼Ç£¬²¢²»ÕæÕýÇå³ýÎļþÄÚÈÝ£¬µ«ÊÇÆäËûÓû§ºÍһЩÓÐдÅ̶¯×÷µÄ½ø³Ì»áºÜ¿ì¸²¸ÇÕâЩÊý¾Ý¡£²»¹ý£¬¶ÔÓÚ¼ÒÍ¥µ¥»úʹÓõÄLinux£¬»òÕßÎóɾÎļþºó¼°Ê±²¹¾È£¬»¹ÊÇ¿ÉÒÔ»Ö¸´µÄ¡£
1£®Ext2Îļþϵͳ½á¹¹µÄ¼òµ¥½éÉÜ
ÔÚLinuxËùÓõÄExt2ÎļþϵͳÖУ¬ÎļþÊÇÒÔ¿éΪµ¥Î»´æ´¢µÄ£¬Ä¬ÈÏÇé¿öÏÂÿ¸ö¿éµÄ´óСÊÇ1K£¬²»Í¬µÄ¿éÒÔ¿éºÅÇø·Ö¡£Ã¿¸öÎļþ»¹ÓÐÒ»¸ö½Úµã£¬½ÚµãÖаüº¬ÓÐÎļþËùÓÐÕߣ¬¶ÁдȨÏÞ£¬ÎļþÀàÐ͵ÈÐÅÏ¢¡£¶ÔÓÚÒ»¸öСÓÚ12¸ö¿éµÄÎļþ£¬ÔÚ½ÚµãÖÐÖ±½Ó´æ´¢ÎļþÊý¾Ý¿éµÄ¿éºÅ¡£Èç¹ûÎļþ´óÓÚ12¸ö¿é£¬ÄÇô½ÚµãÔÚ12¸ö¿éºÅÖ®ºó´æ´¢Ò»¸ö¼ä½Ó¿éµÄ¿éºÅ£¬ÔÚÕâ¸ö¼ä½Ó¿éºÅËù¶ÔÓ¦µÄ¿éÖУ¬´æ´¢ÓÐ256¸öÎļþÊý¾Ý¿éµÄ¿éºÅ£¨Ext2fsÖÐÿ¸ö¿éºÅÕ¼ÓÃ4×Ö½Ú£¬ÕâÑùÒ»¸ö¿éÖÐËùÄÜ´æ´¢µÄ¿éºÅ¾ÍÊÇ1024/4=256£©¡£Èç¹ûÓиü´óµÄÎļþ£¬ÄÇô»¹»áÔÚ½ÚµãÖгöÏÖ¶þ¼¶¼ä½Ó¿éºÍÈý¼¶¼ä½Ó¿é¡£
2¡£»Ö¸´±»ÎóɾÎļþµÄ·½·¨
´ó¶àÊýLinux·¢Ðа涼Ìṩһ¸ödebugfs¹¤¾ß£¬¿ÉÒÔÓÃÀ´¶ÔExt2Îļþϵͳ½øÐб༲Ù×÷¡£²»¹ýÔÚʹÓÃÕâ¸ö¹¤¾ß֮ǰ£¬»¹ÓÐһЩ¹¤×÷Òª×ö¡£
Ê×ÏÈÒÔÖ»¶Á·½Ê½ÖØйÒÔر»ÎóɾµÄÎļþËùÔÚ·ÖÇø¡£Ê¹ÓÃÈçÏÂÃüÁ£¨¼ÙÉèÎļþÔÚ/usr·ÖÇø£©
mount ¨Cr ¨Cn ¨Co remount /usr
-r±íʾֻ¶Á·½Ê½¹ÒÔØ£»-n±íʾ²»Ð´Èë/etc/mtab£¬Èç¹ûÊǻָ´/etcÉϵÄÎļþ£¬¾Í¼ÓÉÏÕâ¸ö²ÎÊý¡£Èç¹ûϵͳ˵xxx partion busy£¬¿ÉÒÔÓÃfuserÃüÁî²é¿´Ò»ÏÂÊÇÄÄЩ½ø³ÌʹÓÃÕâ¸ö·ÖÇøÉϵÄÎļþ£º
fuser ¨Cv ¨Cm /usr
Èç¹ûûÓÐʲôÖØÒªµÄ½ø³Ì£¬ÓÃÒÔÏÂÃüÁîÍ£µôËüÃÇ£º
fuser -k ¨Cv ¨Cm /usr
È»ºó¾Í¿ÉÒÔÖØйÒÔØÕâЩÎļþϵͳÁË¡£
Èç¹ûÊÇ°ÑËùÓеÄÎļþͳһ°²×°ÔÚÒ»¸ö´óµÄ/·ÖÇøµ±ÖУ¬¿ÉÒÔÔÚbootÌáʾ·ûÏÂÓÃlinux single½øÈëµ¥Óû§Ä£Ê½£¬¾¡Á¿¼õÉÙϵͳ½ø³ÌÏòÓ²ÅÌдÈëÊý¾ÝµÄ»ú»á£¬Òª²»¸É´à°ÑÓ²Å̹ÒÔÚ±ðµÄ»úÆ÷ÉÏ¡£ÁíÍ⣬»Ö¸´³öÀ´µÄÊý¾Ý²»ÒªÐ´µ½/ÉÏÃ棬±ÜÃâÆÆ»µÄÇЩÓÐÓõÄÊý¾Ý¡£Èç¹û»úÆ÷ÉÏÓÐdos/windows£¬¿ÉÒÔдµ½ÕâЩ·ÖÇøÉÏÃ棺
mount ¨Cr ¨Cn /dev/hda1 /mnt/had
È»ºó¾Í¿ÉÒÔÖ´ÐÐdebugfs£º£¨¼ÙÉèLinuxÔÚ /dev/hda5£©
#debugfs /dev/hda5
¾Í»á³öÏÖdebugfsÌáʾ·ûdebugfs£º
ʹÓÃlsdelÃüÁî¿ÉÒÔÁгöºÜ¶à±»É¾³ýµÄÎļþµÄÐÅÏ¢£º
debugfs£ºlsdel
debugfs: 2692 deleted inodes found.
Inode Owner Mode Size Blocks Time deleted
164821 0 100600 8192 1/ 1 Sun May 13 19:22:46 2001
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
36137 0 100644 4 1/ 1 Tue Apr 24 10:11:15 2001
196829 0 100644 149500 38/ 38 Mon May 27 13:52:04 2001
debugfs:
ÁгöµÄÎļþÓкܶࣨÕâÀïÕÒµ½2692¸ö£©£¬µÚÒ»×Ö¶ÎÊÇÎļþ½ÚµãºÅ£¬µÚ¶þ×Ö¶ÎÊÇÎļþËùÓÐÕߣ¬µÚÈý×Ö¶ÎÊǶÁдȨÏÞ£¬½ÓÏÂÀ´ÊÇÎļþ´óС£¬Õ¼ÓÿéÊý£¬É¾³ýʱ¼ä¡£È»ºó¾Í¿ÉÒÔ¸ù¾ÝÎļþ´óСºÍɾ³ýÈÕÆÚÅжÏÄÇЩÊÇÎÒÃÇÐèÒªµÄ¡£±ÈÈçÎÒÃÇÒª»Ö¸´½ÚµãÊÇ196829µÄÎļþ£º
¿ÉÒÔÏÈ¿´¿´ÎļþÊý¾Ý״̬£º
debugfs£ºstat <196829>
Inode: 196829 Type: regular Mode: 0644 Flags: 0x0 Version: 1
User: 0 Group: 0 Size: 149500
File ACL: 0 Directory ACL: 0
Links: 0 Blockcount: 38
Fragment: Address: 0 Number: 0 Size: 0
ctime: 0x31a9a574 -- Mon May 27 13:52:04 2001
atime: 0x31a21dd1 -- Tue May 21 20:47:29 2001
mtime: 0x313bf4d7 -- Tue Mar 5 08:01:27 2001
dtime: 0x31a9a574 -- Mon May 27 13:52:04 2001
BLOCKS:
594810 594811 594814 594815 594816 594817 ¡¡¡¡¡¡¡¡¡¡¡¡¡.
TOTAL: 38
È»ºó¾Í¿ÉÒÔÓÃdumpÖ¸Áî»Ö¸´Îļþ£º
debugfs£ºdump <196829> /mnt/hda/01.sav
ÕâÑù¾Í°ÑÎļþ»Ö¸´³öÀ´ÁË¡£Í˳ödebugfs£º
debugfs£ºquit
ÁíÒ»ÖÖ·½·¨ÊÇÊÖ¹¤±à¼inode£º
debugfs£ºmi <196829>
Mode [0100644]
User ID [0]
Group ID [0]
Size [149500]
Creation time [0x31a9a574]
Modification time [0x31a9a574]
Access time [0x31a21dd1]
Deletion time [0x31a9a574] 0
Link count [0] 1
Block count [38]
File flags [0x0]
Reserved1 [0]
File acl [0]
Directory acl [0]
Fragment address [0]
Fragment number [0]
Fragment size [0]
Direct Block #0 [594810]
¡¡¡¡¡¡¡¡¡¡¡.
Triple Indirect Block [0]
ʹÓÃmiÖ¸Áîºóÿ´ÎÏÔʾһÐÐÐÅÏ¢ÒÔ¹©±à¼£¬ÆäËüÐпÉÒÔÖ±½Ó°´»Ø³µ±íʾȷÈÏ£¬°Ñdeletion time¸Ä³É0£¨Î´É¾³ý£©£¬Link count¸Ä³É1¡£¸ÄºÃºóÍ˳ödebugfs£º
debugfs£ºquit
È»ºóÓÃfsck¼ì²é/dev/hda5
fsck /dev/hda5
³ÌÐò»á˵ÕÒµ½¶ªÊ§µÄÊý¾Ý¿é£¬·ÅÔÚlost+foundÀïÃæ¡£Õâ¸öĿ¼ÀïµÄÎļþ¾ÍÊÇÎÒÃÇÒªµÄ¶«¶«¡£
Now all O.K. Good Luck.
ÎÄÕ¼È룺²Ëµ¶ ÔðÈα༣ºa
ÉÏһƪÎÄÕ£º
Ext2 ÎļþϵͳµÄÓ²Å̲¼¾Ö
ÏÂһƪÎÄÕ£º
SAN,NAS,DAS¼°Æä¼Ü¹¹Ö®¼äÇø±ð
¡¾
·¢±íÆÀÂÛ
¡¿¡¾
¼ÓÈëÊÕ²Ø
¡¿¡¾
¸æËߺÃÓÑ
¡¿¡¾
´òÓ¡´ËÎÄ
¡¿¡¾
¹Ø±Õ´°¿Ú
¡¿
ÍøÓÑÆÀÂÛ£º
£¨Ö»ÏÔʾ×îÐÂ10Ìõ¡£ÆÀÂÛÄÚÈÝÖ»´ú±íÍøÓѹ۵㣬Óë±¾Õ¾Á¢³¡Î޹أ¡£©
¹ØÓÚÎÒÃÇ
|
RAIDÊý¾Ý»Ö¸´
|
ÓÑÇéÁ´½Ó
|
RSSÉú³É
|
XMLÉú³É
|
ÎÄÕÂHTMLµØͼ
|
ÏÂÔØHTMLµØͼ
È«¹úͳһ¿Í·þµç»°:4006-505-808
×ܲ¿µç»°£º010-82488636 ÓÊÏä:ycf@frombyte.com
¹«Ë¾µØÖ·£º±±¾©Êк£µíÇøÓÀ·á»ùµØ·á»ÛÖз7ºÅвÄÁÏ´´Òµ´óÏÃB×ù205ÊÒ
¾©ICP±¸05011939