Hello Christophe , Are the tools you use in this script only for
2.5/2.6 ? Tia , JimL
On Fri, 18 Jul 2003, Christophe Saout wrote:
> Am Di, 2003-07-15 um 20.32 schrieb Dimitry V. Ketov:
> > > You can already use Device-Mapper to create "partitions" on
> > > your loop devices,
> > You're right but I want _partitions_ but not "partitions" ;)
> > It should appears like a real hardware disk, not virtual one.
> I just hacked up an ugly small shell script, that uses sfdisk and
> dmsetup to create the partition devices over any block device.
> Just dmsetup-partitions /dev/loop0 or something.
> It will then create devices /dev/mapper/loop0p1, etc... just like hda1
> and so on. To remove them use "dmsetup remove loop0p1", etc...
-- +------------------------------------------------------------------+ | James W. Laferriere | System Techniques | Give me VMS | | Network Engineer | P.O. Box 854 | Give me Linux | | babydr@baby-dragons.com | Coudersport PA 16915 | only on AXP | +------------------------------------------------------------------+ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed Jul 23 2003 - 22:00:35 EST