-
Notifications
You must be signed in to change notification settings - Fork 28
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
Conversion failed with fsmove error #45
Comments
Hi @aciavolino It's unusual for |
[root@ctstageextweb2vm ~]# fstransform /dev/sda1 ext4 08:07:01 fstransform: WARNING: possibly stale fstransform loop files found insid e device '/dev/sda1',
08:07:01 fstransform: creating sparse loop file '/tmp/fstransform.mount.22858/.f stransform.loop.22858' inside device '/dev/sda1'... 08:07:02 fstransform: WARNING: THIS IS IMPORTANT! if either the original device '/dev/sda1'
08:07:10 fstransform: moving '/dev/sda1' contents into the loop file. 08:07:10 ERROR! fstransform: command '/sbin/fsmove -- /tmp/fstransform.mount.228 58 /tmp/fstransform.loop.22858 --exclude /tmp/fstransform.mount.22858/.fstransfo rm.loop.22858' failed (exit status 240)
|
I am trying to convert the boot partition from xfs to ext4 |
The error is
Fstransform does not support converting file systems which contain mount points for other partitions: the usual solution is to unmount them. Also, the following warning means several previous conversion attempts failed:
You really need to undo such previous conversion attempts, by loop-mounting those files and copying back their contents to the partition you are converting. Or, if they are empty, by deleting such files. |
Ok so I did unmount that drive and it still gives the error. I will look into removing those. How exactly do I loop mount them? |
Supposing
i.e. you just pass the file absolute path to |
I removed those loop files in temp and tried again, same error. |
See my updated comment above: [...] this is a strange error because |
ls: cannot access efi: No such file or directory |
Let me explain what I am trying to accomplish. Trying to convert from legacy to uefi, but I need to convert the xfs partition because currently I cannot shrink it. |
This VM is a clone of a production machine so I pose no risk of losing real data. |
Yes, converting xfs to ext[2,3,4] is supported. It's just that |
Pardon my obtuse reaction, but its a boot partition. I am not really sure what that answer is. |
Well, if you you deleted those files
and so on, then your Then |
[root@ctstageextweb2vm tmp]# ls -al /tmp/fstransform.mount.22858 |
Then I don't understand how you deleted those files
etc. |
The normal way, rm -rf. Gave me no issue. |
hmm... |
The empty folders in /tmp |
Is this a permission thing?? I am running as root. |
probably did nothing: Let's try to get back to a known setup: can you try to run the commands (still as root)
and post their output? |
[root@ctstageextweb2vm tmp]# mount /dev/sda1 /mnt |
Ok, now it starts to make sense :) The
and remove it if it's empty:
just because it was giving issues - otherwise there would be no need. Step 2: check the content of all those Step 3: try again the conversion |
[root@ctstageextweb2vm tmp]# ls -al /mnt/efi |
[root@ctstageextweb2vm tmp]# rmdir /mnt/efi |
So, that's the key issue: for some reason, that The most common reason is having another partition mounted under it, see for example https://serverfault.com/questions/319727/cannot-delete-folder-with-rm-rf-error-device-or-resource-busy For the same reason (freshly mounted partition) it's unlikely that some process is using it, in any case you can check with
I'm starting to think about more unusual reasons - as a corrupted file system. Maybe |
So lsof +D /mnt/efi had no output. |
[root@ctstageextweb2vm tmp]# dmesg | tail -40 |
This is getting weirder. I am trying to guess the reason for this issue. |
[root@ctstageextweb2vm tmp]# mount | grep /mnt |
This is expected, it's the So there's still no evidence of why One thing I can tell is that it's not related to fstransform - it just happened to trigger the error when trying to remove that I am quite confident it's not the solution, but out of pedantry, what does the following command print?
|
[root@ctstageextweb2vm tmp]# umount /mnt/efi |
As expected. I have run out of ideas and (almost) out of diagnostic tools at this point. Maybe a file system check could help, but if there was some corruption it should have been shown in
|
[root@ctstageextweb2vm tmp]# umount /mnt |
Man, its so odd. Just my luck I guess. |
This is even more strange. Then where else is
|
No output. |
Ok, at least it's a clue. |
/etc/fstab Accessible filesystems, by reference, are maintained under '/dev/disk' /dev/mapper/rhel_ctstageextweb2-root / xfs defaults 0 0 Could this be a reason? |
Yes, definitely. One last thing to be clarified is what's mounted under
will tell. |
No output. |
[root@ctstageextweb2vm mnt]# /sbin/fuser -m /mnt/efi Can you explain this? |
Just want to say I really appreciate your input and help on this. |
It means the process ID 11409 has |
[root@ctstageextweb2vm mnt]# ps -aux | grep 11409 |
That's your own shell, whose current directory is I hoped some process would turn up using At this point I can only recommend to move to a Linux support forum or chat, and ask for help about the error
and explaining that you cannot find anything mounted on |
Thanks for all the input. |
17:18:46 ERROR! fstransform: command '/sbin/fsmove -- /tmp/fstransform.mount.12641 /tmp/fstransform.loop.12641 --exclude /tmp/fstransform.mount.12641/.fstransform.loop.12641' failed (exit status 240)
this is potentially a problem.
you can either quit now by pressing ENTER or CTRL+C,
The text was updated successfully, but these errors were encountered: