Find the answer to your Linux question:
Results 1 to 3 of 3
Hello all, I'm relatively new to Ubuntu and I like it! Now, I successfully used the following command to create a backup image to an external HD... dd if=/dev/sda of=/media/disk/backup.img ...
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Posts
    1

    How do I mount a .img file containing backup

    Hello all, I'm relatively new to Ubuntu and I like it! Now, I successfully used the following command to create a backup image to an external HD... dd if=/dev/sda of=/media/disk/backup.img

    Now, I would like to know if there is a way to mount the .img file (backup.img) so that I can browse and retrieve specific files. I've tried AcetoneISO, Nero Linux, Gmount-iso, and a bootable ghost disk of somesort.(cant find disk to give exact name). ALL have failed!

    One other related question is, if I were to restore the backup.img to a larger HD what would happen to the free space? I ask this because I am triple booted,, OS X / Vista / Ubuntu. My guess is that the free space on a larger HD would be useless after restoring backup.img

    Thanks in advance!

  2. #2
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,958
    Might help
    Mount .img file - Ubuntu Forums

    As for the free space, you should still have it, it won't just disappear on you. Worst case you'll have to resize a parition using gparted
    Bodhi 1.3 & Bodhi 1.4 using E17
    Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17

    "The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"

  3. #3
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    I don't know if you have resolved this yet, but you can mount the image to view it. First you need a folder to mount it in, I'll created a folder in your home directory called /mounted.
    Code:
    mkdir ~/mounted
    Now mount the image with root permissions.
    Code:
    sudo mount -o loop /media/disk/backup.img /home/vorko79/mounted
    Of course, change your username to the correct one. To then unmount it, use this command.
    Code:
    sudo umount /media/disk/backup.img
    Last edited by waterhead; 04-24-2009 at 10:27 PM. Reason: corrected umount command
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

Posting Permissions

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