cosmos72 / fstransform

tool for in-place filesystem conversion (for example from jfs/xfs/reiser to ext2/ext3/ext4) without backup
GNU General Public License v2.0
270 stars 29 forks source link

Error converting NTFS #28

Open Krutonium opened 4 years ago

Krutonium commented 4 years ago

Basically, having read the warnings, I am attempting to proceed with converting a 6TB NTFS drive to EXT4.

Everything looks fine up until this point:

06:33:49 fsremap: ERROR: ff_posix_fibmap(): error, dev_block_count = 11720777728, file_block_count = 11720777728 overflow type (int): File too large
06:33:49 fsremap: ERROR: failed to list file blocks with ioctl(FS_IOC_FIEMAP): Operation not supported

06:33:49 ERROR! fstransform: command '/usr/bin/fsremap -q -n -- /dev/sdf2 /tmp/fstransform.mount.1718/.fstransform.loop.1718' failed (exit status 229)
                this is potentially a problem.
                you can either quit now by pressing ENTER or CTRL+C,

I assume I should be concerned, so I am wondering what the best course of action would be here.

cosmos72 commented 4 years ago

Hello Krutonium,

Short version: HIC SUNT LEONES - there are lions here, don't try it.

Long version: converting NTFS comes up relatively often, but is not supported for a long list of reasons.

One reason is that it's EXTREMELY slow.

Another is that it's limited to ~2TB due to missing support for ioctl(FS_IOC_FIEMAP) both in FUSE ntfs-3g driver and in Linux ntfs filesystem.

And there are other reasons to...

I tried to solve or work around the problems of NTFS conversion several times, and until now I did not succeed.

Regards,

Massimiliano Ghilardi

On 5/28/20 12:44 PM, Krutonium wrote:

Basically, having read the warnings, I am attempting to proceed with converting a 6TB NTFS drive to EXT4.

Everything looks fine up until this point:

|06:33:49 fsremap: ERROR: ff_posix_fibmap(): error, dev_block_count = 11720777728, file_block_count = 11720777728 overflow type (int): File too large 06:33:49 fsremap: ERROR: failed to list file blocks with ioctl(FS_IOC_FIEMAP): Operation not supported 06:33:49 ERROR! fstransform: command '/usr/bin/fsremap -q -n -- /dev/sdf2 /tmp/fstransform.mount.1718/.fstransform.loop.1718' failed (exit status 229) this is potentially a problem. you can either quit now by pressing ENTER or CTRL+C, |

I assume I should be concerned, so I am wondering what the best course of action would be here.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cosmos72/fstransform/issues/28, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAO3NBWPUR7FJYKZX3REUDDRTY6CFANCNFSM4NM67GCA.

tng99 commented 2 months ago

Thanks to your fstransform tool, I successfully converted my Kubuntu 24 release from XFS to ext4 on a 60GB NVMe partition. However, the operation changed the UUID, causing GRUB to fail and stop at the GRUB prompt. I fixed it by update the UUID, the steps are located here: https://askubuntu.com/questions/1519153/how-to-convert-os-partition-from-xfs-to-ext4/1519264

Additionally, could you add a tune2fs command at the end of your code to revert the partition to its previous UUID AND modify the FS inside the fstab to the new one (in my case ext4)? I believe this will resolve the issue I encountered. Thanks very much.