Unable to Mount .img file












0















I've created an .img file using ddrescue. I am a complete Ubuntu Noob, and having lots of issues mounting my img file so I can get data off of it.



If I try this command:



sudo mount -o loop,ro partition.img mountpoint


I get an error as follows:




wrong fs type, bad option, bad superblock on /dev/loop8, missing codepage or helper program, or other error




running it through parted, I've found that the file system is ext4. So I tried the command:



sudo mount -t ext4 -o loop,ro partition.img mountpoint


and I get the same error.



I know that I only copied one partition with ddrescue (not the entire drive).



The partition.img file is 49.8GB. The drive that has the file on it is 80GB. I'm trying to mount it to a folder called 'mountpoint' which exists on the same physical drive as my .img file, which I don't know if that's O.K. or not. Do I need 49.8GB of free space to mount an img file that is 49.8GB?



I've run fdisk on the .img file, and although I don't really know what I'm looking at, it seems to run just fine, which implies to me that the .img file is not corrupted.



Anyway, I'm really looking for some help here! What am I missing? Why can't I mount this .img file?



And just to help my case that the .img file is actually only one partition when I run parted I get this output:




Number Start End Size File System Flags



1 0B 49781997567B 49781997568B ext4











share|improve this question























  • Not sure if you can mount an image in a folder within the same partition. I always use /mnt for that purpose or a subfolder within it. Assuming the img file is in your user/home partition try sudo mount -o loop partition.img /mnt.

    – Paul Benson
    Jan 17 at 7:22













  • Still no luck. I'm happy to move my image file to the user/home partition and try from there, but don't really know how to do that. (I'm running Ubuntu Live off of a thumbdrive) The Image file is in the root directory of an extra harddrive connected to my computer. How do I move it over to my user/home partition?

    – Trevzilla
    Jan 17 at 21:35











  • You don't have to move the iso to your home drive. I just assumed it was there. The easiest way to mount the iso without involving mount commands is to use Disk Image Mounter which comes with Ubuntu. You'll see it under /usr/share/applications. First, you need to mount your external HDD. If it isn't on your desktop, click on File Manager and you should see it listed in the sidebar. Click on it and find the iso, then come back.

    – Paul Benson
    Jan 18 at 0:25













  • Thanks so much for your help and patience! I wasn't able to find Disk Image Mounter in applications, however I was able to mount my external hard drive and navigate to the .img file using the file explorer. (It's an .img file, not an .iso. Don't know if that makes a difference) Anyway, I right clicked on the .img file, and selected open with another application. I found Disk Image Mounter in the application list, so I selected it and hit 'Select.' As soon as I did that an error popped up. 'Ubuntu 18.04 has experienced an internal error.' Shortly after the computer froze entirely.

    – Trevzilla
    Jan 18 at 5:10











  • It seems that DIM is happy to mount iso files, but doesn't work for img files. But on trying the latter my PC did not freeze nor even give an error. Just nothing happened. The internal error suggests to me that you have a corrupted system. If you can't see DIM in the applications folder it tends to suggest this too. I'd start over and do a re-install of 18.04. When you did the original install did you download the Ubuntu iso from their site?

    – Paul Benson
    Jan 18 at 16:08


















0















I've created an .img file using ddrescue. I am a complete Ubuntu Noob, and having lots of issues mounting my img file so I can get data off of it.



If I try this command:



sudo mount -o loop,ro partition.img mountpoint


I get an error as follows:




wrong fs type, bad option, bad superblock on /dev/loop8, missing codepage or helper program, or other error




running it through parted, I've found that the file system is ext4. So I tried the command:



sudo mount -t ext4 -o loop,ro partition.img mountpoint


and I get the same error.



I know that I only copied one partition with ddrescue (not the entire drive).



The partition.img file is 49.8GB. The drive that has the file on it is 80GB. I'm trying to mount it to a folder called 'mountpoint' which exists on the same physical drive as my .img file, which I don't know if that's O.K. or not. Do I need 49.8GB of free space to mount an img file that is 49.8GB?



I've run fdisk on the .img file, and although I don't really know what I'm looking at, it seems to run just fine, which implies to me that the .img file is not corrupted.



Anyway, I'm really looking for some help here! What am I missing? Why can't I mount this .img file?



And just to help my case that the .img file is actually only one partition when I run parted I get this output:




Number Start End Size File System Flags



1 0B 49781997567B 49781997568B ext4











share|improve this question























  • Not sure if you can mount an image in a folder within the same partition. I always use /mnt for that purpose or a subfolder within it. Assuming the img file is in your user/home partition try sudo mount -o loop partition.img /mnt.

    – Paul Benson
    Jan 17 at 7:22













  • Still no luck. I'm happy to move my image file to the user/home partition and try from there, but don't really know how to do that. (I'm running Ubuntu Live off of a thumbdrive) The Image file is in the root directory of an extra harddrive connected to my computer. How do I move it over to my user/home partition?

    – Trevzilla
    Jan 17 at 21:35











  • You don't have to move the iso to your home drive. I just assumed it was there. The easiest way to mount the iso without involving mount commands is to use Disk Image Mounter which comes with Ubuntu. You'll see it under /usr/share/applications. First, you need to mount your external HDD. If it isn't on your desktop, click on File Manager and you should see it listed in the sidebar. Click on it and find the iso, then come back.

    – Paul Benson
    Jan 18 at 0:25













  • Thanks so much for your help and patience! I wasn't able to find Disk Image Mounter in applications, however I was able to mount my external hard drive and navigate to the .img file using the file explorer. (It's an .img file, not an .iso. Don't know if that makes a difference) Anyway, I right clicked on the .img file, and selected open with another application. I found Disk Image Mounter in the application list, so I selected it and hit 'Select.' As soon as I did that an error popped up. 'Ubuntu 18.04 has experienced an internal error.' Shortly after the computer froze entirely.

    – Trevzilla
    Jan 18 at 5:10











  • It seems that DIM is happy to mount iso files, but doesn't work for img files. But on trying the latter my PC did not freeze nor even give an error. Just nothing happened. The internal error suggests to me that you have a corrupted system. If you can't see DIM in the applications folder it tends to suggest this too. I'd start over and do a re-install of 18.04. When you did the original install did you download the Ubuntu iso from their site?

    – Paul Benson
    Jan 18 at 16:08
















0












0








0








I've created an .img file using ddrescue. I am a complete Ubuntu Noob, and having lots of issues mounting my img file so I can get data off of it.



If I try this command:



sudo mount -o loop,ro partition.img mountpoint


I get an error as follows:




wrong fs type, bad option, bad superblock on /dev/loop8, missing codepage or helper program, or other error




running it through parted, I've found that the file system is ext4. So I tried the command:



sudo mount -t ext4 -o loop,ro partition.img mountpoint


and I get the same error.



I know that I only copied one partition with ddrescue (not the entire drive).



The partition.img file is 49.8GB. The drive that has the file on it is 80GB. I'm trying to mount it to a folder called 'mountpoint' which exists on the same physical drive as my .img file, which I don't know if that's O.K. or not. Do I need 49.8GB of free space to mount an img file that is 49.8GB?



I've run fdisk on the .img file, and although I don't really know what I'm looking at, it seems to run just fine, which implies to me that the .img file is not corrupted.



Anyway, I'm really looking for some help here! What am I missing? Why can't I mount this .img file?



And just to help my case that the .img file is actually only one partition when I run parted I get this output:




Number Start End Size File System Flags



1 0B 49781997567B 49781997568B ext4











share|improve this question














I've created an .img file using ddrescue. I am a complete Ubuntu Noob, and having lots of issues mounting my img file so I can get data off of it.



If I try this command:



sudo mount -o loop,ro partition.img mountpoint


I get an error as follows:




wrong fs type, bad option, bad superblock on /dev/loop8, missing codepage or helper program, or other error




running it through parted, I've found that the file system is ext4. So I tried the command:



sudo mount -t ext4 -o loop,ro partition.img mountpoint


and I get the same error.



I know that I only copied one partition with ddrescue (not the entire drive).



The partition.img file is 49.8GB. The drive that has the file on it is 80GB. I'm trying to mount it to a folder called 'mountpoint' which exists on the same physical drive as my .img file, which I don't know if that's O.K. or not. Do I need 49.8GB of free space to mount an img file that is 49.8GB?



I've run fdisk on the .img file, and although I don't really know what I'm looking at, it seems to run just fine, which implies to me that the .img file is not corrupted.



Anyway, I'm really looking for some help here! What am I missing? Why can't I mount this .img file?



And just to help my case that the .img file is actually only one partition when I run parted I get this output:




Number Start End Size File System Flags



1 0B 49781997567B 49781997568B ext4








mount






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 17 at 4:39









TrevzillaTrevzilla

11




11













  • Not sure if you can mount an image in a folder within the same partition. I always use /mnt for that purpose or a subfolder within it. Assuming the img file is in your user/home partition try sudo mount -o loop partition.img /mnt.

    – Paul Benson
    Jan 17 at 7:22













  • Still no luck. I'm happy to move my image file to the user/home partition and try from there, but don't really know how to do that. (I'm running Ubuntu Live off of a thumbdrive) The Image file is in the root directory of an extra harddrive connected to my computer. How do I move it over to my user/home partition?

    – Trevzilla
    Jan 17 at 21:35











  • You don't have to move the iso to your home drive. I just assumed it was there. The easiest way to mount the iso without involving mount commands is to use Disk Image Mounter which comes with Ubuntu. You'll see it under /usr/share/applications. First, you need to mount your external HDD. If it isn't on your desktop, click on File Manager and you should see it listed in the sidebar. Click on it and find the iso, then come back.

    – Paul Benson
    Jan 18 at 0:25













  • Thanks so much for your help and patience! I wasn't able to find Disk Image Mounter in applications, however I was able to mount my external hard drive and navigate to the .img file using the file explorer. (It's an .img file, not an .iso. Don't know if that makes a difference) Anyway, I right clicked on the .img file, and selected open with another application. I found Disk Image Mounter in the application list, so I selected it and hit 'Select.' As soon as I did that an error popped up. 'Ubuntu 18.04 has experienced an internal error.' Shortly after the computer froze entirely.

    – Trevzilla
    Jan 18 at 5:10











  • It seems that DIM is happy to mount iso files, but doesn't work for img files. But on trying the latter my PC did not freeze nor even give an error. Just nothing happened. The internal error suggests to me that you have a corrupted system. If you can't see DIM in the applications folder it tends to suggest this too. I'd start over and do a re-install of 18.04. When you did the original install did you download the Ubuntu iso from their site?

    – Paul Benson
    Jan 18 at 16:08





















  • Not sure if you can mount an image in a folder within the same partition. I always use /mnt for that purpose or a subfolder within it. Assuming the img file is in your user/home partition try sudo mount -o loop partition.img /mnt.

    – Paul Benson
    Jan 17 at 7:22













  • Still no luck. I'm happy to move my image file to the user/home partition and try from there, but don't really know how to do that. (I'm running Ubuntu Live off of a thumbdrive) The Image file is in the root directory of an extra harddrive connected to my computer. How do I move it over to my user/home partition?

    – Trevzilla
    Jan 17 at 21:35











  • You don't have to move the iso to your home drive. I just assumed it was there. The easiest way to mount the iso without involving mount commands is to use Disk Image Mounter which comes with Ubuntu. You'll see it under /usr/share/applications. First, you need to mount your external HDD. If it isn't on your desktop, click on File Manager and you should see it listed in the sidebar. Click on it and find the iso, then come back.

    – Paul Benson
    Jan 18 at 0:25













  • Thanks so much for your help and patience! I wasn't able to find Disk Image Mounter in applications, however I was able to mount my external hard drive and navigate to the .img file using the file explorer. (It's an .img file, not an .iso. Don't know if that makes a difference) Anyway, I right clicked on the .img file, and selected open with another application. I found Disk Image Mounter in the application list, so I selected it and hit 'Select.' As soon as I did that an error popped up. 'Ubuntu 18.04 has experienced an internal error.' Shortly after the computer froze entirely.

    – Trevzilla
    Jan 18 at 5:10











  • It seems that DIM is happy to mount iso files, but doesn't work for img files. But on trying the latter my PC did not freeze nor even give an error. Just nothing happened. The internal error suggests to me that you have a corrupted system. If you can't see DIM in the applications folder it tends to suggest this too. I'd start over and do a re-install of 18.04. When you did the original install did you download the Ubuntu iso from their site?

    – Paul Benson
    Jan 18 at 16:08



















Not sure if you can mount an image in a folder within the same partition. I always use /mnt for that purpose or a subfolder within it. Assuming the img file is in your user/home partition try sudo mount -o loop partition.img /mnt.

– Paul Benson
Jan 17 at 7:22







Not sure if you can mount an image in a folder within the same partition. I always use /mnt for that purpose or a subfolder within it. Assuming the img file is in your user/home partition try sudo mount -o loop partition.img /mnt.

– Paul Benson
Jan 17 at 7:22















Still no luck. I'm happy to move my image file to the user/home partition and try from there, but don't really know how to do that. (I'm running Ubuntu Live off of a thumbdrive) The Image file is in the root directory of an extra harddrive connected to my computer. How do I move it over to my user/home partition?

– Trevzilla
Jan 17 at 21:35





Still no luck. I'm happy to move my image file to the user/home partition and try from there, but don't really know how to do that. (I'm running Ubuntu Live off of a thumbdrive) The Image file is in the root directory of an extra harddrive connected to my computer. How do I move it over to my user/home partition?

– Trevzilla
Jan 17 at 21:35













You don't have to move the iso to your home drive. I just assumed it was there. The easiest way to mount the iso without involving mount commands is to use Disk Image Mounter which comes with Ubuntu. You'll see it under /usr/share/applications. First, you need to mount your external HDD. If it isn't on your desktop, click on File Manager and you should see it listed in the sidebar. Click on it and find the iso, then come back.

– Paul Benson
Jan 18 at 0:25







You don't have to move the iso to your home drive. I just assumed it was there. The easiest way to mount the iso without involving mount commands is to use Disk Image Mounter which comes with Ubuntu. You'll see it under /usr/share/applications. First, you need to mount your external HDD. If it isn't on your desktop, click on File Manager and you should see it listed in the sidebar. Click on it and find the iso, then come back.

– Paul Benson
Jan 18 at 0:25















Thanks so much for your help and patience! I wasn't able to find Disk Image Mounter in applications, however I was able to mount my external hard drive and navigate to the .img file using the file explorer. (It's an .img file, not an .iso. Don't know if that makes a difference) Anyway, I right clicked on the .img file, and selected open with another application. I found Disk Image Mounter in the application list, so I selected it and hit 'Select.' As soon as I did that an error popped up. 'Ubuntu 18.04 has experienced an internal error.' Shortly after the computer froze entirely.

– Trevzilla
Jan 18 at 5:10





Thanks so much for your help and patience! I wasn't able to find Disk Image Mounter in applications, however I was able to mount my external hard drive and navigate to the .img file using the file explorer. (It's an .img file, not an .iso. Don't know if that makes a difference) Anyway, I right clicked on the .img file, and selected open with another application. I found Disk Image Mounter in the application list, so I selected it and hit 'Select.' As soon as I did that an error popped up. 'Ubuntu 18.04 has experienced an internal error.' Shortly after the computer froze entirely.

– Trevzilla
Jan 18 at 5:10













It seems that DIM is happy to mount iso files, but doesn't work for img files. But on trying the latter my PC did not freeze nor even give an error. Just nothing happened. The internal error suggests to me that you have a corrupted system. If you can't see DIM in the applications folder it tends to suggest this too. I'd start over and do a re-install of 18.04. When you did the original install did you download the Ubuntu iso from their site?

– Paul Benson
Jan 18 at 16:08







It seems that DIM is happy to mount iso files, but doesn't work for img files. But on trying the latter my PC did not freeze nor even give an error. Just nothing happened. The internal error suggests to me that you have a corrupted system. If you can't see DIM in the applications folder it tends to suggest this too. I'd start over and do a re-install of 18.04. When you did the original install did you download the Ubuntu iso from their site?

– Paul Benson
Jan 18 at 16:08












0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1110467%2funable-to-mount-img-file%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1110467%2funable-to-mount-img-file%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Human spaceflight

Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

張江高科駅