I need expert help on this one...

There exists a file with an image of a disk... a whole disk, with
threee partitions, one primary, and two logical.  If I do:

# losetup /dev/loop0 disk.img
# fdisk -l /dev/loop0

Disk /dev/loop0: 255 heads, 63 sectors, 32 cylinders
Units = cylinders of 16065 * 512 bytes

      Device Boot    Start       End    Blocks   Id  System
/dev/loop0p1             1         2     16033+  83  Linux
/dev/loop0p2             3        32    240975    5  Extended
/dev/loop0p5             3        15    104391   83  Linux
/dev/loop0p6            16        32    136521   83  Linux


This is actually an image I created trying to solve the problem
for another fellow.  Right now I'm at wits end.  How do I get
at those /dev/loop0px partitions?  If I want to get at the
data in /dev/loop0p5, I could try offsetting the start of data
using the appropriate losetup switch, but that would concatenate
/dev/loop0p6 to the end of it.  If I just try to mount (well, I'd
have to create a FS on the partition to do that, but for the sake
of arguement...) /dev/loop0p5 on a stub, the device special file
doesn't exist.  I could mknod it into existance, but what major
and minor numbers to use?  It seems like they should all be
block-major 7 (for loopback devices), but what minor to use?
Or, more importanly, can it even be done without having to do
some kind of black-magic?

Any guiding light appreciated...

-Chuck


-- 
 +-% He's a real  UNIX Man $-+-------------------------------------+
  \  Sitting in his UNIX LAN  \          Charles A. Shirley         \
   \ Making all his UNIX plans \   cashirley (at) comcast (dot) net  \
    +------# For  nobody @------+-------------------------------------+



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to