From: Paul W. <pd...@ex...> - 2004-05-04 16:04:42
|
On Tue, May 04, 2004 at 12:49:45PM +0100, Paul Warren wrote: > > mount: wrong fs type, bad option, bad superblock on /dev/loop1, > > or too many mounted file systems > > I don't understand that bit fully - is it because there is now a > partition table at the beginning of that disk? Yes it is. The way around this appears to be as follows - First run fdisk on your image: fdisk -l fedora-core-1-20040429 You must set heads sectors and cylinders. You can do this from the extra functions menu. Disk fedora-core-1-20040429: 0 heads, 0 sectors, 0 cylinders Units = cylinders of 1 * 512 bytes Device Boot Start End Blocks Id System fedora-core-1-20040429p1 * 33 6291456 3145712 83 Linux The important numbers seem to be 33 and 512. Take (33-1) * 512 = 16384, and use that as an offset to the loopback mount: mount fedora-core-1-20040429 tmp -o loop,offset=16384 I'm guessing that the "-1" is because the units are 1 based or something? I've been doing this by trial and error, but will it always be the case that the partition table is 16k long? Paul |