参考链接
(man)mount的中文版:http://blog.csdn.net/evilcode/article/details/7007560
https://superuser.com/questions/932676/cannot-set-uid-with-mount/932686
今天mount硬盘的时候,mount完后,发现普通用户在挂载的文件夹下没有写的权限,只有读的权限。
一开始定位到问题:文件夹的user和group都是root,因此一般用户没有写的权限。
于是准备在mount的时候指定一下uid和gid,这样就可以让指定用户访问了。
执行命令:
先通过id命令查看目前用户的uid和gid,我的是1000,1000
然后mount硬盘,选择-o选项
dmt@dmt-All-Series:~$ sudo mount /dev/sdb1 ~/Data/ -o uid=1000,gid=1000
报错:
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
根据提示,dmesg进一步查