디스크 파티션이 /dev/sda7
마운트되었으며 /media/debian/8eda3aeb-e21b-455f-bb7a-f46005fb4893
디렉토리의 소유권을 변경하고 싶습니다 /media/debian/8eda3aeb-e21b-455f-bb7a-f46005fb4893/mydoc
.
sudo chown -R debian:debian /media/debian/8eda3aeb-e21b-455f-bb7a-f46005fb4893/mydoc
다음과 같은 문제가 발생합니다.
chown: changing ownership of '/media/debian/8eda3aeb-e21b-455f-bb7a-f46005fb4893/mydoc': Operation not permitted
어떻게 고치나요?
UUID 및 파일 형식 표시:
sudo blkid |grep sda7
/dev/sda7: UUID="B8DC-0104" TYPE="vfat" PARTLABEL="win10" PARTUUID="cdbdb58a-158d-428b-b572-5d4a2ad391c9"
이렇게 설치하고,
cat /etc/fstab
UUID=B8DC-0104 /media/debian/8eda3aeb-e21b-455f-bb7a-f46005fb4893 vfat rw,user,exec,umask=000 0 0
@waltinator가 말한 것처럼 시도해 보세요. 지방을 설치하다
1단계: /etc/fstab에서 설정을 제거하고 다음 줄을 삭제합니다.
UUID=B8DC-0104 /media/debian/8eda3aeb-e21b-455f-bb7a-f46005fb4893 vfat rw,user,exec,umask=000 0 0
2단계: 다시 시작 3단계:
target=/dev/sda7
mntdir=/mnt/wordpress
sudo mkdir mntdir
sudo mount -t vfat -o remount,rw,user,users,nosuid,nodev,relatime,uid=$(id -u),gid=$(id -g),fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2 $target $mntdir
에러 메시지:
mount: /mnt/wordpress not mounted or bad option
In some cases useful info is found in syslog - try
dmesg | tail or so.
메시지 표시
sudo dmesg|tail
[ 39.748493] ashmem: initialized
[ 46.748313] NET: Registered protocol family 3
[ 46.958169] NET: Registered protocol family 5
[ 48.384024] audit: type=1400 audit(1596700794.077:36): apparmor="STATUS" operation="profile_load" profile="unconfined" name="docker-default" pid=1476 comm="apparmor_parser"
[ 50.467394] audit: type=1326 audit(1596700796.161:37): auid=4294967295 uid=0 gid=0 ses=4294967295 subj==unconfined pid=780 comm="anbox" exe="/snap/anbox/186/usr/bin/anbox" sig=0 arch=c000003e syscall=165 compat=0 ip=0x7fab12334c5a code=0x7ffc0000
[ 50.769984] audit: type=1326 audit(1596700796.461:38): auid=4294967295 uid=0 gid=0 ses=4294967295 subj==unconfined pid=780 comm="anbox" exe="/snap/anbox/186/usr/bin/anbox" sig=0 arch=c000003e syscall=165 compat=0 ip=0x7fab12334c5a code=0x7ffc0000
[ 51.179790] audit: type=1326 audit(1596700796.873:39): auid=4294967295 uid=0 gid=0 ses=4294967295 subj==unconfined pid=780 comm="anbox" exe="/snap/anbox/186/usr/bin/anbox" sig=0 arch=c000003e syscall=165 compat=0 ip=0x7fab12334c5a code=0x7ffc0000
[ 54.041691] Bridge firewalling registered
[ 54.212587] Initializing XFRM netlink socket
[ 54.368677] IPv6: ADDRCONF(NETDEV_UP): docker0: link is not ready
답변1
sudo
작동하지 않으니 를 실행하고 , su
루트 비밀번호를 입력한 후 을 실행하세요 chown -R debian:debian /media/debian/8eda3aeb-e21b-455f-bb7a-f46005fb4893/mydoc
. 작동해야합니다.