It may be that only <i>part</i> of the filesystem has been shigted by 2 bytes. Look through the partition and see if you can find blocks that look kike proper files/signatures. <br><br>If that's a case later on in the filesystem, then do a binary search to see if you can figure out where the boundry is between the shifted and unshifted parts.<br>
<br><br><div class="gmail_quote">On Wed, Dec 17, 2008 at 2:28 PM, Paul Raines <span dir="ltr"><<a href="mailto:raines@nmr.mgh.harvard.edu">raines@nmr.mgh.harvard.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Wed, 17 Dec 2008, Jon Burgess wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, 2008-12-17 at 15:35 -0500, Paul Raines wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Any<br>
fancy Linux device tricks I can do to make /dev/sdc1 shift everything<br>
by two bytes?<br>
</blockquote>
<br>
losetup -o 2<br>
<br>
e.g.<br>
<br>
[root@shark ~]# od -t x1 /dev/sda | head -n 1<br>
0000000 eb 48 90 10 8e d0 bc 00 b0 b8 00 00 8e d8 8e c0<br>
[root@shark ~]# losetup -o 2 /dev/loop0 /dev/sda<br>
[root@shark ~]# od -t x1 /dev/loop0 | head -n 1<br>
0000000 90 10 8e d0 bc 00 b0 b8 00 00 8e d8 8e c0 fb be<br>
<br>
Jon<br>
</blockquote>
<br>
<br></div>
Perfect! THanks.<br>
<br>
Unfortunately it appears the filesystem is toast though and it was<br>
not as simple as everything being shifted by 2 bytes. So I will<br>
chalk it up as a loss.<br>
<br>
<br>
<br>
[root@shadowfax ~]# losetup -o 2 /dev/loop7 /dev/sdc1<br>
[root@shadowfax ~]# dumpe2fs -h /dev/loop7<div class="Ih2E3d"><br>
dumpe2fs 1.39 (29-May-2006)<br></div>
Filesystem volume name: ASALAZAR_USB1<br>
Last mounted on: <not available><br>
Filesystem UUID: 549ade87-064b-46e8-8280-10c8a6f474b4<br>
Filesystem magic number: 0xEF53<br>
Filesystem revision #: 1 (dynamic)<br>
Filesystem features: resize_inode filetype sparse_super large_file<br>
Default mount options: (none)<br>
Filesystem state: not clean with errors<br>
Errors behavior: Continue<br>
Filesystem OS type: Linux<br>
Inode count: 61063168<br>
Block count: 122096000<br>
Reserved block count: 6104800<br>
Free blocks: 46076684<br>
Free inodes: 60915913<br>
First block: 0<br>
Block size: 4096<br>
Fragment size: 4096<br>
Reserved GDT blocks: 994<br>
Blocks per group: 32768<br>
Fragments per group: 32768<br>
Inodes per group: 16384<br>
Inode blocks per group: 512<br>
Filesystem created: Thu Jun 26 13:03:39 2008<br>
Last mount time: Tue Dec 16 15:31:21 2008<br>
Last write time: Tue Dec 16 19:28:13 2008<br>
Mount count: 35<br>
Maximum mount count: 38<br>
Last checked: Thu Jun 26 13:03:39 2008<br>
Check interval: 15552000 (6 months)<br>
Next check after: Tue Dec 23 12:03:39 2008<br>
Reserved blocks uid: 0 (user root)<br>
Reserved blocks gid: 0 (group root)<br>
First inode: 11<br>
Inode size: 128<br>
Default directory hash: tea<br>
Directory Hash Seed: e41ec746-def1-4d33-9a44-8aff8caef73b<br>
ext2fs_read_bb_inode: A block group is missing an inode table<br>
[root@shadowfax ~]# e2fsck -f -n /dev/loop7<br>
e2fsck 1.39 (29-May-2006)<br>
Group descriptors look bad... trying backup blocks...<br>
e2fsck: Bad magic number in super-block while trying to open /dev/loop7<br>
<br>
The superblock could not be read or does not describe a correct ext2<br>
filesystem. If the device is valid and it really contains an ext2<br>
filesystem (and not swap or ufs or something else), then the superblock<br>
is corrupt, and you might try running e2fsck with an alternate superblock:<br>
e2fsck -b 8193 <device><div><div></div><div class="Wj3C7c"><br>
<br>
_______________________________________________<br>
Ext3-users mailing list<br>
<a href="mailto:Ext3-users@redhat.com" target="_blank">Ext3-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/ext3-users" target="_blank">https://www.redhat.com/mailman/listinfo/ext3-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Stephen Samuel <a href="http://www.bcgreen.com">http://www.bcgreen.com</a><br>778-861-7641<br>