I've replaced a laptop's dodgy HDD with a CF card and got a few Linuxes booting with grub4dos from it but I also need to install a Portable XP.img.
The problem I have is that when I copy the img to the CF, despite it being 80% empty the file gets fragmented and so g4d can't boot it.
If I had a working XP on there I'd just use Wincontig under that but I don't.
Putting the img on a USB, defragging it from my Windows machine and then booting from that before copying the img to the CF and defragging it from there isn't going to work either as a) the laptop only has USB1 which is excruciatingly slow and
it can't boot from USB anyway (although I might be able to get round that with PLOP).
All I can find in Linux forums is people saying how pointless and unnecessary defragging is under Linux, so I don't think I'll get much help there.
So is there anything that I can use in Linux to do the same thing as Wincontig (i.e identify and defrag individual files)?
The problem I have is that when I copy the img to the CF, despite it being 80% empty the file gets fragmented and so g4d can't boot it.
If I had a working XP on there I'd just use Wincontig under that but I don't.
Putting the img on a USB, defragging it from my Windows machine and then booting from that before copying the img to the CF and defragging it from there isn't going to work either as a) the laptop only has USB1 which is excruciatingly slow and

All I can find in Linux forums is people saying how pointless and unnecessary defragging is under Linux, so I don't think I'll get much help there.
So is there anything that I can use in Linux to do the same thing as Wincontig (i.e identify and defrag individual files)?