我有 2 个磁盘,一张用于根/主目录,一张用于大文件
我尝试将符号链接移动/home/asd/go
到/media/asd/team512/go
并且它正常工作(可以ls
,大小正确)
cd ~
ls -al | grep go
lrwxrwxrwx 1 asd asd 21 Mar 5 12:33 go -> /media/asd/team512/go
ls -al ~/go/bin | grep air
-rwxr-xr-x 1 asd asd 2326528 Feb 3 15:22 air
但是当我尝试执行它时,它显示错误:
which air
air not found
~/go/bin/air
zsh: permission denied: /home/asd/go/bin/air
似乎是因为我的 fstab 没有exec
选项,我添加了exec
选项,如何在不unmount
/rebooting 的情况下重新安装它?
/dev/disk/by-uuid/b1080dbf-dad1-4652-8e82-xxx /media/asd/team512 ext4 noatime,user,exec 0 0
答案1
没关系,通过修改这个找到了答案https://askubuntu.com/questions/175739/how-do-i-remount-a-filesystem-as-read-write
sudo mount -o remount,rw,user,exec,noatime /dev/disk/by-uuid/xxx /media/asd/team512