Ça ne prend pas en charge
officiellement le ntfs mais ça fonctionne quand même. J'ai testé sur une clé usb formatée en ntfs. Le résultat par le terminal:
Sous Ubuntu, il faut déjà s'assurer que le media est bien démonté sinon ça ne fonctionnera pas.
sudo umount /media/lynn/USB-NTFS
et le reste du traitement avec les messages d'avertissement qui vont bien... 😛
sudo fstransform --force-untested-file-systems /dev/sdi1 --current-fstype=ntfs ext4
fstransform: starting version 0.9.3.work13, checking environment
fstransform: checking for which... '/usr/bin/which'
fstransform: checking for expr... '/usr/bin/expr'
fstransform: checking for id... '/usr/bin/id'
fstransform: parsing command line arguments
fstransform: forcing trasformation of untested file systems (DANGEROUS). '--force-untested-file-systems' bytes specified on command line
fstransform: device initial (current) file-system type 'ntfs' specified on command line
fstransform: checking for stat... '/usr/bin/stat'
fstransform: checking for mkfifo... '/usr/bin/mkfifo'
fstransform: checking for blockdev... '/usr/sbin/blockdev'
fstransform: checking for losetup... '/usr/sbin/losetup'
fstransform: checking for fsck... '/usr/sbin/fsck'
fstransform: checking for mkfs... '/usr/sbin/mkfs'
fstransform: checking for mount... '/usr/bin/mount'
fstransform: checking for umount... '/usr/bin/umount'
fstransform: checking for mkdir... '/usr/bin/mkdir'
fstransform: checking for rmdir... '/usr/bin/rmdir'
fstransform: checking for rm... '/usr/bin/rm'
fstransform: checking for dd... '/usr/bin/dd'
fstransform: checking for sync... '/usr/bin/sync'
fstransform: checking for fsmove... '/usr/local/sbin/fsmove'
fstransform: checking for fsmount_kernel... '/usr/local/sbin/fsmount_kernel'
fstransform: checking for fsremap... '/usr/local/sbin/fsremap'
fstransform: checking for fsck(source file-system)... '/usr/sbin/fsck'
fstransform: checking for fsck(target file-system)... '/usr/sbin/fsck'
fstransform: looking for optional commands
fstransform: checking for sleep... '/usr/bin/sleep'
fstransform: checking for date... '/usr/bin/date'
08:55:50 fstransform: applying special options for file-system type 'ntfs'
08:55:50 fstransform: checking for fsck(source file-system)... '/usr/sbin/ntfsresize' ('ntfsresize' was specified)
08:55:50 fstransform: environment check passed.
08:55:50 fstransform: saving output of this execution into /var/tmp/fstransform/fstransform.log.25633
08:55:50 fstransform: preparing to transform device '/dev/sdi1' to file-system type 'ext4'
08:55:50 fstransform: device '/dev/sdi1' not found in the output of command /usr/bin/mount, assuming it is not mounted
08:55:50 fstransform: device is now mounted at '/tmp/fstransform.mount.25633' with file-system type 'fuseblk'
08:55:50 fstransform: file-system type 'fuseblk' is a placeholder name for FUSE... ignoring it (user specified type 'ntfs')
08:55:50 fstransform: WARNING: this program is UNTESTED on device current file system 'ntfs' !
this program is tested ONLY on file systems: ext2 ext3 ext4 reiserfs jfs xfs
continuing anyway due to option '--force-untested-file-systems' (DANGEROUS)
08:55:50 fstransform: device raw size = 258998272 bytes
08:55:50 fstransform: WARNING: possibly stale fstransform loop files found inside device '/dev/sdi1',
maybe they can be removed? list of files found:
/tmp/fstransform.mount.25633/.fstransform.loop.22771
08:55:50 fstransform: creating sparse loop file '/tmp/fstransform.mount.25633/.fstransform.loop.25633' inside device '/dev/sdi1'...
08:55:50 dd: 1+0 enregistrements lus
08:55:50 dd: 1+0 enregistrements écrits
08:55:50 dd: 1 octet copié, 0,000525316 s, 1,9 kB/s
08:55:50 fstransform: device file-system block size = 4096 bytes
08:55:50 fstransform: device usable size = 258998272 bytes
08:55:50 dd: 1+0 enregistrements lus
08:55:50 dd: 1+0 enregistrements écrits
08:55:50 dd: 1 octet copié, 0,0331521 s, 0,0 kB/s
08:55:50 fstransform: unmounting device '/dev/sdi1' and remounting it read-only using kernel driver
08:55:51 fstransform: launching '/usr/local/sbin/fsremap' in simulated mode for pre-validation
08:55:51 fsremap: setting log level to NOTICE
08:55:51 fsremap: starting job 1, persistence data and logs are in '/var/tmp/fstransform/fsremap.job.1'
08:55:51 fsremap: analysis completed: 8.00 kilobytes must be relocated
08:55:51 fsremap: allocated 8.00 kilobytes RAM as memory buffer
08:55:51 fsremap: primary-storage is 1.00 megabytes, initialized and mmapped() to contiguous RAM
08:55:51 fsremap: (simulated) starting in-place remapping. this may take a LONG time ...
08:55:51 fsremap: (simulated) progress: 50.0% done, 8.0 kilobytes still to remap
08:55:51 fsremap: (simulated) clearing 246.99 megabytes free-space from device ...
08:55:51 fsremap: (simulated) job completed.
08:55:51 fstransform: unmounting device '/dev/sdi1' and remounting it read-write
08:55:51 fstransform: connected loop device '/dev/loop0' to file '/tmp/fstransform.mount.25633/.fstransform.loop.25633'
08:55:51 fstransform: formatting loop device '/dev/loop0' with file-system type 'ext4'...
08:55:54 fstransform: mounting loop device '/dev/loop0' on '/tmp/fstransform.loop.25633' ...
08:55:54 fstransform: loop device '/dev/loop0' mounted successfully.
08:55:54 fstransform: preliminary steps completed, now comes the delicate part:
08:55:54 fstransform: fstransform will move '/dev/sdi1' contents into the loop file.
08:55:54 fstransform: WARNING: THIS IS IMPORTANT! if either the original device '/dev/sdi1'
or the loop device '/dev/loop0' become FULL,
YOU WILL LOSE YOUR DATA !
fstransform checks for enough available space,
in any case it is recommended to open another terminal, type
watch df /dev/sdi1 /dev/loop0
and check that both the original device '/dev/sdi1'
and the loop device '/dev/loop0' are NOT becoming full.
if one of them is becoming full (or both),
you MUST stop fstransform with CTRL+C or equivalent.
08:55:54 fstransform: moving '/dev/sdi1' contents into the loop file.
08:55:54 fstransform: this may take a long time, please be patient...
08:55:54 fsmove: using backward copy and truncate for file `/tmp/fstransform.loop.25633/.fstransform.loop.22771': less than 247.00 megabytes free space left
08:55:55 fsmove: skipped `/tmp/fstransform.mount.25633/.fstransform.loop.25633', matches exclude list
08:56:01 fsmove: progress: 5.0% done, 14.1 megabytes still to move
08:56:03 fsmove: progress: 10.1% done, 13.3 megabytes still to move, estimated 1 minute and 30 seconds left
08:56:04 fsmove: progress: 15.1% done, 12.6 megabytes still to move, estimated 1 minute and 15 seconds left
08:56:04 fsmove: progress: 20.4% done, 11.8 megabytes still to move, estimated 1 minute and 1 second left
08:56:05 fsmove: progress: 25.4% done, 11.1 megabytes still to move, estimated 50 seconds left
08:56:09 fsmove: progress: 30.8% done, 10.3 megabytes still to move, estimated 40 seconds left
08:56:10 fsmove: progress: 35.8% done, 9.5 megabytes still to move, estimated 40 seconds left
08:56:10 fsmove: job completed.
08:56:10 fstransform: unmounting and running '/usr/sbin/fsck' (disk check) on loop file '/tmp/fstransform.mount.25633/.fstransform.loop.25633'
08:56:16 fsck: fsck de util-linux 2.33.1
08:56:16 fsck: /dev/loop0 : 2968/63240 fichiers (0.2% non contigus), 20770/252928 blocs
08:56:16 fstransform: disconnected loop device '/dev/loop0' from file '/tmp/fstransform.mount.25633/.fstransform.loop.25633'
08:56:16 fstransform: unmounting device '/dev/sdi1' before disk check
08:56:16 fstransform: running '/usr/sbin/ntfsresize' (disk check) on device '/dev/sdi1'
08:56:16 ntfsresize: ntfsresize v2017.3.23AR.3 (libntfs-3g)
08:56:17 ntfsresize: Device name : /dev/sdi1
08:56:17 ntfsresize: NTFS volume version: 3.1
08:56:17 ntfsresize: Cluster size : 4096 bytes
08:56:17 ntfsresize: Current volume size: 258994688 bytes (259 MB)
08:56:17 ntfsresize: Current device size: 258998272 bytes (259 MB)
08:56:17 ntfsresize: New volume size : 258994688 bytes (259 MB)
08:56:17 ntfsresize: Nothing to do: NTFS volume size is already OK.
08:56:17 fstransform: mounting again device '/dev/sdi1' read-only with kernel driver
08:56:17 fstransform: launching '/usr/local/sbin/fsremap' in simulated mode
08:56:17 fsremap: setting log level to NOTICE
08:56:17 fsremap: starting job 2, persistence data and logs are in '/var/tmp/fstransform/fsremap.job.2'
08:56:17 fsremap: analysis completed: 11.50 megabytes must be relocated
08:56:17 fsremap: allocated 11.50 megabytes RAM as memory buffer
08:56:17 fsremap: primary-storage is 2.00 megabytes, initialized and mmapped() to contiguous RAM
08:56:17 fsremap: (simulated) starting in-place remapping. this may take a LONG time ...
08:56:17 fsremap: (simulated) progress: 8.7% done, 11.5 megabytes still to remap
08:56:17 fsremap: (simulated) progress: 100.0% done, 4.0 kilobytes still to remap, estimated 0 seconds left
08:56:17 fsremap: (simulated) clearing 235.50 megabytes free-space from device ...
08:56:17 fsremap: (simulated) job completed.
08:56:17 fstransform: launching '/usr/local/sbin/fsremap' in REAL mode to perform in-place remapping.
08:56:17 fsremap: setting log level to NOTICE
08:56:17 fsremap: starting job 3, persistence data and logs are in '/var/tmp/fstransform/fsremap.job.3'
08:56:17 fsremap: if this job is interrupted, for example by a power failure,
08:56:17 fsremap: you CAN RESUME it with: /usr/local/sbin/fsremap -q --resume-job=3 -- /dev/sdi1
08:56:18 fsremap: analysis completed: 11.50 megabytes must be relocated
08:56:18 fsremap: allocated 11.50 megabytes RAM as memory buffer
08:56:18 fsremap: primary-storage is 2.00 megabytes, initialized and mmapped() to contiguous RAM
08:56:18 fsremap: successfully unmounted device '/dev/sdi1'
08:56:18 fsremap: starting in-place remapping. this may take a LONG time ...
08:56:19 fsremap: progress: 8.7% done, 11.5 megabytes still to remap
08:56:25 fsremap: progress: 100.0% done, 4.0 kilobytes still to remap, estimated 0 seconds left
08:56:25 fsremap: clearing 235.50 megabytes free-space from device ...
08:58:04 fsremap: job completed.
08:58:04 fstransform: running again '/usr/sbin/fsck' (disk check) on device '/dev/sdi1'
08:58:04 fsck: fsck de util-linux 2.33.1
08:58:04 fsck: /dev/sdi1 : 2968/63240 fichiers (0.2% non contigus), 20770/252928 blocs
08:58:04 fstransform: completed successfully. device '/dev/sdi1' now contains 'ext4' file-system