Re: partitions on loopdev

From: Andrzej Krzysztofowicz (ankry@pg.gda.pl)
Date: Sat Jul 29 2000 - 09:27:11 EST


> i need to mount partitions in an hdimage file (DOS disklabel).
> is there any chance to do this ? perhaps with the loopdev (define the
> mapping region) ?

Yes.

> but how to find out where the partitions start and end in a portable way
> ?

Use fdisk on a partitioned device and display in block units instead of
cylinders ?

> is it possible to use the code, which manages the partitions on ide and
> scsi device
> on loop devices ?

No. Because of minor number assigment differences beetween disk and loop
devices. Maybe in future, when devfs will be a standard. Far future.

--
=======================================================================
  Andrzej M. Krzysztofowicz               ankry@mif.pg.gda.pl
  phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math.,   Technical University of Gdansk

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:30 EST