On Tue, Jun 13, 2006 at 09:01:17PM +1000, Erik de Castro Lopo wrote: > Matthew Hannigan wrote: > > > No need for C, dd should do the job: > > > > dd conv=swab < fvs338-test.img > fvs338-test-bigendian.img > > >From the man page: > > swab swap every pair of input bytes > > This is almost *certainly* *not* what you want.
Yeah, a bit of brain fart on my part. > My guess is that > while this filesystem has *some* 16 byte integers, it also has 32 > bit integers and probably also 64 bit integers. Not too mention strings and other random data. > Swapping pairs of > bytes will do the right thing for 16 bit integers, but not for > any of the others. I was probably half-thinking of cpio's swap option, which of course knows the format and so knows what bytes to swap. Matt -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html