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

Thread: unable to mount .img file

  1. #1
    Join Date
    Sep 2009
    Beans
    30

    unable to mount .img file

    I have created a .mg file using DD of a failed hard drive. I have tried usng scalpel and foremost to extract the data, scalpel crashed the computer, and foremost isn't happy as I have files over 2GB. foremost did extract some of the files. Since then I have tried to mount the .img file so I can extract the data that way, but it just isn't working.

    The original Hard Drive was formatted as FAT32, in terminal I have inputted

    sudo mount -t vfat -o loop /media/Elements/passport2.img /mnt/temp

    but it comes up with the following error

    mount: wrong fs type, bad option, bad superblock on /dev/loop0,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so

    any ideas what I am doing wrong? I have searched, other people seem to have the same issues, but there is nothing to explain how this has been fixed.

    Many thanks in advance.

  2. #2
    Join Date
    Nov 2010
    Location
    Mautitius
    Beans
    19
    Distro
    Ubuntu

    Question Re: unable to mount .img file

    If its a Windows failed drive, then you need windows to securely remove the drive before it can be mounted on Ubuntu. Attach your drive to a windows OS and shutdown the PC. If you have deleted the damaged drive partition, then dont worry... Download the application File Inspector Recovery and run it on windows.

  3. #3
    Join Date
    Jun 2008
    Location
    Porto, Portugal
    Beans
    6
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: unable to mount .img file

    I have a somewhat similar problem:

    My hard drive just died on me, but before its death I was able to create an image of the \home partition where my important files are.
    Now I wanted to mount this image, but I keep getting the same error message as mentioned above:
    Code:
    mount: wrong fs type, bad option, bad superblock on /dev/loop0,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so
    Any ideas how I can mount this image properly? I tried searching Google, but what I've found so far didn't help.

    I am also trying to use foremost and scalpel to recover my files from this image. So far I successfully extracted some files, but there are still many that I would like to get my hands on. For example, I have Matlab and Python scripts as well as some binary files that I need to recover. I've been trying some trial and error attempts to recover these files, but so far to no avail.
    Does someone have any intel on how to use the config file of scalpel in order to search for these specific file types?

  4. #4
    psusi is offline Ubuntu addict and loving it
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Beans
    3,980
    Distro
    Ubuntu Development Release

    Re: unable to mount .img file

    Try as it suggests and look at the output of dmesg | tail.

    Also are you sure it is fat32 and not ntfs?

  5. #5
    Join Date
    Feb 2010
    Location
    Silicon Valley
    Beans
    1,898
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: unable to mount .img file

    You can mount using an offset into the image file. Details in this thread: http://ubuntuforums.org/showthread.php?t=711773

  6. #6
    Join Date
    Jul 2010
    Location
    in the linux world
    Beans
    554
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: unable to mount .img file

    just try
    Code:
     sudo mount -o loop /path/to/.img /mount/location
    if you need a fast live cd for testing or anything really:
    http://ubuntuforums.org/showthread.p...70#post9715370
    boots live in just 82MB of ram, no swap!

  7. #7
    Join Date
    Sep 2009
    Beans
    30

    Re: unable to mount .img file

    Quote Originally Posted by linux18 View Post
    just try
    Code:
     sudo mount -o loop /path/to/.img /mount/location
    I Tried that and it comes up with

    Code:
    sudo mount -o loop /media/Elements/passport.img /mnt/temp
    mount: you must specify the filesystem type
    The origional hard drive was FAT32, I have this on a new external hard drive that is NTFS, this is where the image is stored.

    Quote Originally Posted by gmargo View Post
    You can mount using an offset into the image file. Details in this thread: http://ubuntuforums.org/showthread.php?t=711773
    I have tried what is in this thread, it comes up with the following:

    Code:
    @bob-ubuntu:~$ fdisk /media/Elements/passport.img
    You must set cylinders.
    You can do this from the extra functions menu.
    
    WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
             switch off the mode (command 'c') and change display units to
             sectors (command 'u').
    
    Command (m for help):
    Last edited by howefield; January 4th, 2017 at 11:20 PM. Reason: code tags

  8. #8
    Join Date
    Feb 2010
    Location
    Silicon Valley
    Beans
    1,898
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: unable to mount .img file

    You missed the "-l" option on fdisk. Or you could type a "p" at the command prompt.
    Last edited by gmargo; November 19th, 2010 at 06:18 PM.

  9. #9
    Join Date
    Sep 2009
    Beans
    30

    Re: unable to mount .img file

    Quote Originally Posted by gmargo View Post
    You missed the "-l" option on fdisk. Or you could type a "p" at the command prompt.
    When I try that I get

    Code:
    partition
       o   create a new empty DOS partition table
       p   print the partition table
       q   quit without saving changes
       s   create a new empty Sun disklabel
       t   change a partition's system id
       u   change display/entry units
       v   verify the partition table
       w   write table to disk and exit
       x   extra functionality (experts only)
    
    Command (m for help):
    I have no idea what is going wrong here, any help is greatly appreciated.

    When I try what fdisk suggests it comes up with the following


    Code:
    Command (m for help): c
    DOS Compatibility flag is not set
    
    Command (m for help): u
    Changing display/entry units to sectors
    Last edited by howefield; January 4th, 2017 at 11:21 PM. Reason: code tags

  10. #10
    psusi is offline Ubuntu addict and loving it
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Beans
    3,980
    Distro
    Ubuntu Development Release

    Re: unable to mount .img file

    Quote Originally Posted by gmargo View Post
    You missed the "-l" option on fdisk. Or you could type a "p" at the command prompt.
    Read this again.

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
  •