curious corruption 2-byte shift of all data

Jon Burgess jburgess777 at googlemail.com
Wed Dec 17 22:13:28 UTC 2008


On Wed, 2008-12-17 at 15:35 -0500, Paul Raines wrote:
> Any
> fancy Linux device tricks I can do to make /dev/sdc1 shift everything
> by two bytes?

losetup -o 2 

e.g.

[root at shark ~]# od -t x1 /dev/sda | head -n 1
0000000 eb 48 90 10 8e d0 bc 00 b0 b8 00 00 8e d8 8e c0
[root at shark ~]# losetup -o 2 /dev/loop0 /dev/sda
[root at shark ~]# od -t x1 /dev/loop0 | head -n 1
0000000 90 10 8e d0 bc 00 b0 b8 00 00 8e d8 8e c0 fb be

	Jon





More information about the Ext3-users mailing list