Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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
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" 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .