"리눅스 fsck"의 두 판 사이의 차이

4번째 줄: 4번째 줄:
;/sbin/fsck
;/sbin/fsck
*리눅스 파일시스템 점검 프로그램
*리눅스 파일시스템 점검 프로그램
*특정 조건(마운트 횟수, 점검기간)에 맞을 경우 부팅시 자동 실행됨
*특정 조건(마운트 횟수, 점검기간)에서는 부팅시 자동 실행될 수 있다.
*(주의) 마운트된 상태에서 수행할 경우 망가질 수 있음
*(주의) 마운트된 상태에서 수행할 경우 망가질 수 있다.
:특별한 일이 없는 한 하지 않는 게 좋겠다. ;;
:특별한 일이 없는 한 하지 않는 게 좋다.


==실행예시 1==
==실행예시 1==

2024년 7월 11일 (목) 11:15 판

1 개요

filesystem check (fsck)
/sbin/fsck
  • 리눅스 파일시스템 점검 프로그램
  • 특정 조건(마운트 횟수, 점검기간)에서는 부팅시 자동 실행될 수 있다.
  • (주의) 마운트된 상태에서 수행할 경우 망가질 수 있다.
특별한 일이 없는 한 하지 않는 게 좋다.

2 실행예시 1

[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
[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
/dev/sda1: recovering journal
/dev/sda1: clean, 38/76912 files, 42806/307200 blocks

3 실행예시 2

[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 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}