Now provided the disk isn't entirely corrupt I can
supposedly calculate the
offset and use the following command where 559319040 is the offset in bytes.
cmoman@neptune:/mnt$ sudo mount -t ext2 -o
loop,offset=559319040 /media/disk/kubuntu/kubuntu/dev/hda partition1/
the following error is returned.
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
What's in dmesg?
There are other tools which take some of the guesswork out of this:
kpartx, lomount, and losetup, all might make it a bit easier to get
these partitions mounted.
kpartx -a /path/to/image/file should setup some devicemaps for the
partitions, which should let you mount them directly.
Otherwise, you could try lomount -t fstype -diskimage
/path/to/image/file -partition 5 /mnt
8225280 being the bytes per cylinder and
68 being the number of cylinders to the mount point of /hda6
And trying 8225280*(68+64)=1085736960
doesn't seem to work either (I am not sure how the extended partition works).
I've done this in the past, but by referring to the sector allocation
rather than cylinders. Sectors on disk are 512 bytes