(→개요) |
(→같이 보기) |
||
(사용자 2명의 중간 판 16개는 보이지 않습니다) | |||
1번째 줄: | 1번째 줄: | ||
{{소문자}} | {{소문자}} | ||
==개요== | ==개요== | ||
;filesystem check | ;filesystem check (fsck) | ||
;/sbin/fsck | ;/sbin/fsck | ||
*리눅스 파일시스템 점검 프로그램 | *리눅스 파일시스템 점검 프로그램 | ||
*특정 조건(마운트 횟수, 점검기간) | *특정 조건(마운트 횟수, 점검기간)에서는 부팅시 자동 실행될 수 있다. | ||
*(주의) 마운트된 상태에서 수행할 경우 망가질 수 | *(주의) 마운트된 상태에서 수행할 경우 망가질 수 있다. | ||
:특별한 일이 없는 한 하지 않는 게 좋다. | |||
== | ==실행예시 1== | ||
< | <syntaxhighlight lang='console'> | ||
[root@ | [root@zetawiki ~]# fdisk -l | ||
Disk /dev/sda: 21.5 GB, 21474836480 bytes | Disk /dev/sda: 21.5 GB, 21474836480 bytes | ||
23번째 줄: | 24번째 줄: | ||
/dev/sda2 39 2358 18631680 83 Linux | /dev/sda2 39 2358 18631680 83 Linux | ||
/dev/sda3 2358 2611 2031616 82 Linux swap / Solaris | /dev/sda3 2358 2611 2031616 82 Linux swap / Solaris | ||
</ | </syntaxhighlight> | ||
< | <syntaxhighlight lang='console'> | ||
[root@ | [root@zetawiki ~]# fsck /dev/sda1 | ||
fsck from util-linux-ng 2.17.2 | fsck from util-linux-ng 2.17.2 | ||
e2fsck 1.41.12 (17-May-2010) | e2fsck 1.41.12 (17-May-2010) | ||
34번째 줄: | 35번째 줄: | ||
Do you really want to continue (y/n)? yes | Do you really want to continue (y/n)? yes | ||
</ | </syntaxhighlight> | ||
< | <syntaxhighlight lang='console'> | ||
/dev/sda1: recovering journal | /dev/sda1: recovering journal | ||
/dev/sda1: clean, 38/76912 files, 42806/307200 blocks | /dev/sda1: clean, 38/76912 files, 42806/307200 blocks | ||
</ | </syntaxhighlight> | ||
==실행예시 2== | |||
<syntaxhighlight lang='console'> | |||
[root@zetawiki ~]# fsck | |||
fsck 1.39 (29-May-2006) | |||
e2fsck 1.39 (29-May-2006) | |||
/dev/VolGroup00/LogVol00: recovering journal | |||
Clearing orphaned inode 1962250 (uid=0, gid=0, mode=0100600, size=130) | |||
Clearing orphaned inode 1962247 (uid=27, gid=27, mode=0100600, size=0) | |||
Clearing orphaned inode 1962246 (uid=27, gid=27, mode=0100600, size=0) | |||
Clearing orphaned inode 1962245 (uid=27, gid=27, mode=0100600, size=0) | |||
Clearing orphaned inode 1962244 (uid=27, gid=27, mode=0100600, size=0) | |||
Clearing orphaned inode 1962243 (uid=27, gid=27, mode=0100600, size=0) | |||
/dev/VolGroup00/LogVol00: clean, 140202/9451456 files, 2342044/9445376 blocks | |||
e2fsck 1.39 (29-May-2006) | |||
/dev/vda1 is mounted. | |||
WARNING!!! Running e2fsck on a mounted filesystem may cause | |||
SEVERE filesystem damage. | |||
Do you really want to continue (y/n)? yes | |||
/boot: recovering journal | |||
/boot: clean, 47/26104 files, 30099/104388 blocks | |||
</syntaxhighlight> | |||
==같이 보기== | ==같이 보기== | ||
*[[CHKDSK]] | {{z컬럼3| | ||
*[[ | *[[scrub]] | ||
*[[리눅스 fdisk]] | |||
*[[리눅스 e2fsck]] | |||
*[[윈도우 CHKDSK]] | |||
*[[리눅스 badblocks]] | |||
*[[리눅스 dumpe2fs]] | |||
*[[UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.]] | |||
*[[Has gone x days without being checked, check forced.]] | |||
}} | |||
==참고 | ==참고== | ||
*https://en.wikipedia.org/wiki/Fsck | *https://en.wikipedia.org/wiki/Fsck | ||
2024년 7월 11일 (목) 11:16 기준 최신판
1 개요[ | ]
- filesystem check (fsck)
- /sbin/fsck
- 리눅스 파일시스템 점검 프로그램
- 특정 조건(마운트 횟수, 점검기간)에서는 부팅시 자동 실행될 수 있다.
- (주의) 마운트된 상태에서 수행할 경우 망가질 수 있다.
- 특별한 일이 없는 한 하지 않는 게 좋다.
2 실행예시 1[ | ]
Console
Copy
[root@zetawiki ~]# fdisk -l
Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00050f39
Device Boot Start End Blocks Id System
/dev/sda1 * 1 39 307200 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 39 2358 18631680 83 Linux
/dev/sda3 2358 2611 2031616 82 Linux swap / Solaris
Console
Copy
[root@zetawiki ~]# fsck /dev/sda1
fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
/dev/sda1 is mounted.
WARNING!!! The filesystem is mounted. If you continue you ***WILL***
cause ***SEVERE*** filesystem damage.
Do you really want to continue (y/n)? yes
Console
Copy
/dev/sda1: recovering journal
/dev/sda1: clean, 38/76912 files, 42806/307200 blocks
3 실행예시 2[ | ]
Console
Copy
[root@zetawiki ~]# fsck
fsck 1.39 (29-May-2006)
e2fsck 1.39 (29-May-2006)
/dev/VolGroup00/LogVol00: recovering journal
Clearing orphaned inode 1962250 (uid=0, gid=0, mode=0100600, size=130)
Clearing orphaned inode 1962247 (uid=27, gid=27, mode=0100600, size=0)
Clearing orphaned inode 1962246 (uid=27, gid=27, mode=0100600, size=0)
Clearing orphaned inode 1962245 (uid=27, gid=27, mode=0100600, size=0)
Clearing orphaned inode 1962244 (uid=27, gid=27, mode=0100600, size=0)
Clearing orphaned inode 1962243 (uid=27, gid=27, mode=0100600, size=0)
/dev/VolGroup00/LogVol00: clean, 140202/9451456 files, 2342044/9445376 blocks
e2fsck 1.39 (29-May-2006)
/dev/vda1 is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Do you really want to continue (y/n)? yes
/boot: recovering journal
/boot: clean, 47/26104 files, 30099/104388 blocks
4 같이 보기[ | ]
5 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.