Knoppix/RescueFAQ
Q: ÆÐÅ°Áö¸¦ ¾÷µ¥ÀÌÆ®Çϱâ À§ÇØ ³» µ¥ºñ¾È ½Ã½ºÅÛ¿¡ µé¾î°¡°í ½ÍÀºµ¥ ºÎÆÃÀÌ µÇÁö ¾Ê½À´Ï´Ù. ¾î¶»°Ô ÇØ¾ß Çϳª¿ä? ¶A : Å©³ëÇȽº CD·Î ºÎÆÃÇؼ Å©³ëÇȽº ·çÆ® ½©À» ÀÌ¿ëÇÏ¿© ÆÄƼ¼ÇÀ» ¸¶¿îÆ®ÇÕ´Ï´Ù.
¿¹¸¦ µé¾î ´ÙÀ½ ¸í·ÉÀº
mount /dev/hda1 /mnt/hda1 chroot /mnt/hda1µé¾î°¡°í ½Í¾îÇÏ´Â ½Ã½ºÅÛÀÇ ·çÆ® ½©À» µÇµ¹·Á ÁÙ °ÍÀÔ´Ï´Ù. ÀÌÁ¦ ÆÐÅ°Áö¸¦ °áÁ¤ÇÏ°í ¾÷µ¥ÀÌÆ®ÇÕ´Ï´Ù.http://www.debian.org/distrib/packages ±×¸®°í ÀÌÀü ¹®Á¦¸¦ ÇØ°áÇϴµ¥ dpkg -install ¸í·ÉÀ» ½ÇÇàÇϸé ÆÐÅ°Áö°¡ ÁßÁöµÇ´Â °ÍÀ» º¸¿©ÁÝ´Ï´Ù. Q : ¸®´ª½º ¹Ú½º°¡ °íÀ峪¼ LILO¸¦ À缳ġÇÏ°íÀÚ ÇÕ´Ï´Ù. ¶A : ÆÄƼ¼ÇÀ» ¸¶¿îÆ®ÇÏ°í ·çÆ® ±ÇÇÑÀ¸·Î LILO¸¦ ½ÇÇàÇÕ´Ï´Ù.
mount -o dev /mnt/hda1ÀÌ¹Ì ¸¶¿îÆ®µÇ¾îÀÖ´Ù¸é "nodev" Ç÷¡±×¸¦ ¸í½ÃÇؾßÇÒ °ÍÀÔ´Ï´Ù. sudo mount -o remount,dev /mnt/hda1·çÆ® ±ÇÇÑÀ¸·Î µð·ºÅ丮¿¡ µé¾î°¡ lilo¸¦ ½ÇÇàÇÕ´Ï´Ù. chroot /mnt/hda1 lilo Q : ³×! Å©³ëÇȽº·Î ºÎÆÃÇß½À´Ï´Ù. ÀÌÁ¦ ¾î¶»°Ô Çؼ µ¥ÀÌÅ͸¦ º¹±¸ÇÏÁÒ? ¶A1 : ´ÙÀ½ ¸µÅ©¸¦ Âü°íÇÕ´Ï´Ù. Computer First Aid Using Knoppix,
System Recovery, OSCON 2005-08-04 System Rescue with Knoppix.
A2 : ÆÄÀÏÀ» º¹±¸ÇÏ´Â °¡Àå ÁÁÀº ¹æ¹ýÀº USB µå¶óÀ̺긦 »ç¿ëÇÏ´Â °ÍÀÔ´Ï´Ù.
A4 : ³×Æ®¿öÅ©¸¦ ÅëÇØ ¹é¾÷ÇÏ°íÀÚ ÇÑ´Ù¸é NFS³ª »ï¹Ù(À©µµ¿ìÁî °øÀ¯), scp(ssh copy), FTP, ÀüÀÚ ¸ÞÀÏÀ̳ª ´Ù¸¥ °ÍÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ÇÑ°¡Áö ¹æ¹ýÀ¸·Î ³×Æ®¿öÅ©·Î ¿¬°áµÇ¾î ÀÖ´Â µÎ Å©³ëÇȽº ¸Ó½ÅÀ» »ç¿ëÇÏ¿© ´ÙÀ½°ú °°ÀÌ ÇÕ´Ï´Ù.
scp -r /mnt/hda1/importantdata/ knoppix@192.168.1.1:/mnt/hda1/backup A5 : »ç¿ëÇÒ ¼ö ÀÖ´Â USB ÀåÄ¡¸¦ °¡Áö°í ÀÖÁö ¾Ê°Å³ª ÆÄÀÏÀ» Àü¼ÛÇÒ ´Ù¸¥ ·ÎÄà ½Ã½ºÅÛÀÌ ¾ø´Ù¸é ÆÄÀÏÀ» ÀÎÅÍ³Ý »çÀÌÆ®·Î º¸³¾ ¼ö ÀÖ½À´Ï´Ù.(ºñ·Ï ÀÎÅÍ³Ý ¿¬°áÀÌ ·ÎÄà Àü¼Û ¼Óµµº¸´Ù ´À¸®°ÚÁö¸¸) ÀüÀÚ ¸ÞÀÏÀ» È°¿ëÇÒ ¼öµµ ÀÖ½À´Ï´Ù. ISP°¡ Á¦°øÇÏ´Â FTP³ª À¥ °ø°£¿¡ ÆÄÀÏÀ» ÀúÀåÇصδ °Íµµ °¡´ÉÇÕ´Ï´Ù. ȤÀº ´ëÇü ÆÄÀÏ¿¡ ´ëÇØ ¹«·á Àӽà ÀúÀå °ø°£À» Á¦°øÇÏ´Â ¼ö¸¹Àº ÀÎÅÍ³Ý »çÀÌÆ®µéÀ» »ç¿ëÇÒ ¼öµµ ÀÖ½À´Ï´Ù. ´Ù¸¥ °÷µµ ¸¹Áö¸¸ ÀÌ·¯ÇÑ »çÀÌÆ®Áß Çϳª°¡ yousendit.comÀÔ´Ï´Ù. ±¸±ÛÀº Gmail »ç¿ëÀÚ¿¡°Ô 2±â°¡ÀÇ ÀúÀå °ø°£À» Á¦°øÇÕ´Ï´Ù.(´ÜÀÏ ÆÄÀÏÀÇ Å©±â´Â ¾î´ÀÁ¤µµ Á¦ÇѵǾî ÀÖÁö¸¸)
A6 : ¾î¶² »ç¿ëÀÚ´Â °¡Àå °£´ÜÇÑ ¹æ¹ýÀ¸·Î ÄÉÀ̽º¿¡¼ ´Ù¸¥ µð½ºÅ© µå¶óÀ̺긦 ¼³Çؼ FAT32 ÆÄƼ¼ÇÀ¸·Î Æ÷¸äÇعö¸³´Ï´Ù. ȤÀº ´Ù¸¥ CD³ª DVD µå¶óÀ̺긦 Ãß°¡ÇÕ´Ï´Ù.
Q : MBRÀ» ¹é¾÷Çϰųª º¹±¸ÇÏ°í ½Í½À´Ï´Ù. ¶A : ¹é¾÷ÇÏ·Á¸é ´ÙÀ½°ú °°ÀÌ ÇÕ´Ï´Ù.
sudo dd if=/dev/hda of=mbr.backup bs=512 count=1º¹±¸ÇÏ·Á¸é ´ÙÀ½°ú °°ÀÌ ÇÕ´Ï´Ù. sudo dd of=/dev/hda if=mbr.backup bs=512 count=1 ÁÖÀÇ MBRÀº ÆÄƼ¼Ç Å×À̺í(óÀ½ ÇÁ¶óÀ̸Ӹ® ¿£Æ®¸® ³Ý)À» Æ÷ÇÔÇÏ°í ÀÖ¾î ¹é¾÷ÇصРÀÌÈÄ¿¡ ÆÄƼ¼ÇÀ» º¯°æÇÑ´Ù¸é ¹®Á¦¸¦ ÀÏÀ¸Å³ ¼ö ÀÖ½À´Ï´Ù.
ÆÄƼ¼Ç Å×À̺íÀ» º¹±¸ÇÏ·Á¸é ´ÙÀ½ÀÇ ¸í·ÉÀ¸·Î ´ë½ÅÇÕ´Ï´Ù. ÀÌ ¸í·ÉÀº MBRÀÇ ¸¶Áö¸· 64 ¹ÙÀÌÆ®´Â ±×´ë·Î ³²°ÜµÐä óÀ½ 448 ¹ÙÀÌÆ®¸¸ ¾µ °ÍÀÔ´Ï´Ù.(4 ÆÄƼ¼Ç Å×ÀÌºí ¿£Æ®¸® * 16¹ÙÀÌÆ®/¿£Æ®¸®)
sudo dd of=/dev/hda if=mbr.backup bs=1 count=448 Q : ¼³Ä¡µÇ¾î ÀÖ´Â À©µµ¿ìÁî/¸®´ª½ºÀÇ Æнº¿öµå¸¦ Àؾî¹ö·È½À´Ï´Ù. ¶¸®´ª½º A1 : chroot¿Í passwd ¸í·ÉÀ» ½ÇÇàÇÏ¿© ¼³Ä¡µÇ¾î ÀÖ´Â ¸®´ª½ºÀÇ Æнº¿öµå¸¦ º¯°æÇÒ ¼ö ÀÖ½À´Ï´Ù. ¸®´ª½º¸¦ Àбâ/¾²±â ¸ðµå·Î ¸¶¿îÆ®ÇؾßÇÕ´Ï´Ù.
mount -o remount,rw /dev/hda1 /mnt/hda1 chroot /mnt/hda1 passwd root ¸®´ª½º A2 : shadowÀÇ Æнº¿öµå Çؽø¦ »èÁ¦ÇÕ´Ï´Ù.
µå¶óÀ̺êÀÇ /etc/shadow ÆÄÀÏÀ» ÅؽºÆ® ÆíÁý±â·Î ÆíÁýÇÕ´Ï´Ù.
vi /mnt/hda1/etc/shadow ·çÆ®ÀÇ Æнº¿öµå Çؽø¦ Á¦°ÅÇÕ´Ï´Ù.(µÎ¹ø° ÇʵåÀÇ ³»¿ë) ¿¹¸¦ µé¾î ´ÙÀ½ ³»¿ëÀ»
:root:dsfDSDF!s:12581:0:99999:7:::¾Æ·¡¿Í °°ÀÌ º¯°æÇÕ´Ï´Ù. :root::12581:0:99999:7::: Æнº¿öµå´Â °ø¹éÀ¸·Î ³²°Ô µË´Ï´Ù. ´õ ÀÚ¼¼ÇÑ Á¤º¸´Â How to reset forgotten root passwords¸¦ Âü°íÇÕ´Ï´Ù.
À©µµ¿ìÁî : À缳ġÇÏ´Â ´ë½Å Offline NT Password & Registry EditorÀ» Âü°íÇÕ´Ï´Ù.
Q : ´Ù¸¥ ¸®´ª½º, *nix ¹Ú½º°¡ Á¦´ë·Î µ¿ÀÛÇÏÁö ¾ÊÁö¸¸ ³×Æ®¿öÅ©´Â Á¦´ë·Î µ¿ÀÛÇÑ´Ù°í »ý°¢ÇÕ´Ï´Ù. ¶A : "ssh"³ª "telnet"À» »ç¿ëÇÏ¿© ¿ø°ÝÀ¸·Î ·Î±×ÀÎÇÕ´Ï´Ù. Æнº¿öµå¸¦ ¾Ë¾ÆµÑ ÇÊ¿ä°¡ ÀÖÀ¸¸ç ·Î±×ÀÎ ÈÄ¿¡´Â ½©À» ÅëÇØ ¹Ú½º¸¦ °íÄ¡´Â °ÍÀÌ °¡´ÉÇÕ´Ï´Ù.
Q : Å©³ëÇȽº·Î Å©³ëÇȽº¸¦ º¹±¸Çϱâ "¸®´ª½º¸¦ óÀ½ »ç¿ëÇغ¸°í ÀÖ½À´Ï´Ù. ÇÑ ÆÄƼ¼Ç¿¡ Å©³ëÇȽº¸¦ ¼³Ä¡ÇÏ°í ´Ù¸¥ ÆÄƼ¼Ç¿¡ À©µµ¿ì 98À» ¼³Ä¡ÇÏ´Ï lilo¸¦ ´Ù½Ã º¼ ¼ö ¾ø°Ô µÇ¾ú½À´Ï´Ù. ¾î¶»°Ô Çϸé lilo¸¦ µÇ»ì¸± ¼ö ÀÖÀ»±î¿ä? ¶A : Ç÷ÎÇÇ µð½ºÄÏÀ¸·Î ºÎÆÃ
Å©³ëÇȽº°¡ ¼³Ä¡µÇ¾î ÀÖ´Â ½Ã½ºÅÛ¿¡¼ °¡Áö°í ÀÖ´Â ºÎÆà µð½ºÄÏÀ¸·Î ½Ã½ºÅÛÀ» ºÎÆÃÇÒ ¼ö ÀÖ½À´Ï´Ù. /etc/lilo.conf¸¦ ÆíÁýÇÏ°í ·çÆ® ±ÇÇÑÀ¸·Î lilo¸¦ ½ÇÇàÇÕ´Ï´Ù.
CD·Î ºÎÆÃ
CD·Î ºÎÆÃÇؼ "knoppix 2"(http://www.knoppix.net/wiki/Cheat_Codes¸¦ Âü°íÇÕ´Ï´Ù.)¶ó°í ÀÔ·ÂÇÕ´Ï´Ù. Å©³ëÇȽº´Â ½© ¸í·ÉÇàÀ¸·Î ºÎÆÃÇÒ °ÍÀÔ´Ï´Ù. ·çÆ® ÆÄƼ¼ÇÀ» ¸¶¿îÆ®ÇÏ°í
mount /dev/hda1 /mntlilo.conf¸¦ ÆíÁýÇÕ´Ï´Ù.(½Ã½ºÅÛÀÇ À©µµ¿ì ÆÄƼ¼Ç Ç׸ñÀ» »ðÀÔÇÕ´Ï´Ù.) ¼³Ä¡µÇ¾î ÀÖ´Â Çϵåµð½ºÅ©·Î ·çÆ® µð·ºÅ丮¸¦ º¯°æÇÕ´Ï´Ù.(hda1ÀÌ ¼³Ä¡µÇ¾î ÀÖ´Â Çϵåµð½ºÅ© ÆÄƼ¼ÇÀ» ´ëüÇÒ °ÍÀÔ´Ï´Ù.)
chroot /mnt/hda1 ±×¸®°í lilo¸¦ ½ÇÇàÇÕ´Ï´Ù.
lilo -v Q: Å©³ëÇȽº¿¡¼ À©µµ¿ìÁî °øÀ¯ ÀÚ¿øÀ» »ç¿ë(Samba¸¦ ÀÌ¿ëÇÏ¿©)ÇÏ·Á¸é ¾î¶»°Ô ÇØ¾ß Çϳª¿ä ¶A: ¿©·¯ ¹æ¹ýÀÌ ÀÖÁö¸¸ °¡Àå ¼Õ½¬¿î ¹æ¹ýÀº ¾Æ¸¶µµ ´ÙÀ½ ¹æ¹ýÀÏ °ÍÀÔ´Ï´Ù.
Q: Å©³ëÇȽº¿¡ Disk Drake°°ÀÌ ÆÄƼ¼ÇÀ» ÆíÇÏ°Ô °ü¸®ÇÒ ¼ö ÀÖ´Â À¯Æ¿¸®Æ¼µéÀÌ ÀÖ³ª¿ä ¶A: parted¸¦ »ç¿ëÇØ º¸¼Ì³ª¿ä?
A2 : Windows XP/W2K/W2K3/NT4/Longhorn NTFS ÆÄƼ¼ÇÀÇ Å©±â¸¦ Á¶ÀýÇÏ·Á¸éntfsresize FAQÀÇ Solution 2°¡ Àß µ¿ÀÛÇÕ´Ï´Ù. ½ÉÁö¾î 1.9.0 ¹öÁ¯ÀÇ Ntfsresize´Â Á¶°¢³ ÆÄƼ¼Çµµ Àß Ã³¸®ÇÕ´Ï´Ù.
ÆÄƼ¼ÇÀ» ¹é¾÷ÇÏ·Á¸é Partition Image¿Í ntfscloneÀÌ ÁÁ½À´Ï´Ù.
A3: Å©³ëÇȽº´Â ¶ÇÇÑ ntfsresize¿Í ȣȯ¼ºÀÖ´Â GUI ÆÄƼ¼Ç À¯Æ¿¸®Æ¼ QTParted¸¦ Á¦°øÇÕ´Ï´Ù.
Q: ½º¿ÒÀº ¾î¶»°Ô ¼³Á¤Çմϱî? ¶A: ·¥ÀÌ ÀÛÀº ÄÄÇ»ÅÍ¿¡¼´Â Å©³ëÇȽº ¾¾µð·Î ºÎÆÃÇßÀ» ¶§ ½º¿ÒÆÄÀÏÀ» »ç¿ëÇϱ⠿øÇÒ °ÍÀÔ´Ï´Ù. »ç¿ëÀÚ´Â ½º¿ÒÆÄÀÏÀ» ±âÁ¸ ÆÄƼ¼Ç¿¡ ¸¸µç´ÙÀ½ /etc/fstab¿¡ µî·ÏÇÏ°í ½º¿ÒÀ» µ¿ÀÛ½Ãų ¼ö ÀÖ½À´Ï´Ù. ³²Àº ¿ë·®ÀÌ ÃæºÐÇÑ ¸¶¿îÆ®µÈ ÆÄƼ¼ÇÀ» °í¸¨´Ï´Ù. ¿¹Á¦¿¡¼´Â /mnt/hda1ÀÌ¶ó °¡Á¤ÇÕ´Ï´Ù.
dd if=/dev/zero of=/mnt/hda1/swapfile bs=1024 count=65536
mkswap /mnt/hda1/swapfile
/mnt/hda1/swapfile swap swap defaults 0 0
swapon -a
|