OS/Linux

[linux] 부팅안되는현상(강제종료,정전등)

Dev. Tool 2023. 12. 11. 01:22

.

.

.

 

/: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

          (i.e., without -a or -p options)

                                                                             [FAILED]

 

*** An error occurred during the file system check.

*** Dropping you to a shell; the system will reboot

*** when you leave the shell.

Give root password for maintenance

(or type Control-D to continue): _

 

라는 에러가 나타났을경우...

해결방법은..

 

 

1. root 패스워드를 입력합니다.

   입력하면

  (Repair filesystem) 1 # _

   이 나옵니다.

 

2. fdisk -l  을 입력합니다.

 

파티션이 표시됩니다.

 

3. 파일시스템을 체크해야합니다. 

   모든파티션 각각을 아래 명령어로 입력합니다.

# e2fsck /dev/sda1

# e2fsck /dev/sda2

# e2fsck /dev/sda3

....

 

 

 

끝.

 

 

출처 -

https://luuaz.tistory.com/m/75