Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NTFS > XFS/F2FS No Such Device error #49

Open
duarm opened this issue Oct 3, 2022 · 2 comments
Open

NTFS > XFS/F2FS No Such Device error #49

duarm opened this issue Oct 3, 2022 · 2 comments

Comments

@duarm
Copy link

duarm commented Oct 3, 2022

I was testing the NTFS to XFS/F2FS conversion, but couldn't get it to even start, it gives me a No Such Device error, not sure why since I made sure to follow the Requirements.

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda           8:0    0 931.5G  0 disk
└─sda1        8:1    0 931.4G  0 part
fstransform: starting version 0.9.4, 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: device initial (current) file-system type 'ntfs' specified on command line
fstransform: forcing trasformation of untested file systems (DANGEROUS). '--force-untested-file-systems' bytes specified on command line
fstransform: checking for stat...         '/usr/bin/stat'
fstransform: checking for mkfifo...         '/usr/bin/mkfifo'
fstransform: checking for blockdev...         '/usr/bin/blockdev'
fstransform: checking for losetup...         '/usr/bin/losetup'
fstransform: checking for fsck...         '/usr/bin/fsck'
fstransform: checking for mkfs...         '/usr/bin/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/bin/fsmove'
fstransform: checking for fsmount_kernel...         '/usr/bin/fsmount_kernel'
fstransform: checking for fsremap...         '/usr/bin/fsremap'
fstransform: checking for fsck(source file-system)...        '/usr/bin/fsck'
fstransform: checking for fsck(target file-system)...        '/usr/bin/fsck'
fstransform: looking for optional commands
fstransform: checking for sleep...         '/usr/bin/sleep'
fstransform: checking for date...         '/usr/bin/date'
03:26:05 fstransform: applying special options for file-system type 'ntfs'
03:26:05 fstransform: checking for fsck(source file-system)...        '/usr/bin/ntfsresize' ('ntfsresize' was specified)
03:26:05 fstransform: environment check passed.
03:26:05 fstransform: saving output of this execution into /var/tmp/fstransform/fstransform.log.21879
03:26:05 fstransform: preparing to transform device '/dev/sda1' to file-system type 'f2fs'
03:26:05 fstransform: device '/dev/sda1' not found in the output of command /usr/bin/mount, assuming it is not mounted
03:26:06 fstransform: device is now mounted at '/tmp/fstransform.mount.21879' with file-system type 'fuseblk'
03:26:06 fstransform: file-system type 'fuseblk' is a placeholder name for FUSE... ignoring it (user specified type 'ntfs')
         
03:26:06 fstransform: WARNING: this program is UNTESTED on device current file system 'ntfs' !
         
03:26:06 fstransform: WARNING: this program is UNTESTED on target file system 'f2fs' !
                      this program is tested ONLY on file systems: ext2 ext3 ext4 reiserfs jfs xfs
                      continuing anyway due to option '--force-untested-file-systems' (DANGEROUS)
03:26:06 fstransform: device raw size = 1000068874240 bytes
03:26:06 fstransform: creating sparse loop file '/tmp/fstransform.mount.21879/.fstransform.loop.21879' inside device '/dev/sda1'...
03:26:06 dd: 1+0 records in
03:26:06 dd: 1+0 records out
03:26:06 dd: 1 byte copied, 6.3639e-05 s, 15.7 kB/s
03:26:06 fstransform: device file-system block size = 4096 bytes
03:26:06 fstransform: device usable size = 1000068874240 bytes
03:26:06 dd: 1+0 records in
03:26:06 dd: 1+0 records out
03:26:06 dd: 1 byte copied, 0.000386415 s, 2.6 kB/s
03:26:06 fstransform: unmounting device '/dev/sda1' and remounting it read-only using kernel driver
03:26:06 fsmount_kernel: ERROR: syscall mount(source='/dev/sda1', target='/tmp/fstransform.mount.21879', fstype='ntfs', mountflags=0x1, options='') failed: No such device
         
03:26:06 ERROR! fstransform: command '/usr/bin/fsmount_kernel /dev/sda1 /tmp/fstransform.mount.21879 -o ro -t ntfs' failed (exit status 237)
                this is potentially a problem.
                you can either quit now by pressing ENTER or CTRL+C,
                
                or, if you know what went wrong, you can fix it yourself,
                then manually run the command '/usr/bin/fsmount_kernel /dev/sda1 /tmp/fstransform.mount.21879 -o ro -t ntfs'
                (or something equivalent)
                and finally resume this script by typing CONTINUE and pressing ENTER: 03:26:07 fstransform: exiting.
@duarm duarm changed the title NTFS > XFS/F2FS NTFS > XFS/F2FS No Such Device error Oct 3, 2022
@cosmos72
Copy link
Owner

cosmos72 commented Oct 3, 2022

The error you reported

fsmount_kernel: ERROR: syscall mount(source='/dev/sda1', target='/tmp/fstransform.mount.21879', fstype='ntfs', mountflags=0x1, options='') failed: No such device

means the system call mount("/dev/sda1", "/tmp/...", "ntfs", readonly) failed.
One possible reason may be the ntfs.ko kernel module was not found, but hopefully dmesg has more details about the actual reason.

Having said that, I must add that conversion from/to NTFS is not supported. As I wrote in another issue, that's not for lack of trying, but rather because I did not yet manage to overcome/workaround all the obstacles.

@duarm
Copy link
Author

duarm commented Oct 3, 2022

I see, I had the impression some people were actually able to make it work, so I thought I would try and maybe report to help. There's nothing on Dmesg related to the mount. A quick locate ntfs.ko finds nothing,

I'm on linux-zen 5.19.12.zen1-1,
ntfs-3g 2022.5.17-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants