외장 저장소 fstab 등록시 옵션 설정
OS/linux 2022. 5. 23. 22:10defaults로 적용시 외장 저장소 연결이 되어 있지 않을 경우 mount 실패로 부팅 지연 또는 실패 발생함
$ man mount defaults Use the default options: rw, suid, dev, exec, auto, nouser, and async. Note that the real set of all default mount options depends on the kernel and filesystem type. See the beginning of this section for more details.
auto 옵션에 의해 발생하는 현상으로 연결이 바뀌는 외장 저장소의 경우에는 noauto로 설정하면 부팅시 영향 받지 않음
$ man mount noauto Can only be mounted explicitly (i.e., the -a option will not cause the filesystem to be mounted).
예제(fstab)
UUID=aaaaa-bbbb /home/testuser/hdd_home ext4 rw,suid,dev,exec,noauto,nouser,async 0 2
부팅 후 sudo mount ~/hdd_home