• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Peek into .img files

    Scheduled Pinned Locked Moved Solved
    General
    5
    6
    4.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DeastromD
      Deastrom
      last edited by

      Is there a way to browse the contents of a .img file in such a way that you’re able to view the contents of the original partition that the .img file represents? This would be similar to the Ghost software that allows you to browse a .gho image of a drive.

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        Technically it is possible using the partclone-utils stuff, but you do have decompress the img file first.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        ch3iC 1 Reply Last reply Reply Quote 1
        • Wayne WorkmanW
          Wayne Workman
          last edited by

          You might need NTFS support…

          I wouldn’t recommend fiddling with this on your production FOG server… maybe use a Linux Live CD on a desktop, and copy over your image via NFS and do it on the Live CD ?

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

          1 Reply Last reply Reply Quote 0
          • ch3iC
            ch3i Moderator @Tom Elliott
            last edited by

            @Tom-Elliott said:

            Technically it is possible using the partclone-utils stuff, but you do have decompress the img file first.

            With a script to uncompress/mount and a php folder browser 😄

            1 Reply Last reply Reply Quote 1
            • cmlC
              cml Moderator
              last edited by cml

              It seems like it would be easier to just restore the image to a client, but I had to find a way.

              All of this is done on Debian 7 and like Wayne I would not advise you doing this on your production server.

              Breakdown:
              Install ntfs-3g, partclone, and pigz
              Decompress image and restore to a file
              Mount image

              apt-get install ntfs-3g partclone pigz
              cd /images/SecurityE420s/
              cat d1p2.img | pigz -d -c | partclone.restore -C -s - -O d1p3.img
              mount -t ntfs-3g d1p3.img /mnt
              
              ls -lah /mnt
              total 6.9G
              drwxrwxrwx  1 root root 4.0K Aug 27  2014 .
              drwxr-xr-x 28 root root 4.0K Jun 18 17:15 ..
              lrwxrwxrwx  2 root root   60 Jul 14  2009 Documents and Settings -> /mnt/Users
              -rwxrwxrwx  1 root root 9.5K Aug 28  2014 fog.log
              -rwxrwxrwx  1 root root 3.0G Aug 28  2014 hiberfil.sys
              drwxrwxrwx  1 root root    0 Aug 27  2014 Intel
              drwxrwxrwx  1 root root    0 Jun 11  2014 MSOCache
              -rwxrwxrwx  1 root root 4.0G Aug 28  2014 pagefile.sys
              drwxrwxrwx  1 root root    0 Jul 13  2009 PerfLogs
              drwxrwxrwx  1 root root 4.0K Aug 28  2014 ProgramData
              drwxrwxrwx  1 root root 8.0K Aug 27  2014 Program Files
              drwxrwxrwx  1 root root 8.0K Aug 27  2014 Program Files (x86)
              -rwxrwxrwx  1 root root 3.1K Aug 28  2014 QcOSD.txt
              drwxrwxrwx  1 root root    0 Aug 26  2014 $Recycle.Bin
              drwxrwxrwx  1 root root 4.0K Jun 11  2014 System Volume Information
              drwxrwxrwx  1 root root 4.0K Nov 20  2010 Users
              drwxrwxrwx  1 root root  40K Aug 28  2014 Windows
              
              
              
              1 Reply Last reply Reply Quote 5
              • DeastromD
                Deastrom
                last edited by

                Neat, I’ll have to give this a shot. Thank you guys.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post

                197

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project