After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 574389 - No /usr/bin/xxd file
No /usr/bin/xxd file
Status: RESOLVED FIXED
Product: gparted
Classification: Other
Component: livecd
0.4.3
Other All
: Normal critical
: ---
Assigned To: gparted maintainers alias
gparted maintainers alias
Depends on:
Blocks:
 
 
Reported: 2009-03-06 16:46 UTC by Steph
Modified: 2009-07-06 22:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Steph 2009-03-06 16:46:03 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:
Comment 1 Curtis Gedak 2009-03-06 17:55:40 UTC
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 :-)


Comment 2 Steph 2009-03-08 09:32:44 UTC
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)
Comment 3 Curtis Gedak 2009-03-11 18:51:48 UTC
Thank you for the clarification.  We will see to adding /usr/bin/xxd to GParted Live.
Comment 4 Curtis Gedak 2009-04-02 17:05:53 UTC
Thanks to Steven Shia, the /usr/bin/xxd file has been added to the testing release of GParted Live 0.4.3-4.
Comment 5 Steven Shiau 2009-04-23 01:17:44 UTC
This bug was fixed in GParted live 0.4.4-1. Closed.
Thanks.
Comment 6 Curtis Gedak 2009-07-06 22:07:09 UTC
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).