fsck.md 951 B

fsck

ํŒŒ์ผ ์‹œ์Šคํ…œ์˜ ๋ฌด๊ฒฐ์„ฑ์„ ์ ๊ฒ€ํ•˜๊ฑฐ๋‚˜ ๋ณต๊ตฌํ•ฉ๋‹ˆ๋‹ค. ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•  ๋•Œ ํŒŒ์ผ ์‹œ์Šคํ…œ์€ ๋งˆ์šดํŠธ ํ•ด์ œ๋˜์–ด ์žˆ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ํ•„์š”์— ๋”ฐ๋ผ fsck_hfs, fsck_apfs, fsck_msdos, fsck_exfat, fsck_udf๋ฅผ ํ˜ธ์ถœํ•˜๋Š” ๋ž˜ํผ์ž…๋‹ˆ๋‹ค. ๋” ๋งŽ์€ ์ •๋ณด: https://keith.github.io/xcode-man-pages/fsck.8.html.

  • ํŒŒ์ผ ์‹œ์Šคํ…œ /dev/sdX์˜ ๋ฌด๊ฒฐ์„ฑ์„ ์ ๊ฒ€ํ•˜๊ณ  ์†์ƒ๋œ ๋ธ”๋ก์„ ๋ณด๊ณ :

fsck {{/dev/sdX}}

  • ํŒŒ์ผ ์‹œ์Šคํ…œ /dev/sdX๊ฐ€ ๊นจ๋—ํ•  ๊ฒฝ์šฐ์—๋งŒ ์ ๊ฒ€ํ•˜๊ณ , ์†์ƒ๋œ ๋ธ”๋ก์„ ๋ณด๊ณ ํ•˜๋ฉฐ ์‚ฌ์šฉ์ž๊ฐ€ ๊ฐ ๋ธ”๋ก์„ ๋ณต๊ตฌํ• ์ง€ ์„ ํƒํ•˜๋„๋ก ์ƒํ˜ธ์ž‘์šฉ:

fsck -f {{/dev/sdX}}

  • ํŒŒ์ผ ์‹œ์Šคํ…œ /dev/sdX๊ฐ€ ๊นจ๋—ํ•  ๊ฒฝ์šฐ์—๋งŒ ์ ๊ฒ€ํ•˜๊ณ , ์†์ƒ๋œ ๋ธ”๋ก์„ ๋ณด๊ณ ํ•˜๋ฉฐ ์ž๋™์œผ๋กœ ๋ณต๊ตฌ:

fsck -fy {{/dev/sdX}}

  • ํŒŒ์ผ ์‹œ์Šคํ…œ /dev/sdX์˜ ๋ฌด๊ฒฐ์„ฑ์„ ์ ๊ฒ€ํ•˜๊ณ , ๊น”๋”ํ•˜๊ฒŒ ๋งˆ์šดํŠธ ํ•ด์ œ๋˜์—ˆ๋Š”์ง€ ๋ณด๊ณ :

fsck -q {{/dev/sdX}}