So I'm still experimenting issues with an external HDD on Linux and was hoping someone could help me out. Basically, I have a toshiba external HDD that in both NTFS or ext4 copies very slowly like 5mb/s, but if I use it in a Windows OS it copies normally (average 100mb/s). I've tried several ways of formatting in gparted and can't find a decent solution. When I start transferring files to my ext hdd basically it starts at 100mb/s but slowly decreases until it reaches like 5mb/s.
@ringu Hmm, no ideas myself but I boosted in case someone else does!
@le_ArthurDent This does not justify transfer being as slow; given the large amount of data (over 200gb) I hate to transfer this speed is not feasible.
No it doesn't. I am not a hard drive expert. Maybe GPT partition table brings some advantage? Or maybe your drive is heavily fragmentent.
@le_ArthurDent Tried that already and no difference. This is odd specifically because this is my newest ext HDD and my oldest which is a lot slower on Windows works perfectly fine on Linux.
Have you explored if the issue has to do with the port/s of connections?
@mrojo I have tried to use different USB ports with no discernible difference
Blocksize? Newer hard drives are optimized for larger blocksizes. You need to set the correct blocksize while formatting the partition.
Other possibility: check whether the correct kernel modules are loaded when you hook up the USB disk: xhci VS ehci.
@ringu You could try setting sysctl values vm.dirty_ratio and vm.dirty_background_ratio to a smaller value.
Are you sure it's not reporting the cache speed initally? Sometimes dd tool claims to have copied 2gb in 10seconds but 2minutes passes after I type 'sync'. Best approach is to record the time taken to safely copy the whole file.
Fosstodon is a Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.