我在使用带有 Debian Linux 的 Rasperry Pi 盒时遇到了外部 USB 磁盘写入操作方面的问题
root@raspberrypi:~# umount /dev/sda1
root@raspberrypi:~# mkdir /media/extGrayUSB
root@raspberrypi:~# mount -t ntfs /dev/sda1 /media/extGrayUSB/
root@raspberrypi:~# id
uid=0(root) gid=0(root) groups=0(root),1001(indiecity)
root@raspberrypi:~#
root@raspberrypi:~# ls -la /media | grep ext
drwx------ 1 root root 4096 May 1 18:01 extGrayUSB
root@raspberrypi:~# mkdir /media/extGrayUSB/hede
mkdir: cannot create directory `/media/extGrayUSB/hede': Operation not permitted
root@raspberrypi:~#
root@raspberrypi:~# chmod 777 /media/extGrayUSB
root@raspberrypi:~# chmod 777 -R /media/extGrayUSB
root@raspberrypi:~# ls -la /media | grep ext
drwxrwxrwx 1 root root 4096 May 1 18:01 extGrayUSB
root@raspberrypi:~# mkdir /media/extGrayUSB/hede
mkdir: cannot create directory `/media/extGrayUSB/hede': Operation not permitted
root@raspberrypi:~#
root@raspberrypi:/media# ls -la /media/extGrayUSB/
total 8
drwxrwxrwx 1 root root 4096 May 1 18:01 .
drwxr-xr-x 6 root root 4096 May 2 22:00 ..
drwxrwxrwx 1 root root 0 May 1 18:01 incoming
drwxrwxrwx 1 root root 0 May 1 18:01 temp
为什么我会收到此权限错误?我是 root,我可以挂载外部 USB 驱动器,但无法创建任何目录
谢谢你的帮助
答案1
使用 ntfs-3g 重新挂载
umount /dev/sda1
sudo mount -t ntfs-3g /dev/sda2 /mnt/data