I'm using a RaspberryPi with SMB and an external USB HDD for storage. I have only 2MB/s upload on it (via Ethernet/WiFi).
After investigating, I think NTFS on the storage drive is the bottleneck, because the ntfs.mount takes up 80-90% CPU usage (samba process uses 10%).
So I though changing to ext4 might speed up.
These are the steps I chose and I'd like to know if this is rather safe or critical in loss of data or if you have suggestions which improve the overall integrity and performance:
- tar and gzip 600GB stored data
- verify the archieve is not corrupt (using this
gunzip -c file.tar.gz | tar t > /dev/null)
- upload the tar to my webserver via sftp
- check again the archieve is still in not corrupt
- reformat the external hdd
- download and extract the files
What would the steps be according to Lưu Vĩnh Phúc answer?
The output of
dfis as follows:
Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 1465135100 641848736 823286364 44% /stor
/etc/fstab the drive is mounted:
/dev/sda1 /stor ntfs defaults 0 1