I'm on Ubuntu 11.10, and I want to share a folder on an automounted NTFS partition (/dev/sda4) over the network. The purpose of this network is to share files between computers, it contains mostly Windows computers. I use this /dev/sda4 partition both from Windows 7 and Ubuntu. Using Nautilus, I right-click the directory, then I click 'Sharing Options', then I mark the three checkboxes. When I try to apply the settings though, it says 'Couldn't change the rights of the folder "foldername"'.
I've put the output of sudo blkid and cat /etc/fstab below.
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
How can I share this folder?
fstabneeds to be changed. Try the same procedure with removedgid(don't forget to remount), and tell us if it helped. – Andrejs Cainikovs Dec 07 '11 at 20:22gidfrom/etc/fstabmakes the last line look like this:/dev/sda4 /media/Data ntfs defaults,umask=007 0 0./dev/sda4isn't mounted on startup,sudo mount /dev/sda4 /media/Datagives me the following output: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.– Exeleration-G Dec 07 '11 at 22:35