我使用的是Ubuntu 11.10,我想通过网络共享自动安装的NTFS分区(/dev/sda4
)上的文件夹。该网络的目的是在计算机之间共享文件,它主要包含Windows计算机。我/dev/sda4
在Windows 7和Ubuntu上都使用此分区。使用Nautilus,我右键单击目录,然后单击“共享选项”,然后标记三个复选框。但是,当我尝试应用设置时,它说“无法更改文件夹“ foldername”的权限”。
我已经把输出sudo blkid
和cat /etc/fstab
下方。
sudo blkid
/dev/sda2: LABEL="Windows" UUID="481319C261268D8D" TYPE="ntfs"
/dev/sda3: UUID="23dac5e8-aae7-43ac-964c-c8a5a033b0d7" TYPE="ext4"
/dev/sda4: LABEL="Data" UUID="00F1B269675B86AE" TYPE="ntfs"
/dev/sda5: UUID="6de8b757-f17e-4e36-935c-a3fd6012c628" TYPE="ext4"
/dev/sda6: UUID="d504bae2-fad6-4f6a-b489-7719ad0fe3b3" TYPE="swap"
cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda3 during installation
UUID=23dac5e8-aae7-43ac-964c-c8a5a033b0d7 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=d504bae2-fad6-4f6a-b489-7719ad0fe3b3 none swap sw 0 0
/dev/sda4 /media/Data ntfs defaults,umask=007,gid=46 0 0
如何共享此文件夹?
fstab
需要更改权限。尝试执行相同的步骤(删除后gid
不要忘记重新安装),然后告诉我们是否有帮助。
gid
从中删除/etc/fstab
会使最后一行看起来像这样:/dev/sda4 /media/Data ntfs defaults,umask=007 0 0
。/dev/sda4
没有在启动时安装,sudo mount /dev/sda4 /media/Data
给我以下输出:Mount is denied because the NTFS volume is already exclusively opened. The volume may be already mounted, or another software may use it which could be identified for example by the help of the 'fuser' command.