Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi guys. I was planning to convert my storage drive of 3TB GPT disk (2TB EXT4 + 1TB NTFS) to a 1 partition of 3TB XFS.
I currently have files stored on the drive and do not want to lose them in the process.
What would be the smartest way to convert?
*Also please feel free to leave your opinions on EXT4 vs XFS. I plan to use the Drive mainly for videos, files, Linux backups and Virtual Machine Storage (XFS Strong point).
How much data is currently stored on the file systems?
You have to copy the data to another drive(s) (backups?). There is no process that I know about for linux filesystems that will convert on the fly except for ext2/3/4.
So you want to change the ext4 filesystem to xfs, change the ntfs filesystem to xfs, merge the partitions, and expand the xfs filesystem to use the new larger partition, all on-the-fly without losing any data?
Never going to happen.
Copy the data elsewhere, wipe the drive, create a new partition and XFS filesystem from scratch, copy the data back.
Oh, there are ways, but I wouldn't recommend them without a complete and verified backup.
Move the files in the NTFS partition to the ext4 partition. Depending on the space available, you might need to shrink the NTFS partition and move & expand the ext4 partition repeatedly in order to do that.
Shrink the ext4 partition to the minimum possible size.
Move the ext4 partition to the end of the disk.
Remove the (empty) NTFS partition and create a new XFS partition as large as possible.
Move files from the ext4 partition to the XFS partition. Again depending on space available, you might have to repeatedly move some files, move & shrink the ext4, and expand the XFS.
Remove the empty ext4 partition and expand the XFS partition to fill the disk.
Check to see how much of your data actually survived all that.
Just repartitioning/reformatting the disk and restoring everything from that backup would be way simpler and faster.
So you want to change the ext4 filesystem to xfs, change the ntfs filesystem to xfs, merge the partitions, and expand the xfs filesystem to use the new larger partition, all on-the-fly without losing any data?
Never going to happen.
Copy the data elsewhere, wipe the drive, create a new partition and XFS filesystem from scratch, copy the data back.
Hello, please see the top of the notice of this website.
""Welcome to LinuxQuestions.org, a friendly and active Linux Community."
Telling someone that something is "Never going to happen" does absolutely nothing to solve the problem or answer the question they had. Furthermore you condescendingly laid out the steps the OP was getting at wanting to do. Which were already quite clear. You did this to line up your "Never going to happen" jab.
The only part of your response that had any merit to it was the last sentence.
I guess we really ought to remove your name from being posted. Not sure your online name is appropriate.
Otherwise, posting that someone seems rude to you and then insulting him is kind of a two wrongs don't make a right. However the post you refer to wasn't a rude post. As noted above there doesn't seem to be a current one step way. Generally we think of conversion being an in place event that some filesystems can do.
To the OP. You could do it in chunks. Not any simple solution that I know of. No one step process will do.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.