Quantcast
Channel: hanmin-dev
Viewing all articles
Browse latest Browse all 31

fsck - Root partition에 fsck 하기

$
0
0

문제:

fsck를 root partition에 이용하는 방법.

(fsck는 unmount된 disk에만 사용해야 하는데, computer를 이용하는 도중에는 root partition을 unmount할 수가 없다.

그래서 보통과는 다른 과정이 필요하다.)

 

 

단계 1:

Terminal을 열어서 다음 명령어를 실행한다.

(Terminal은 Ctrl+Alt+t로 열 수 있다.

Root 권한으로 해야 하므로 (sudo) 필요하다면 password를 넣어준다)

 

sudo touch /forcefsck

 

 

 

단계 2:

다음 명령어로 reboot 한다.

 

sudo shutdown -r now 

 

 

 

단계 3:

Reboot되는 과정에서 자동으로 fsck가 실행된다.

 

 

 

시연:

 

 

 


Viewing all articles
Browse latest Browse all 31

Latest Images

Trending Articles