GNOME Bugzilla – Bug 574389
No /usr/bin/xxd file
Last modified: 2009-07-06 22:07:09 UTC
Please describe the problem: I tried to move an NTFS partition inside a volume ; gparted starts to run then displays an error on the following command : command : echo 80aa2c00 | /usr/bin/xxd -r -p | /bin/dd conv=notrunc of=/dev/hda1 bs=1 seek=28 error : sh: /usr/bin/xxd: No such file or directory Steps to reproduce: 1. create an NFTS partition inside a disk 2. move the partition in the same disk, without changing its size 3. Actual results: Error Expected results: Success Does this happen every time? Yes Other information:
Thanks for reporting this problem Steph. When an NTFS partition is moved, the above command is used to update some metadata in the file system that indicates how many sectors are before the file system. To fix this problem in your case, you could install "xxd" (and "dd" if it is missing) and issue the following command (with root privilege): echo 80aa2c00 | /usr/bin/xxd -r -p | \ /bin/dd conv=notrunc of=/dev/hda1 bs=1 seek=28 To fix this bug in GParted, moves or copies of NTFS partitions should not be permitted if the xxd or dd commands are missing. Alternatively, the xxd command could be replaced with code to directly write the required update to the partition. This last note is mostly for myself when I fix the bug :-)
Thank you for your answer, curtis. The problem in my case was I was using the LiveCD version of Gparted to move a partition on a Windows only computer, so it was impossible for me to install xdd... But let me tell you Gparted is a GREAT piece of software ! ;o)
Thank you for the clarification. We will see to adding /usr/bin/xxd to GParted Live.
Thanks to Steven Shia, the /usr/bin/xxd file has been added to the testing release of GParted Live 0.4.3-4.
This bug was fixed in GParted live 0.4.4-1. Closed. Thanks.
The GParted application source code has been enhanced to no longer require the /usr/bin/xxd program when moving a partition containing an NTFS file system. This enhancement has been committed to the source code repository for inclusion in the next release of GParted (0.4.6).