Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have 2 TB of data on an NTFS drive which I would like to convert to EXT4 filesystem. My OS runs on a (comparatively) small 60GB SSD. Is there any way to convert the filesystem, apart from backing up and reformatting?

share|improve this question
add comment

3 Answers 3

up vote 14 down vote accepted

Just for the record, there is a software (actually, a mini-distro) that does exactly the procedure arrange said in enzotib's answer:

Parted Magic

It looks like a direct conversion from NTFS to ext4, but internally the procedures are:

  1. Shrink the NTFS partition
  2. Create an ext4 partition in the empty space
  3. Move data from NTFS to ext4 until ext4 is full
  4. If NTFS is empty (all data was moved), go to step 8
  5. Shrink NTFS
  6. Enlarge ext4
  7. Repeat steps 3 to 6 until done
  8. Delete NTFS partition
  9. Move ext4 partition to NTFS' orignal place
  10. Trim ext4 partition to NTFS' original size

So the more occupied your NTFS partition is, the longer it will take. If it is less than 50%, it will convert in one pass, in a single shrink-copy-enlarge iteration.

Although Parted Magic conveniently automates all of this, it is still essentially the same procedures described by arrange, so it is very risky and very time consuming. Backup-format-restore is much safer and much faster.

share|improve this answer
    
Thanks @arrange for the algorithm –  MestreLion May 22 '12 at 10:06
    
And @enzotib for the original answer, obviously –  MestreLion May 22 '12 at 10:07
add comment

No, there is no way that I am aware of.

The only way, as you said, is to backup->format->restore.

share|improve this answer
5  
Or defragment->shrink->make a new ext4 partition->copy data ntfs→ext4->delete the ntfs partition->enlarge ntfs. Risky and not nice. –  arrange Sep 26 '11 at 9:14
    
@arrange, you mean "enlarge ext4", right? and not "enlarge ntfs" in the last step of your instructions... –  rigved Sep 26 '11 at 9:59
    
@rigved: yes, enlarge ext4, thanks, can't edit the original comment anymore... –  arrange Sep 26 '11 at 10:05
    
ok the drive is full, so it looks like buying a new drive is the only option .. –  wim Sep 27 '11 at 12:17
add comment

Actually there IS a way to do this almost directly.

You could easily convert NTFS to ext2 / ext3 with anyconvertfs from anyfs-tools

Then you could convert it to ext4 using tune2fs.

share|improve this answer
    
I have been misled by this answer. The man page doesn't state it can convert to ntfs, and the tool is not maintained since 2010. I could not compile the 6 latters versions of anyfs-tools for ubuntu 12.04 environement. –  Stephane Rolland May 9 '13 at 20:44
1  
Actually question was about converting FROM ntfs, not to ntfs. And man page states that it could: anyconvertfs. Besides, I successfully converted partition with it on Gentoo. –  PASAf Aug 24 '13 at 9:27
add comment

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.