I have under linux:
Device Boot Start End Blocks Id System
/filename.img * 63 1007999 503968+ a5 FreeBsd
Under above partition i have two slices: ufs filesystem and swap. I don't know, how I can determine mount offset to mount ufs partition.
mount -r -t ufs -o loop,offset=32256,ufstype=ufs2 filename.img /test/
dmesg output
ufs_read_super: bad magic number
It's not working.
fdiskyou pasted does not show the partition layout you describe. Try usingpartedorpartxto display the layout and if that fails, trytestdiskon the file, since the partition table may be corrupt. – rozcietrzewiacz Oct 26 '11 at 15:11fdiskoutput does not show the BSD disklabel partitions. I also see now that my later mention of partition table was misleading, since here also the disklabel is subject to verification. – rozcietrzewiacz Oct 26 '11 at 20:32fdiskoutput is clearly Linux's fdisk, showing what in PC/Linux terminology is one partition, and in BSD terminology is one slice. Inside that PC partition a.k.a BSD slice, it is plausible that there are two BSD partitions, root and swap. – Gilles Oct 26 '11 at 20:40fdiskwould not see the BSD (disklabel) partitions, so another tool should be used. – rozcietrzewiacz Oct 26 '11 at 20:49