byte parsing problem

Hi,

I am using the following to get the VTOC from sol-10-u2-ga-sparc-dvd.iso:

# dd if=sol-10-u2-ga-sparc-dvd.iso of=dvd.vtoc bs=512 count=1

# od -D -x -j 452 -N 8 < dvd.vtoc

0000000 0000012224 0000327680

0000 2fc0 0005 0000

But when I try to do the same on an x86 machine I run into problems:

# dd if=sol-10-u2-ga-sparc-dvd.iso of=dvd.vtoc bs=512 count=1

# od -D -x -j 452 -N 8 < dvd.vtoc

0000000 3224305664 0000001280

0000 c02f 0500 0000

I also tried the "conv=swab" option on the x86:

# dd if=sol-10-u2-ga-sparc-dvd.iso of=dvd.vtoc bs=512 count=1 conv=swab

# od -D -x -j 452 -N 8 < dvd.vtoc

0000000 0801112064 0000000005

0000 2fc0 0005 0000

How can I get the output to look the same as on SPARC?

Any help appreciated,

Kevin

[852 byte] By [kpmcnamee] at [2007-11-26 8:52:42]
# 1
Just found this interesting thread. Maybe the only way is to use a workaround in perl or awk? http://www.mail-archive.com/bug-coreutils@gnu.org/msg07152.html
kpmcnamee at 2007-7-6 22:46:15 > top of Java-index,General,Talk to the Sysop...