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

linux ddÃüÁîµÄС¼¼ÇÉ

·¢²¼Ê±¼ä:2009-09-11 22:16:23À´Ô´:ºìÁª×÷Õß:ty8080
1. µ±ÐèÒªÔö¼Óswap·ÖÇøÎļþµÄ´óСʱ

´´½¨Ò»¸ö×ã¹»´óµÄÎļþ
dd if=/dev/zero of=/swapfile bs=1024 count=1000
bsµ¥Î»ÊÇK count ÊÇÊýÁ¿
°ÑÕâ¸öÎļþ±ä³ÉswapÎļþ
mkswap /swapfile

ÆôÓÃÕâ¸öswapÎļþ
swapon /swapfile

²¢ÐÐswap£¬ÒªÓöà¿é´ÅÅÌ£¬Ö¸¶¨ÏàͬµÄÓÅÏȼ¶£»
swapon -p 5 /swapfile1
swapon -p 5 /swapfile2
ÆäÖÐswapfile1ºÍswapfile2Òª´´½¨ÔÚ²»Í¬µÄ´ÅÅÌÉϲÅÄÜ´ïµ½²¢ÐÐswapµÄЧ¹û¡£


ÔÚÿ´Î¿ª»úµÄʱºò×Ô¶¯¼ÓÔØswapÎļþ, ÐèÒªÔÚ /etc/fstab ÎļþÖÐÔö¼ÓÒ»ÐÐ
vim /etc/fstab
/swapfile1 swap swap defaults,pri=5 0 0
/swapfile2 swap swap defaults,pri=5 0 0


2.Ïú»Ù´ÅÅÌÊý¾Ý
ÀûÓÃËæ»úµÄÊý¾ÝÌî³äÓ²ÅÌ£ºdd if=/dev/urandom of=/dev/hda1
ÔÚijЩ±ØÒªµÄ³¡ºÏ¿ÉÒÔÓÃÀ´Ïú»ÙÊý¾Ý¡£Ö´Ðд˲Ù×÷ÒÔºó£¬/dev/hda1½«ÎÞ·¨¹ÒÔØ£¬´´½¨ºÍ¿½±´²Ù×÷
ÎÞ·¨Ö´ÐС£

3.ÐÞ¸´Ó²ÅÌ
µ±Ó²Å̽ϳ¤Ê±¼ä£¨±ÈÈçÒ»Á½ÄêÄ꣩·ÅÖò»Ê¹Óú󣬴ÅÅÌÉÏ»á²úÉúmagnetic flux point¡£µ±´ÅÍ·¶Áµ½
ÕâЩÇøÓòʱ»áÓöµ½À§ÄÑ£¬²¢¿ÉÄܵ¼ÖÂI/O´íÎó¡£µ±ÕâÖÖÇé¿öÓ°Ïìµ½Ó²Å̵ĵÚÒ»¸öÉÈÇøʱ£¬¿ÉÄܵ¼ÖÂ
Ó²Å̱¨·Ï¡£ÏÂÃæµÄÃüÁîÓпÉÄÜʹÕâЩÊý¾ÝÆðËÀ»ØÉú¡£ÇÒÕâ¸ö¹ý³ÌÊÇ°²È«£¬¸ßЧµÄ¡£
dd if=/dev/sda of=/dev/sda

4.¶Ô mbr ½øÐб¸·Ý»Ö¸´
±¸·Ý£º dd if=/dev/sda of=/root/mbr.bak bs=512 count=1
ÆäÖÐÒòΪmbr ÊÇ´ÅÅ̵ĵÚÒ»ÉÈÇø£¬²¢ÇÒÿ¸öÉÈÇø´óС512K ¡£

»¹Ô­£ºdd if=/root/mbr of=/dev/sda bs=512 count=1
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 5 ÌõÆÀÂÛ

  1. ÎÒ°®Ð¡Æó¶ì ÓÚ 2009-09-16 13:17:15·¢±í:

    Ïë²»µ½ddÃüÁÓÐÕâô¶àÓ÷¢¡£ÓÖѧϰÁË

  2. l460618498 ÓÚ 2009-09-13 21:29:21·¢±í:

    ºÃ¶«Î÷

  3. ÂúÁ³ºú×Ó ÓÚ 2009-09-13 12:40:55·¢±í:

    {:3_107:}

    ÊÕÏÂÁË£¬ºÜºÃµÄtip

  4. h_h ÓÚ 2009-09-12 21:59:02·¢±í:

    ÒýÓÃ:
    ºÃ֪ʶÊÕÏÂ
    sutovs ·¢±íÓÚ 2009-9-12 00:08



    ºÜºÃµÄС¼¼ÇÉ¡£»ýÉٳɶࡣ
    лл¥Ö÷ÁË

  5. sutovs ÓÚ 2009-09-12 00:08:12·¢±í:

    ºÃ֪ʶÊÕÏÂ