Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Mount Partitions within a Drive Image

  1. #1
    Join Date
    Jun 2009
    Beans
    8

    Mount Partitions within a Drive Image

    Is there an easy way to mount partitions within a drive image? Perhaps some way to "mount" the image in a way that makes its partitions devices?

  2. #2
    Join Date
    Jul 2007
    Location
    Wattisham, UK
    Beans
    2,473
    Distro
    Xubuntu

    Re: Mount Partitions within a Drive Image

    How was the image created? Images can be mounted as loopback devices but it depends on how you imaged the disk.
    (12:25:08 PM) sabdfl: if Linux is just another way to run Windows apps, we can't win
    (12:25:13 PM) sabdfl: OS/2 tried that


    Blog | Dropbox

  3. #3
    Join Date
    Jun 2009
    Beans
    8

    Re: Mount Partitions within a Drive Image

    I know that I can mount a single filesystem image on the loopback device, but if I just dd'd an entire drive, is there an easy way to mount its partitions from the resulting image?

  4. #4
    Join Date
    Jul 2007
    Location
    Wattisham, UK
    Beans
    2,473
    Distro
    Xubuntu

    Re: Mount Partitions within a Drive Image

    No, not if you did the whole drive. How would you identify where to start/stop?
    (12:25:08 PM) sabdfl: if Linux is just another way to run Windows apps, we can't win
    (12:25:13 PM) sabdfl: OS/2 tried that


    Blog | Dropbox

  5. #5
    Join Date
    Jun 2009
    Beans
    8

    Re: Mount Partitions within a Drive Image

    I assume the utility I am searching for would have to read the MBR to find out the specifics of the partitions.

  6. #6
    Join Date
    Jul 2007
    Location
    Wattisham, UK
    Beans
    2,473
    Distro
    Xubuntu

    Re: Mount Partitions within a Drive Image

    Have you tried mounting it?
    (12:25:08 PM) sabdfl: if Linux is just another way to run Windows apps, we can't win
    (12:25:13 PM) sabdfl: OS/2 tried that


    Blog | Dropbox

  7. #7
    Join Date
    Jun 2009
    Beans
    8

    Re: Mount Partitions within a Drive Image

    Without '-o loop', it tells me that it is not a block device and that I should try '-o loop'; with '-o loop', it tells me that I must specify the filesystem type.

  8. #8
    Join Date
    Jul 2007
    Location
    Wattisham, UK
    Beans
    2,473
    Distro
    Xubuntu

    Re: Mount Partitions within a Drive Image

    Then specify the filesystem!
    Code:
    sudo mount -o loop -t filesystem image destination
    (12:25:08 PM) sabdfl: if Linux is just another way to run Windows apps, we can't win
    (12:25:13 PM) sabdfl: OS/2 tried that


    Blog | Dropbox

  9. #9
    Join Date
    Jun 2009
    Beans
    8

    Re: Mount Partitions within a Drive Image

    But the image isn't a filesystem: it's a drive that contains multiple filesystems. Running fdisk on it does reveal something interesting, though: each partition is named image_path#n in the fdisk display, in which #n is the partition number, although I can't use these names for mounting.

  10. #10
    Join Date
    Jul 2007
    Location
    Wattisham, UK
    Beans
    2,473
    Distro
    Xubuntu

    Re: Mount Partitions within a Drive Image

    You know, its difficult to help when he information comes in dribs and drabs - mentioning the type of image, how it was obtained and what it contains would have been helpful in your first post!

    You need to find where it starts then try it using:
    Code:
    mount -oloop,offset=xxxx image.dd /mnt/point
    (12:25:08 PM) sabdfl: if Linux is just another way to run Windows apps, we can't win
    (12:25:13 PM) sabdfl: OS/2 tried that


    Blog | Dropbox

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •