폴더 마운트에 fstab을 사용하지 못했습니다.

폴더 마운트에 fstab을 사용하지 못했습니다.

.G 드라이브(WSL)를 마운트하려고 합니다 /code. 그러나 다음 구성 및 메시지와 함께 실패합니다.

LABEL=cloudimg-rootfs   /         ext4  defaults        0 0

/mnt/g                /code   none  defaults,bind 0 0
[ 5159.133867] init: (1) ERROR: UtilCreateProcessAndWait:655: /bin/mount failed with status 0x
[ 5159.133870] 2000
[ 5159.133876] init: (1) ERROR: ConfigMountFsTab:2152: Processing fstab with mount -a failed.
[ 5159.143122] FS-Cache: Duplicate cookie detected
[ 5159.143124] FS-Cache: O-cookie c=0000000092644cce [p=000000007ba11936 fl=222 nc=0 na=1]
[ 5159.143125] FS-Cache: O-cookie d=00000000f69d3d22 n=000000004319b7e9
[ 5159.143125] FS-Cache: O-key=[10] '34323935343533313833'
[ 5159.143128] FS-Cache: N-cookie c=000000000be0e99c [p=000000007ba11936 fl=2 nc=0 na=1]
[ 5159.143129] FS-Cache: N-cookie d=00000000f69d3d22 n=000000005622393b
[ 5159.143129] FS-Cache: N-key=[10] '34323935343533313833'
[ 5159.146589] FS-Cache: Duplicate cookie detected
[ 5159.146592] FS-Cache: O-cookie c=0000000092644cce [p=000000007ba11936 fl=222 nc=0 na=1]
[ 5159.146592] FS-Cache: O-cookie d=00000000f69d3d22 n=000000004319b7e9
[ 5159.146593] FS-Cache: O-key=[10] '34323935343533313833'
[ 5159.146595] FS-Cache: N-cookie c=0000000095f81e84 [p=000000007ba11936 fl=2 nc=0 na=1]
[ 5159.146595] FS-Cache: N-cookie d=00000000f69d3d22 n=0000000024b2120e
[ 5159.146596] FS-Cache: N-key=[10] '34323935343533313833'

마운트가 /mnt다른 곳에서 완료되었나요?

답변1

기본적으로 드라이브 파티션만 디렉터리에 마운트할 수 있습니다. 파티션은 디렉토리
에서 사용할 수 있습니다 . /dev/명령을 사용하여 모두 나열할 수 있습니다 lsblk.

fstab의 두 번째 줄에는 다음이 포함됩니다 /mnt/g /code. 왜?

/mnt/g어쩌면 에서 까지의 심볼릭 링크를 만들고 싶습니까 /code?

그 경우에는 다음과 같습니다:ln -s /mnt/g /code

관련 정보