Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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:

  1. tar and gzip 600GB stored data
  2. verify the archieve is not corrupt (using this gunzip -c file.tar.gz | tar t > /dev/null)
  3. upload the tar to my webserver via sftp
  4. check again the archieve is still in not corrupt
  5. reformat the external hdd
  6. 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

In /etc/fstab the drive is mounted:

/dev/sda1       /stor           ntfs    defaults          0       1
share|improve this question

1 Answer 1

If the disk have available space I think it's much faster to use gparted to resize the partition, create another ext4 partition on the new blank space and then copy from the NTFS to the ext4 partition. The process may need to be repeated 1 or 2 more times and after finished, the NTFS could be removed completely

share|improve this answer
1  
I'm really afraid of losing data. I don't have X installed either so I have to use command line tools –  DanFromGermany Sep 11 '13 at 7:04
    
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" gparted.sourceforge.net But ofcourse carefulness is always better –  Lưu Vĩnh Phúc Sep 11 '13 at 7:10
    
BTW, I failed using parted, NTFS corrupted. I cannot recommend other solution than doing a big backup even if it takes long its way safer. –  DanFromGermany Dec 9 '13 at 15:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.