Oberon Community Platform Forum

Development => AOS => Topic started by: Bernhard T. on December 01, 2010, 05:10:56 PM



Title: loopback driver ?
Post by: Bernhard T. on December 01, 2010, 05:10:56 PM
is there something like a loopback filesystem driver?

I'd like to mount an image of a cd and look into it. Under linux it can be done with a loopback driver. Is there something like that also for A2/BlueBottle/AOS? I found only the "relative filesystem driver" for WinAOS.

regards
    Bernhard


Title: Re: loopback driver ?
Post by: Bernhard T. on February 20, 2012, 02:33:50 PM
I found the answer myself:

there is a module called VirtualDisks, which does exactly what I was asking for ...

With

   VirtualDisks.Install VD USB:A2.ISO ~


after having mounted my USB stick with the graphical Partition Tool I see similar stuff in the Partition Tool as I see on the burned CD ...

Although I was not yet successfull in mounting an ISO image (most probably I did not get the block size right for an ISO image), I was able to mount a hard disk image:

   VirtualDisks.Install VD USB:a2.img ~
   FSTools.Mount N AosFS VD#1 ~


The second step can be achieved in the graphical Partition Tool.

VirtualDisks are used heavily in Build.Tool for creating the bootable images.
--
  Bernhard


Title: Re: loopback driver ?
Post by: Bernhard T. on February 23, 2012, 03:01:59 PM
yet another update:

  FSTools.Mount USB FatFS USB0#1 ~
  VirtualDisks.Install -b=2048 VD USB:A2.ISO ~
  FSTools.Mount CD AosFS VD#0

works. I can see all files which would be on the CD, if I would have burned the image.


Title: Re: loopback driver ?
Post by: peasthope on February 24, 2012, 06:24:00 PM
Bernhard,

Quote
I can see all files which would be on the CD, if I would have burned the image.

Thanks for explaining.  In the context of MacOS this was described as "mounting a disk image".  At first the "disk" was a diskette; later a CD.  Ideally it should work for any media.  Correct?

Might be obvious to others, but what formats are allowed for the disk image here?  Only ISO?

Thanks again,                ... Peter E.