1
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 df
is as follows:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 1465135100 641848736 823286364 44% /stor
In /etc/fstab
the drive is mounted:
/dev/sda1 /stor ntfs defaults 0 1
1I'm really afraid of losing data. I don't have X installed either so I have to use command line tools – Daniel W. – 2013-09-11T07:04:36.797
most modern disk partitioning software can help you freely resize partitions without loosing data. "With GParted you can resize, copy, and move partitions without data loss" http://gparted.sourceforge.net/ But ofcourse carefulness is always better
– phuclv – 2013-09-11T07:10:22.190BTW, I failed using parted, NTFS corrupted. I cannot recommend other solution than doing a big backup even if it takes long its way safer. – Daniel W. – 2013-12-09T15:54:10.860