Hello,
I have a config based on Rpi3 + Moode Audio on the one hand and a Windows machine on the other. I am currently in the process of copying lots of files onto a USB disk that will be/is connected to the Rpi3. And I would like to find a way for transferring those files where I would not have to constantly unplug the USB disk from the RPi, replug it in the Windows Machine, copy some files, and then unplug it from the Windows machine, re-replug it into the RPi and so forth.
As explained above, I had already noticed this recommendation by Tim Curtis to use the Windows file explorer where SAMBA makes visible the mounting points of storage devices attached to the Rpi. However, for me as well as for some few other users/friends facing the same needs, this method for transferring files is a total nightmare : the transfer begins with a very high transfer rate, then it freezes and finally a pop-up message indicates that there has been a networking error. Sometimes, there are no networking errors, all the files are copied onto the USB disk, but the transfer rate drops to a ridiculous 700 B/s. Hence my post and my question of whether using FTP would not be a better alternative option (rather than SAMBA).
Since nobody replied to this particular question, I have kept on investigating the use of SAMBA+Windows file explorer and come to conclusions that I would like to share with you.
If you google this problem of low file transfer rate, you will probably quickly come to the conclusion that the problem is not simple and that 3 types of solutions are regularly suggested : (1) include a relevant option in the SAMBA config file (TCP_NODELAY), (2) include a relevant option for better managing network traffic congestion (tcp_congestion_control) and (3) format EXT rather than NTFS.
My config is OK with regards to the first two enhancements. Then, I tried to reformat my USB disk as follows:
1. connect to the RPi through SSH (userid pi and password moodeaudio)
2. sudo fdisk /dev/sda (after checking with sudo fdisk -l)
3. d (for erasing the current partition)
4. n (for creating a new primary partition)
5. defaults values for sectors and partition number
6. 83 (for selecting linux file system)
7. w (for writing all the above to the disk)
8. sudo mkfs.ext4 -b 4096 /dev/sdd1 to format the disk
This solves the problem related to the low transfer rate. I am now able to copy lots of files from the Windows explorer directly to the EXT4-formatted USB disk connected to the RPi (transfer rate of about 16 Mb/s)
However, there remains a problem visible in the graphical interface of Moode Audio. What I observe is that although the newly created disk is properly automounted and appears in under "USB" in the music tab of the moode audio interface, no music files at all appears after launching a rescan or an update.
Did I do something wrong? And, alternatively, why does it seem that moode audio does not recognize/handle EXT4 formatted USB disk?
Than you very much for any help in this respect.
Regards
Pierre
I have a config based on Rpi3 + Moode Audio on the one hand and a Windows machine on the other. I am currently in the process of copying lots of files onto a USB disk that will be/is connected to the Rpi3. And I would like to find a way for transferring those files where I would not have to constantly unplug the USB disk from the RPi, replug it in the Windows Machine, copy some files, and then unplug it from the Windows machine, re-replug it into the RPi and so forth.
As explained above, I had already noticed this recommendation by Tim Curtis to use the Windows file explorer where SAMBA makes visible the mounting points of storage devices attached to the Rpi. However, for me as well as for some few other users/friends facing the same needs, this method for transferring files is a total nightmare : the transfer begins with a very high transfer rate, then it freezes and finally a pop-up message indicates that there has been a networking error. Sometimes, there are no networking errors, all the files are copied onto the USB disk, but the transfer rate drops to a ridiculous 700 B/s. Hence my post and my question of whether using FTP would not be a better alternative option (rather than SAMBA).
Since nobody replied to this particular question, I have kept on investigating the use of SAMBA+Windows file explorer and come to conclusions that I would like to share with you.
If you google this problem of low file transfer rate, you will probably quickly come to the conclusion that the problem is not simple and that 3 types of solutions are regularly suggested : (1) include a relevant option in the SAMBA config file (TCP_NODELAY), (2) include a relevant option for better managing network traffic congestion (tcp_congestion_control) and (3) format EXT rather than NTFS.
My config is OK with regards to the first two enhancements. Then, I tried to reformat my USB disk as follows:
1. connect to the RPi through SSH (userid pi and password moodeaudio)
2. sudo fdisk /dev/sda (after checking with sudo fdisk -l)
3. d (for erasing the current partition)
4. n (for creating a new primary partition)
5. defaults values for sectors and partition number
6. 83 (for selecting linux file system)
7. w (for writing all the above to the disk)
8. sudo mkfs.ext4 -b 4096 /dev/sdd1 to format the disk
This solves the problem related to the low transfer rate. I am now able to copy lots of files from the Windows explorer directly to the EXT4-formatted USB disk connected to the RPi (transfer rate of about 16 Mb/s)
However, there remains a problem visible in the graphical interface of Moode Audio. What I observe is that although the newly created disk is properly automounted and appears in under "USB" in the music tab of the moode audio interface, no music files at all appears after launching a rescan or an update.
Did I do something wrong? And, alternatively, why does it seem that moode audio does not recognize/handle EXT4 formatted USB disk?
Than you very much for any help in this respect.
Regards
Pierre