'Linux'에 해당되는 글 2건

  1. 2022.05.23 외장 저장소 fstab 등록시 옵션 설정
  2. 2021.03.25 grep 이전 라인 다음라인 같이 보기

외장 저장소 fstab 등록시 옵션 설정

OS/linux 2022. 5. 23. 22:10
반응형

defaults로 적용시 외장 저장소 연결이 되어 있지 않을 경우 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

반응형
:

grep 이전 라인 다음라인 같이 보기

OS/linux 2021. 3. 25. 17:50
반응형

grep -B 1 TEXT file      // 이전 라인 같이 보기

grep -A 1 TEXT file      // 다음 라인 같이 보기

grep -a 1 TEXT file      // 이전,다음 라인 같이 보기

반응형
: