Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Mount Partitions within a Drive Image

  1. #11
    Join Date
    Jul 2007
    Location
    Wattisham, UK
    Beans
    2,473
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Mount Partitions within a Drive Image

    Oh and I meant to say:
    Code:
    sfdisk -l -uS image.dd
    To find the start offset.
    (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

  2. #12
    Join Date
    Aug 2008
    Location
    WA
    Beans
    2,186
    Distro
    Ubuntu

    Re: Mount Partitions within a Drive Image

    It pretty strait forward. From the below the first partition starts at 63 and the sector size is 512. To mount it use an offset of 63*512. The same goes for second partition. The offset will 499968*512.

    mount -o loop,offset=32256 imagefile.img /mnt

    Code:
    foo@bar:~$ fdisk -ul imagefile.img 
    You must set cylinders.
    You can do this from the extra functions menu.
    
    Disk imagefile.img: 0 MB, 0 bytes
    32 heads, 63 sectors/track, 0 cylinders, total 0 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0x07443446
    
            Device Boot      Start         End      Blocks   Id  System
    imagefile.img1   *          63      499967      249952+  83  Linux
    imagefile.img2          499968      997919      248976   83  Linux
    Last edited by iponeverything; June 14th, 2009 at 09:04 AM.

  3. #13
    Join Date
    Jun 2009
    Beans
    8

    Re: Mount Partitions within a Drive Image

    That worked. Thank you for your help. I apologize for not giving enough information quickly enough: I thought that my meaning would be clear with the information I gave, but I was apparently wrong.

  4. #14
    Join Date
    Jun 2009
    Beans
    8

    Re: Mount Partitions within a Drive Image

    When I said "that worked", I was referring to this post, BTW.

  5. #15
    Join Date
    Jul 2007
    Location
    Wattisham, UK
    Beans
    2,473
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Mount Partitions within a Drive Image

    Glad it worked for you.
    (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 2 of 2 FirstFirst 12

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
  •