On Tue, Jun 3, 2008 at 2:59 PM, Stefan Smietanowski <stesmi@xxxxxxxxxx> wrote:
Spam Magnet wrote:
(The healthy disk image also doesn't have any XFS but it has: 'S f x'
(capital s))
Correcting my mistake:
The healthy image file does have the X F S B at 10000000 (octal) as
fdisk had reported:
Pt# Device Info Start End Sectors Id System
8: 2gb-ubuntu.img1 4096 3915599 3911504 a SGI xfs
4096*512=2097152 (10000000 octal):
$ od -t c 2gb-ubuntu.img | grep 10000000
10000000 X F S B \0 \0 020 \0 \0 \0 \0 \0 \0 \a u 350
I tried to see if I can find do the same thing for jaz7.img:
Pt# Device Info Start End Sectors Id System
8: jaz7.img1 3072 2091007 2087936 a SGI xfs
$ od -t c jaz7.img | grep 6000000
6000000 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
I guess all those zeros are not good signs.
Wait a moment. Aren't jaz sectors 2k each?
Try at 3072*2048 instead.
// Stefan
I think they are but I used -u option of fdisk:
$ fdisk -ul jaz7.img
Disk jaz7.img (SGI disk label): 255 heads, 63 sectors, 0 cylinders
Units = sectors of 1 * 512 bytes
----- partitions -----
Pt# Device Info Start End Sectors Id System
8: jaz7.img1 3072 2091007 2087936 a SGI xfs
9: jaz7.img2 0 3071 3072 0 SGI volhdr
11: jaz7.img3 0 2091007 2091008 6 SGI volume
which lists partitions in sector units. As oppose to:
$ fdisk -l jaz7.img
Disk jaz7.img (SGI disk label): 255 heads, 63 sectors, 0 cylinders
Units = cylinders of 16065 * 512 bytes
----- partitions -----
Pt# Device Info Start End Sectors Id System
8: jaz7.img1 1 130 2087936 a SGI xfs
9: jaz7.img2 0 0 3072 0 SGI volhdr
11: jaz7.img3 0 130 2091008 6 SGI volume