SRDB 19871 IDE µå¶óÀ̺갡 ¾Æ´Ñ °æ¿ì, fsck ¼öÇà °á°ú º¸°íµÈ ºÒ·® ¼½ÅÍ(ºí·Ï)¸¦ º¹±¸ÇÏ´Â ¹æ¹ý
------------------------------------------------------------
fsck¸¦ ¼öÇàÇÏ¿© ÀбⰡ ºÒ°¡´ÉÇÑ ¼Õ»óµÈ ¼½Å͸¦ ãÀ» ¼ö ÀÖ½À´Ï´Ù.
´ÙÀ½Àº ÀÌ·± °æ¿ì ³ªÅ¸³ª´Â ¿À·ù ¸Þ½ÃÁöÀÇ ¿¹ÀÔ´Ï´Ù.
# fsck /dev/rdsk/c0t1d0s0
** /dev/rdsk/c0t1d0s0
** Last Mounted on /
** Phase 1 - Check Blocks and Size
CANNOT READ:BLK 2036256
CONTINUE? y
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? y
THE FOLLOWING SECTORS COULD NOT BE READ: 2036256 2036257 2036258 2036259
fsck is incapable of fixing sector errors.
#
¹®Á¦ ÇØ°á ¹æ¹ý
µð½ºÅ© ºí·Ï(¼½ÅÍ)ÀÌ ºÒ·® »óÅ°¡ µÇ´Â ¿øÀÎÀº ¿©·¯ °¡Áö°¡ ÀÖ½À´Ï´Ù.
Çϵå¿þ¾î ¹®Á¦·Î ÀÎÇØ ÇØ´ç ¼½ÅÍ¿¡ ´ëÇÑ Æ÷¸Ë Á¤º¸°¡ Æļյǰųª, ¼½ÅÍ°¡ ¾àȵǾî
½ÃÀÛÇÒ ¼ö ¾ø°Å³ª, Á¤ÀüÀ¸·Î ÀÎÇØ µå¶óÀ̺꿡 Ãæ°ÝÀÌ °¡ÇØÁø °æ¿ì µîÀÌ ¿øÀÎÀÏ ¼ö
ÀÖ½À´Ï´Ù.
´ëºÎºÐÀÇ °æ¿ì, ¼½ÅÍ ¿À·ù¸¦ ¹ß°ßÇϸé ÇÏµå µå¶óÀ̺갡 ºÒ·® »óÅ°¡ µÈ °ÍÀ¸·Î
»ý°¢ÇÏ°í ´Ù½Ã Æ÷¸ËÇϰųª ±³Ã¼ÇÏ°Ô µË´Ï´Ù.ÀÌ·± °æ¿ì µå¶óÀ̺êÀÇ Å×ÀÌÇÁ ¹é¾÷º»À»
ã°í, µå¶óÀ̺긦 Æ÷¸ËÇϰųª ±³Ã¼ÇÏ°í, ´Ù½Ã ÆÄƼ¼ÇÀ» ³ª´©°í, newfs¸¦ ½ÇÇàÇÏ°í,
º¹¿øÇÏ´Â µîÀÇ ÀýÂ÷°¡ ÇÊ¿äÇÕ´Ï´Ù.
ÀÌ ¹®¼¿¡¼ ¼³¸íÇÏ´Â ÇØ°á ¹æ¹ýÀº ÀÌ¿Í °°ÀÌ °ú°¨ÇÑ Á¢±Ù ¹æ½ÄÀÌ ¾Æ´Õ´Ï´Ù.
ÇÏÁö¸¸ ÇØ´ç µå¶óÀ̺êÀÇ Á߿伺 Á¤µµ³ª ¿À·ùÀÇ ½É°¢¼º Á¤µµ¿¡ µû¶ó Àå±âÀûÀ¸·Î
¶Ç´Â ´Ü±âÀûÀ¸·Î È¿°úÀûÀÏ ¼ö ÀÖ½À´Ï´Ù.
»óȲÀÌ ´ÙÀ½ Á¶°Ç¿¡ ºÎÇÕÇÏ´Â °æ¿ì, ÇÏµå µå¶óÀ̺긦 º¹±¸Çϰųª
´ÜÀÏ ºÒ·® ¼½ÅÍ ¶Ç´Â ¿¬¼ÓÀûÀÎ ºÒ·® ¼½ÅÍ ±×·ìÀ» Á¦¿Ü½ÃÅ°´Â °ÍÀ» °í·ÁÇÒ ¼ö
ÀÖ½À´Ï´Ù.
* ¿ø½Ã ÀåÄ¡ /dev/rdsk/...¿¡ ´ëÇØ fsck¸¦ ¼öÇàÇßÀ½.
* ÆÄÀÏ ½Ã½ºÅÛÀ» ¸¶¿îÆ®ÇÏÁö ¾ÊÀº »óÅ¿¡¼ fsck¸¦ ¼öÇàÇßÀ½.
* µð½ºÅ©°¡ SCSI À¯ÇüÀÓ(IDE µå¶óÀ̺꿡´Â ÀÌ ÀýÂ÷¸¦ Àû¿ëÇÒ ¼ö ¾øÀ½).
* fsck ¼öÇà °á°ú º¸°íµÈ ºÒ·® ¼½ÅÍ°¡ °ÅÀÇ ¾ø°í ÀÛÀº ¿µ¿ª¿¡ ÇÑÁ¤µÇ¾î ÀÖÀ½.
* ºÒ·® ¼½ÅÍÀÇ Àý´ë ºí·Ï ¹øÈ£(Absolute Block Number)¸¦ ¾Ë°í ÀÖÀ½.
blcok 0¿¡¼ ½ÃÀÛÇÏ´Â ½½¶óÀ̽º¸¦ Á¦¿ÜÇÑ ¸ðµç ½½¶óÀ̽ºÀÇ °æ¿ì ÀÌ Á¤º¸´Â ¸Å¿ì
Áß¿äÇÕ´Ï´Ù.
blcok 0¿¡¼ ½ÃÀÛÇÏ´Â ½½¶óÀ̽º´Â ´ë°³ÀÇ °æ¿ì slice 0ÀÔ´Ï´Ù.
ÀϹÝÀûÀ¸·Î ½½¶óÀ̽º´Â »ó´ë ºí·Ï ¹øÈ£(Relative Block Number)¿¡ ÀÇÇØ ÁöÁ¤µË´Ï´Ù
(½½¶óÀ̽ºÀÇ block 0Àº µð½ºÅ©¿¡¼ ÇØ´ç ½½¶óÀ̽º°¡ ½ÃÀ۵Ǵ ºí·ÏÀÓ).
Áï, slice 0Àº block 0¿¡¼ ½ÃÀÛÇϹǷΠÀý´ë ºí·Ï ¹× »ó´ë ºí·Ï¿¡ ´ëÇÑ ¸ðµç
ÂüÁ¶´Âµ¿ÀÏÇÕ´Ï´Ù.
slice 1ÀÌ block 3000¿¡¼ ½ÃÀÛÇÏ´Â °æ¿ì ÀÌ ½½¶óÀ̽º¿¡ ´ëÇÑ »ó´ë ºí·Ï 100Àº
½ÇÁ¦·Î Àý´ë ºí·Ï 3100ÀÌ µË´Ï´Ù.
À§ÀÇ ¿¹¿¡¼¿Í °°ÀÌ ¸ðµç ½½¶óÀ̽ºÀÇ Àý´ë ºí·Ï ¹øÈ£¸¦ °è»êÇÒ ¼ö ÀÖ½À´Ï´Ù.
ÇÏÁö¸¸ °è»êÇÏ´Â ¹æ¹ý¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ ³»¿ëÀº ÀÌ ¹®¼ÀÇ ¹üÀ§ ¹ÛÀ̹ǷΠ»ý·«
ÇÏ°Ú½À´Ï´Ù.
* ¹®Á¦°¡ ¹ß»ýÇÑ µð½ºÅ©¸¦ Á¦¾îÇÏ´Â µð½ºÅ© °ü¸® À¯Æ¿¸®Æ¼(Veritas, DiskSuite µî)
°¡ ¾øÀ½. (±×·¸Áö ¾ÊÀº °æ¿ì¿¡´Â Ưº°È÷ °í·ÁÇØ¾ß ÇÒ »çÇ×ÀÌ ÀÖ½À´Ï´Ù.ÀÌ¿¡ ´ëÇÑ
»çÇ×Àº ¿©±â¼ ´Ù·çÁö ¾Ê½À´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº SRDB 16305¸¦ ÂüÁ¶ÇϽʽÿÀ.)
ÀÌ ¹®¼¿¡¼ ¼³¸íÇÑ º¹±¸ ÀýÂ÷¸¦ ¼öÇàÇÏ¸é ¼ÒÇÁÆ® ¿À·ù³ª ÇÏµå ¿À·ù¸¦ ¹ß°ßÇÒ ¼ö
ÀÖ½À´Ï´Ù.
´ÙÀ½Àº ¿À·ù À¯Çü¿¡ µû¶ó ºÒ·® ¼½Å͸¦ º¹±¸ÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù.
¼ÒÇÁÆ® ¿À·ù
----------
¼ÒÇÁÆ® ¿À·ù°¡ ¹ß°ßµÇ¸é ¼Õ»óµÈ ºí·Ï¿¡ »óÁÖÇÑ µ¥ÀÌÅÍ°¡ ´ëü ºí·Ï¿¡
ÀÚµ¿À¸·Î À̵¿µÇ¸ç,±×·± ´ÙÀ½ ÀÌ ºí·ÏÀ» º¹±¸Çϰųª°áÇÔ ¼½ÅÍ·Î ºÐ·ùÇÏ¿©
Á¦¿Ü½Ãŵ´Ï´Ù.
ÇÏµå ¿À·ù
----------
¼Õ»ó Á¤µµ¿¡ µû¶ó ¼ÒÇÁÆ® ¿À·ùÀÇ °æ¿ì¿Í °°Àº ¹æ½ÄÀ¸·Î ó¸®ÇÕ´Ï´Ù.
±×·¯³ª ¼Õ»óÀÌ ½É°¢ÇÑ °æ¿ì¿¡´Â ºí·Ï¿¡ ÀÖ´Â µ¥ÀÌÅÍ°¡ »èÁ¦µÉ ¼ö ÀÖ½À´Ï´Ù.
ÀÌ·± °æ¿ì, ÀϹÝÀûÀÎ ¹æ¹ýÀ» »ç¿ëÇصµ µ¥ÀÌÅ͸¦ ÀÐÀ» ¼ö ¾ø½À´Ï´Ù.
°æ°í:µð½ºÅ©°¡ ¸Å¿ì ½ÉÇÏ°Ô ¼Õ»óµÈ °æ¿ì¿¡´Â ÇØ´ç ºí·Ï¿¡ ÀÖ´Â µ¥ÀÌÅ͸¦
º¹±¸ÇÒ ¼ö ¾øÀ¸¹Ç·Î¹ö·Á¾ß ÇÒ¼öµµ ÀÖ½À´Ï´Ù.
Áß¿äÇÑ ½Ã½ºÅÛÀÇ °æ¿ì µð½ºÅ©°¡ ½É°¢ÇÏ°Ô ¼Õ»óµÉ »óȲ¿¡ ´ëºñÇÏ¿©
´ÙÀ½°ú °°Àº ¿¹¹æ Á¶Ä¡¸¦ ÃëÇØ¾ß ÇÕ´Ï´Ù
1) ºÒ·® ºí·ÏÀ» º¹±¸Çϱâ Àü¿¡ µð½ºÅ© Àüü¸¦ ¹é¾÷ÇϽʽÿÀ.
2) ¾Æ·¡¿¡¼ ¼³¸íÇÏ´Â "¿¬¼ÓÀûÀÎ ºÒ·® ¼½Å͸¦ º¹±¸ÇÏ·Á¸é" Ç׸ñ¿¡¼
Á¦½ÃÇÏ´Â ¹æ¹ýÀ» µÎ ¹ø ½ÇÇàÇϽʽÿÀ.
´ÙÀ½ÀÇ setup Áú¹®¿¡¼ "no"·Î ´ë´äÇÏ°í ½ÇÇàÇϽʽÿÀ.
analyze> setup Repair defective blocks[yes]? no
º¹±¸ °¡´ÉÇÑ ¼ÒÇÁÆ® ¿À·ù¸¸ ¹ß°ßµÈ °æ¿ì¿¡´Â À§ ÀýÂ÷¸¦ ´Ù½Ã ¼öÇàÇÏ°í
setup Áú¹®¿¡ ´ëÇÑ ÀÀ´äÀ» "yes"·Î ¹Ù²Ù¾î ºÒ·® ºí·ÏÀ» ½ÇÁ¦·Î º¹±¸ÇÒ ¼ö
ÀÖ½À´Ï´Ù.
analyze> setup Repair defective blocks[yes]? yes
fsck ¼öÇà °á°ú º¸°íµÈ ºÒ·® ¼½ÅÍÀÇ ¼ö¿¡ µû¶ó ´ÜÀÏ ¼½ÅÍ ¶Ç´Â ¿¬¼ÓÀûÀÎ ¼½Å͸¦
º¹±¸ÇÒ ¼ö ÀÖ½À´Ï´Ù.
´ÙÀ½Àº ÀÌ µÎ °¡Áö °æ¿ì¿¡ ´ëÇØ º¹±¸ÇÏ´Â ÀýÂ÷ÀÔ´Ï´Ù.
´ÜÀÏ ºÒ·® ¼½Å͸¦ º¹±¸ÇÏ·Á¸é format À¯Æ¿¸®Æ¼¸¦ ½ÇÇàÇÏ°í µå¶óÀ̺긦 ¼±ÅÃÇÑ ´ÙÀ½
´ÜÀÏ ºÒ·® ¼½ÅÍ(Àý´ë ºí·Ï ¹øÈ£)¸¦ º¹±¸ÇÕ´Ï´Ù.
¿¹:
format> repair
Enter absolute block number of defect:2036256
Ready to repair defect, continue? y
(ÀÌ ´Ü°è¿¡¼ formatÀº ºí·ÏÀÌ º¹±¸µÇ´Â ¹æ¹ý°ú º¹±¸µÇ¾ú´ÂÁöÀÇ ¿©ºÎ¸¦ ³ªÅ¸³À´Ï´Ù.)
format> q
ÀÌÁ¦ ¿ø½Ã ½½¶óÀ̽º(raw slice)¸¦ ´ë»óÀ¸·Î fsck¸¦ ½ÇÇàÇÏ¿© ¹®Á¦°¡ ¾ø´ÂÁö È®ÀÎ
ÇϽʽÿÀ.¹®Á¦°¡ ¾ø´Ù¸é ÇØ´ç ¼½Å͸¦ ¸¶¿îÆ®ÇÒ ¼ö ÀÖ½À´Ï´Ù.
¿¬¼ÓÀûÀÎ ºÒ·® ¼½Å͸¦ º¹±¸ÇÏ·Á¸é
´ÙÀ½ ¿¹Á¦´Â ÀÌ ¹®¼ÀÇ ¾ÕºÎºÐ¿¡¼ ¼³¸íÇÑ ¼½ÅÍ ¿À·ù¸¦ ´ë»óÀ¸·Î ÇÕ´Ï´Ù.
ÀÌ ¿¹Á¦¿¡¼´Â ¸ðµç ºÒ·® ¼½Å͸¦ Æ÷ÇÔÇÒ ¼ö ÀÖµµ·Ï µð½ºÅ© ½ÃÀÛ ¼½ÅÍ 2036240ºÎÅÍ
¸¶Áö¸· ¼½ÅÍ 2036270±îÁö ½ºÄµÇÕ´Ï´Ù.¿¹Á¦¿¡¼ ºÒ·® ¼½ÅÍ´Â slice 0À» ´ë»óÀ¸·Î
fsck¸¦ ¼öÇàÇÑ °á°úÀ̹ǷΠ"Àý´ë ºí·Ï"°ú "ºí·Ï"Àº µ¿ÀÏÇÕ´Ï´Ù.
slice 0ÀÌ ¾Æ´Ñ °æ¿ì¿¡´Â "Àý´ë ºí·Ï"À» »ç¿ëÇØ¾ß ÇÕ´Ï´Ù.
format À¯Æ¿¸®Æ¼¸¦ ½ÇÇàÇÏ°í ¼Õ»óµÈ µð½ºÅ©¸¦ ¼±ÅÃÇÕ´Ï´Ù.
#format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t1d0
/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@1,0
Specify disk (enter its number):0
selecting c0t1d0
[disk formatted]
format> analyze
analyze> setup
Analyze entire disk[yes]? no
Enter starting block number[0, 0/0/0]:2036240
Enter ending block number[2052287, 2035/13/7]:2036270
Loop continuously[no]? no
Enter number of passes[2]:1
Repair defective blocks[yes]? no/yes (Âü°í:À§¿¡¼ ¼³¸íÇÑ "°æ°í" ³»¿ëÀ» ´Ù½Ã
»ìÆ캸½Ê½Ã¿À.)
Stop after first error[no]? no
Use random bit patterns[no]? no
Enter number of blocks per transfer[126, 0/2/0]:1
Verify media after formatting[yes]? yes
Enable extended messages[no]? no
Restore defect list[yes]? yes Restore disk label[yes]? yes
analyze> read
Ready to analyze (won`t harm SunOS).This takes a long time,
but is interruptible with CTRL-C. Continue? y
pass 0
Error during read:block 2036256 (0x5da1c0) (2003/5/3)
Repairing soft error on 2036256 (2003/5/3)...ok.
Error during read:block 2036257 (0x5da1c1) (2003/5/4)
Repairing soft error on 2036257 (2003/5/3)...ok.
Error during read:block 2036258 (0x5da1c2) (2003/5/5)
Repairing soft error on 2036258 (2003/5/3)...ok.
Error during read:block 2036259 (0x5da1c3) (2003/5/6)
Repairing soft error on 2036259 (2003/5/3)...ok.
2035/13/7
Total of 4 defective blocks repaired.
(0x5da1c0) (2003/5/3)
(0x5da1c1) (2003/5/4)
(0x5da1c2) (2003/5/5)
(0x5da1c3) (2003/5/6)
analyze> quit
format> quit
ÀÌÁ¦ ¸¶¿îÆ®µÇÁö ¾ÊÀº ¿ø½Ã ÆÄÀÏ ½Ã½ºÅÛÀ» ´ë»óÀ¸·Î fsck¸¦ ´Ù½Ã ½ÇÇàÇϽʽÿÀ.
fsck´Â Á¤È®È÷ ½ÇÇàµÇ¾î¾ß ÇÕ´Ï´Ù.
¼½ÅÍ ¿À·ù°¡ ´Ù½Ã ¹ß»ýÇÏ¸é µð½ºÅ© ¶Ç´Â µð½ºÅ© ÄÁÆ®·Ñ·¯°¡ ºÒ·®ÀÎ °æ¿ìÀÏ ¼ö
ÀÖ½À´Ï´Ù.
|