When writing to my ntfs partition I am getting very low speeds( When reading however I'm getting my maximum speeds):
589824 3% 60.20kB/s 0:04:06
This example is using
rsync --progress [File] [Destination]
Where I am making a copy of the file in the same directory.
I am mounting my ntfs partition using fstab:
/dev/sda6 /mnt/data ntfs-3guid=1000,gid=11000,umask=0022,sync,auto,nosuid,rw,nouser 0 0
I am not sure if this is relevant but I was recently looking at the Power Tweaking tips provided on the Ubuntu wiki and I believe that these situations may correlate.
The power tweak that I believe is causing the problem is the ALPM.
Note: My write speeds to my ntfs patition were absolutely fine until about yesterday when I started fiddling with the power tweak(s)
I am using one drive with multiple partitions, so it cannot be a hardware error, this is also because My dual boot in windows can access the drive at normal speeds.
Happened to me once. I had edited the fstab to automount the NTFS partition automatically at boot. Restoring the file to before editing it did the trick.
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.
/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"
# <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?
After a bit of searching, I found the solution myself:
First, I had to give myself the ownership over /dev/sda4, and I had to give group and others read and execute permission. First I had to know my uid and gid. That was easy, by typing id MyUserName in a terminal. To change the permissions, I changed the last line in /etc/fstab to:
/dev/sda4 /media/Data ntfs defaults,umask=0022,uid=YourUIDHere,gid=YourGIDHere 0 0
umask=0022 sets the directory's (d) permissions permissions to drwxr-xr-x, to make sure that the user (me) can read, write and execute (rwx) while the group and others can only read and execute (r-x) the directory, which is what I wanted.
After that, I could mark the three checkboxes without any errors, and the folder would be shared over the network. Because I was not sure whether the sharing settings would be kept after a restart, I unchecked the checkboxes and added some lines in /etc/samba/smb.conf instead. I did that this way:
In a terminal, I typed sudo gedit /etc/samba/smb.conf
sudo gedit /etc/samba/smb.conf
I scrolled down to the last line, and pasted the following there:
comment = My Share
path = /media/Data/FolderToBeShared
browsable = yes
guest ok = yes
read only = yes
create mask = 0755
I saved the file, and then rebooted. The folder was accessible from the network now.
The most simple solution I can think of us is to use a symlink to the NTFS partition.
How I would do this is:
ln -s /path/to/folder/on/ntfs /path/to/new/location/linkname
I have not tested this myself, but if I understand sharing correctly, it should be able to work.
just mount the ntfs dir as:
get the current user and current user group as pointed by Exeleration-G: