Volker Armin Hemmann writes: > On Montag 23 November 2009, Stroller wrote:
> > $ fdisk -l sda.dd.img > > You must set cylinders. > > You can do this from the extra functions menu. > > > > Disk sda.dd.img: 0 MB, 0 bytes > > 255 heads, 63 sectors/track, 0 cylinders > > Units = cylinders of 16065 * 512 = 8225280 bytes > > Disk identifier: 0x01890189 > > > > Device Boot Start End Blocks Id System > > sda.dd.img1 * 1 10010 80405293+ 7 HPFS/NTFS > > Partition 1 has different physical/logical endings: > > phys=(1023, 254, 63) logical=(10009, 254, 63) > > $ > > $ sudo losetup -o 8225280 /dev/loop0 sda.dd.img Try -o $(( 63*512 )). 63 is the start sector, you see this when you enter the U command in fdisk in order to change the units. > yeah, you don't need to use losetup. I mounted a lot of images over the > years and I never used losetup. Um, even if the partition does not start at the beginning? I tried this a while ago, giving the offset directly as mount option, but it did not work at all. But when I also tried it manually with losetup, I succeeded. Wonko