LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-14-2010, 11:45 PM   #1
nasr-noor
LQ Newbie
 
Registered: Aug 2005
Posts: 15
Blog Entries: 1

Rep: Reputation: 0
Question ntfs to ext4


Hi all,
I have 2 ntfs partition and want to convert them to ext4.
Is there a way that do this conversion without losing my data?
Can I do this in place?
Thanks.
 
Old 06-15-2010, 12:00 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,138

Rep: Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987
1) backup, mkfs, restore
2) no
 
Old 06-15-2010, 12:05 AM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 12,698

Rep: Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687
Is there a way that do this conversion without losing my data
NO

reformating a drive destroys the data that was on it


if you rerecorded over a cassette tape would the orig music still be on it ?
or if you put a new movie on a dvd -+rw would the OLD movie still be there ?
 
Old 06-15-2010, 12:11 AM   #4
nasr-noor
LQ Newbie
 
Registered: Aug 2005
Posts: 15
Blog Entries: 1

Original Poster
Rep: Reputation: 0
But you can convert from fat to ntfs without losing data!
 
Old 06-15-2010, 01:33 PM   #5
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,079

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
theoretically possible perhaps but i don't think such a tool has been written for ntfs -> ext4, it would be just easier to copy the data off the drive, reformat, copy it back on
 
Old 06-15-2010, 02:58 PM   #6
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 128Reputation: 128
nasr-noor: Microsoft invested a thousand worked for months to make it possible. It is not a trivial operation -at all-, converting data structure is extremely complex work. Fat32 was quite "simple", both NTFS and EXT are much, much more complex file system, it is near impossible to do the operation. On top of that, the final nail in the coffin is that nobody really know how NTFS work, ntfs-3G stole some of the puzzle pieces from microsoft, to avoid have to understand it.

Only brtfs have file system conversion on Linux, but it is cheating, as it does not really convert it, it just host the EXT data structure in BTRFS "bubble"(subvolume).
 
Old 03-18-2011, 01:04 PM   #7
amiga5k
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
Actually, there's a relatively old program that can convert to and from many file systems without losing data, called Partition Commander. It can boot from the CD directly (although I prefer to use the floppy boot disk - which is made during installtion of Partition Commander).

Depending on the size and speed of the drive(s), this can take from a few minutes to a several hours.

Google 'partition commander' and good luck!

Russell
 
Old 03-18-2011, 01:34 PM   #8
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by amiga5k View Post
Actually, there's a relatively old program that can convert to and from many file systems without losing data, called Partition Commander. It can boot from the CD directly (although I prefer to use the floppy boot disk - which is made during installtion of Partition Commander).

Depending on the size and speed of the drive(s), this can take from a few minutes to a several hours.

Google 'partition commander' and good luck!

Russell
Really? I did google it, and they quite clearly say on their website that it only converts between FAT/FAT32 and NTFS.
 
Old 03-20-2011, 02:49 PM   #9
amiga5k
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
Sorry, my mistake

It supports many formats for formatting (including ext3, but not ext4 unfortunately - ext4 had not been 'invented' yet), such as the many flavors of FAT, NTFS, ext2, ReiserFS, BeOS, HPFS, and so on. But it can only convert from, like you say, between NTFS and FAT.

Still a useful tool to have.

One reason I was interested in converting my linux partition into ntfs is simply because when Windows XP boots up, it thinks the ext4 is corrupted and tries to fix it. Win 7 doesn't do this, thank goodness. I now use WinXP, when necessary, from within VirtualBox.

Russell
 
Old 03-20-2011, 04:21 PM   #10
jefro
Guru
 
Registered: Mar 2008
Posts: 11,146

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
In a way it could be done. Re-size partition then create new and start moving data and keep re-sizing partitions until it is all moved and you simply delete the remaining ntfs and expand the ext.
 
Old 01-08-2013, 06:18 PM   #11
P@S@f
LQ Newbie
 
Registered: Jan 2013
Posts: 9

Rep: Reputation: Disabled
You could easly convert ntfs to ext ext2 or ext3 with anyconvertfs from anyfs-tools: http://anyfs-tools.sf.net/

Then you just need to convert it to ext4 with tune2fs.

That's all.
 
Old 01-09-2013, 09:22 AM   #12
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64&i386, Raspbian Wheezy, various VMs
Posts: 3,233

Rep: Reputation: 759Reputation: 759Reputation: 759Reputation: 759Reputation: 759Reputation: 759Reputation: 759
That looks risky and very much "in beta". So you would have to have a backup of your data anyhow (which you ought to have regardless).
This begs the questions of why not just backup, wipe and start again with a fresh ext3 (or ext4, or Btrfs) partition?
 
Old 01-09-2013, 09:30 AM   #13
P@S@f
LQ Newbie
 
Registered: Jan 2013
Posts: 9

Rep: Reputation: Disabled
Oh and you will be so kind to give me a 3 tb drive just for backup for free?

Besides, you wrong. This feature was introduced in 2007 year, and it is not "in beta" 5 years already.
 
Old 01-09-2013, 09:36 AM   #14
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64&i386, Raspbian Wheezy, various VMs
Posts: 3,233

Rep: Reputation: 759Reputation: 759Reputation: 759Reputation: 759Reputation: 759Reputation: 759Reputation: 759
Quote:
Originally Posted by P@S@f View Post
Oh and you will be so kind to give me a 3 tb drive just for backup for free?

Besides, you wrong. This feature was introduced in 2007 year, and it is not "in beta" 5 years already.
Good luck when (not if, all drives fail eventually) your hard drive fails then .
If you don't care about your data then fair enough I suppose but I'd still not want to run that tool without a backup first.
 
Old 01-09-2013, 09:43 AM   #15
P@S@f
LQ Newbie
 
Registered: Jan 2013
Posts: 9

Rep: Reputation: Disabled
You're pathetic if you care about your extra-valuable data. And moreover - you are coward.

Faint heart never won fair lady
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
recovering a 'ntfs' partition which got ruined by mkfs.ext4 command jagsir Linux - General 6 09-19-2010 07:53 AM
How to get file creation time (Ext4, ntfs-3g)? isync Linux - Software 10 06-19-2010 05:49 PM
ext4 vs ntfs partition space used jithin1987 Linux - Newbie 1 11-04-2009 07:37 PM
Is ext4 okay to use? WillingToLikeLinux Linux - Newbie 26 05-31-2009 11:55 AM
Ext4 partition corrupted by resized NTFS Vista C:\ partition? graviton-boson Linux - Newbie 2 03-16-2009 01:26 PM


All times are GMT -5. The time now is 10:32 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration