Engineer/Linux

[TIP] how to change read only filesystem to write

mjune.kim 2017. 4. 11. 15:55
안녕하세요. 꿈꾸는 개발자입니다.
readonly 파일시스템 영역을 임시로  writable 한 영역으로 재마운트하는 방법입니다.
방법은 아래와 같습니다.


1. 디렉토리별로 마운트된 디바이스(Mounted on) 를 확인합니다.
    #> df
       
2. remount 할 디렉토리의 filesystem access permission을 확인합니다.
    #> cat /proc/mounts | grep " ro"

3. remount를 시킵니다.
    #> mount -o remount,rw /
    or #> mount -o remount,rw /boot