Slow Data transferts after edition FSTAB

Hi Community!

I just started in Linux with OpenSUSE 12.1 (GNOME) and must say I quite like it.

My setup (now) looks like this:

Partition FS Mount point
/dev/sda1 ntfs /windows/C
/dev/sda2 swap
/dev/sda3 ext 4 /
/dev/sdb1 ntfs /home/username/Datas

sda is a Intel X-25M 80Gb Postwill with my Windows 7 x64 partition and a fresh install of OpenSUSE 12.1 on sda3

sdb1 is a Western Digital 500Gb Sata3 drive for my files formated as NTFS for use in Windows and Linux.

The initial setup looked like this:

Partition FS Mount point
/dev/sda1 ntfs /windows/C
/dev/sda2 swap
/dev/sda3 ext 4 /
/dev/sdb1 ntfs /windows/D

So you see, I changed the Mount point of the 500Gb HDD to correspond to my needs. To do so, I edited FSTAB.

Now it looks like this:

/dev/disk/by-id/ata-INTEL_SSDSA2M080G2GC_CVPO010202RS080BGN-part2 swap swap defaults 0 0
/dev/disk/by-id/ata-INTEL_SSDSA2M080G2GC_CVPO010202RS080BGN-part3 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-INTEL_SSDSA2M080G2GC_CVPO010202RS080BGN-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.U TF-8 0 0
/dev/disk/by-id/ata-WDC_WD5000AAKX-001CA0_WD-WCAYU7784858-part1 /home/username/Datas ntfs-3g rw,auto,users,sync,gid=users,fmask=133,dmask=002,l ocale=en_US.UTF-8 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0

Initially it looked like this (yes I made a backup):

/dev/disk/by-id/ata-INTEL_SSDSA2M080G2GC_CVPO010202RS080BGN-part2 swap swap defaults 0 0
/dev/disk/by-id/ata-INTEL_SSDSA2M080G2GC_CVPO010202RS080BGN-part3 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-INTEL_SSDSA2M080G2GC_CVPO010202RS080BGN-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.U TF-8 0 0
/dev/disk/by-id/ata-WDC_WD5000AAKX-001CA0_WD-WCAYU7784858-part1 /Datas ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.U TF-8 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0

The problem I encounter now are very slow transfert speeds form and to /dev/sdb1. The average transfert speed is 4Mo/sec !!

I changed the mountpoint several times until I got the setup I was looking for. I rebooted between each modification.

Can anyone back me up please.

Hi LittlePinguine

Have a look at the dmask value, you changed it from 002 to 022. (and there is a space in l ocale=en_US.UTF-8 0 0 in your first Code example (it should be locale, but maybe you copied that wrongly?).

Cheers,

Admoel

You could also leave the original fstab, just set /Datas to “rw”. and simply make a symlink in your homedir:


ln -s /Datas ~/Datas

This way it would appear as a folder in your /home/username

Thanks guys for your answeres.

@Adomel: I set dmask back to 002 and the space il “l ocal” was a bad copy-paste indeed. The dmask=002 did not fix the issue.

@Knurpht: I thought about ln -s but I’d like to keep my solution as it allows me to have a shortcut with HDD icon on the desktop, which is rather nice imo.

any other clues?

Ok, problem soved!

Apperantly Suse do not understand some of the additional parameters I added. I got rid of the “rw,auto,sync” parameters and now transfert rates are back to normal.

I get 55 Mo/sec on USB3, it’s not the 70Mo/sec I’m used to under Win7 but hey, it works!

Cheers

On 2011-11-26 17:36, LittlePinguine wrote:
>
> Ok, problem soved!
>
> Apperantly Suse do not understand some of the additional parameters I
> added. I got rid of the “rw,auto,sync” parameters and now transfert
> rates are back to normal.

Sync does indeed make write speed rather slow: it disables the cache, write
operations do not return till the data is really written on disk.

> I get 55 Mo/sec on USB3, it’s not the 70Mo/sec I’m used to under Win7
> but hey, it works!

NTFS in linux is cpu intensive and slow.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

On 11/26/2011 10:36 AM, LittlePinguine wrote:
>
> Ok, problem soved!
>
> Apperantly Suse do not understand some of the additional parameters I
> added. I got rid of the “rw,auto,sync” parameters and now transfert
> rates are back to normal.
>
> I get 55 Mo/sec on USB3, it’s not the 70Mo/sec I’m used to under Win7
> but hey, it works!

Obviously, Linux (and openSUSE by default) understands the sync option. It means
that data is written to the disk BEFORE the write operation returns. If you do
not supply it, the system is allowed to buffer the data and write it to the disk
asynchronously. Using that option will cripple the write throughput to any disk
as you found; however, you can be assured that the data are OK. It is commonly
used for unreliable media such as a floppy.

The rw and auto options are the defaults.