Systemd는 시작 시 encf 마운트를 시도합니다.

Systemd는 시작 시 encf 마운트를 시도합니다.

encfs 드라이브를 마운트하려고 하는 systemd에 문제가 있습니다 /dev/sdb1. Systemd는 드라이브를 암호화하기 위해 비밀번호를 요청합니다. 이것은 Ubuntu를 업데이트할 때만 문제가 됩니다. 왜냐하면 systemd가 비밀번호를 묻는 동안 설치가 종종 중단되기 때문입니다. 비밀번호 질문을 중단한 후 설치가 계속되지만 이는 매우 짜증나는 일입니다...

나는 systemd가 내 encfs 드라이브를 전혀 처리하는 것을 원하지 않습니다. 필요할 때만 마운트하고 systemd를 통하지 않고 파일 관리자를 사용하여 수행합니다. 이 드라이브의 자동 마운트를 영구적으로 비활성화하도록 systemd에 어떻게 알릴 수 있습니까?

# fdisk -l /dev/sdb
Disk /dev/sdb: 22,4 GiB, 24015495168 bytes, 46905264 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x020e1c69

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdb1  *     2048 46903295 46901248 22,4G 83 Linux

이것은 내 입니다 /etc/fstab. 다음에 대한 항목이 없습니다 /dev/sdb1.

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=de2463d2-cb58-4be5-b6aa-11c1b5b3241c /               ext4        errors=remount-ro 0       1

답변1

/etc/fstab옵션 을 사용하여 encfs 드라이브를 추가해야 합니다 noauto. 그러면 드라이브가 자동으로 마운트되지 않도록 시스템 장치에 알려야 합니다. 따라서 비슷한 것을 추가해야 합니다:

/dev/sdb1 /media/extdisk fuse noauto,x-systemd.automount 0 0

관련 정보