loopback mount individual partitions from a whole hd image file

From: Jon Evans (jon.evans@pobox.com)
Date: Sat Jun 24 2000 - 20:42:32 EDT

  • Next message: Bartlomiej Zolnierkiewicz: "Re: ide-2.2.17pre6 patch available"

    Hi,

    Is there any way I can mount individual partitions from a losetup'd
    file? I can cfdisk /dev/loop and see the partitions there, with names
    like /dev/loop0p1 - but there doesn't seem to be a way to get at those
    individual partitions as seperate block devices so I can mount them.

    The file is version6_fullinstall.img, which can be obtained from
    http://jailbait.sourceforge.net/ - it's a mini Linux distribution designed
    to fit in a 16MB Sandisk, but I want to put it on a 120MB hard drive.

    Another way to do it would be to split the image file into seperate files
    for each partition - how would I locate the offsets into the file for each
    partition?

    Thanks,

    Jon.

    -
    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 : Sat Jun 24 2000 - 20:55:35 EDT