Mount .img file

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















I'm trying to mount an img file but I can't seem to do it successfully.



When I fun the file command on that .img it returns the following:



$ file file.img 
file.img: data


When I try to use mount on it I get the following:



$ sudo mount file.img test/
mount: you must specify the filesystem type


When I try to tell to use "-t auto" I get the same output:



$ sudo mount -t auto file.img test
mount: you must specify the filesystem type


I don't really know how to extract the files from this img.



Edit 1:



Jofel the following is outputted



$ xxd -a N150R-V1.0.0.5_1.0.1.img | head
0000000: 6465 7669 6365 3a4e 3135 3052 0a76 6572 device:N150R.ver
0000010: 7369 6f6e 3a56 312e 302e 302e 355f 312e sion:V1.0.0.5_1.
0000020: 302e 310a 7265 6769 6f6e 3a0a 0000 0000 0.1.region:.....
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
*
0000070: 0000 0000 0000 0000 0000 0000 0000 1232 ...............2
0000080: 3036 3132 d9cf 3fc1 5297 2c87 0033 eed0 0612..?.R.,..3..
0000090: 9f05 0000 9f05 0000 9b63 9e62 0505 0700 .........c.b....
00000a0: 4e31 3530 522d 5631 2e30 2e30 2e35 5f31 N150R-V1.0.0.5_1
00000b0: 2e30 2e31 0000 0000 0000 0000 0000 0000 .0.1............









share|improve this question



















  • 2





    Does mount -o loop file.img test do the job?

    – Arkadiusz Drabczyk
    Nov 25 '14 at 22:51











  • The file does probably not contain a file system directly at the beginning. Can you post xxd -a file.img | head, please?

    – jofel
    Nov 25 '14 at 23:07











  • @ArkadiuszDrabczyk Unfortunately that did not work. Thanks :)

    – RNikoopour
    Nov 26 '14 at 0:14












  • @jofel I have updated the main post

    – RNikoopour
    Nov 26 '14 at 0:16











  • @RNikoopour, where did you get this file in the first place? I mean, what makes you believe it has a filesystem within it. Asking because knowing its origin/story may also help knowing what file system it is supposed to contain. In addition what is the OS you are using, Linux, MacOSX, ...?

    – Marcelo
    Nov 26 '14 at 0:32
















0















I'm trying to mount an img file but I can't seem to do it successfully.



When I fun the file command on that .img it returns the following:



$ file file.img 
file.img: data


When I try to use mount on it I get the following:



$ sudo mount file.img test/
mount: you must specify the filesystem type


When I try to tell to use "-t auto" I get the same output:



$ sudo mount -t auto file.img test
mount: you must specify the filesystem type


I don't really know how to extract the files from this img.



Edit 1:



Jofel the following is outputted



$ xxd -a N150R-V1.0.0.5_1.0.1.img | head
0000000: 6465 7669 6365 3a4e 3135 3052 0a76 6572 device:N150R.ver
0000010: 7369 6f6e 3a56 312e 302e 302e 355f 312e sion:V1.0.0.5_1.
0000020: 302e 310a 7265 6769 6f6e 3a0a 0000 0000 0.1.region:.....
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
*
0000070: 0000 0000 0000 0000 0000 0000 0000 1232 ...............2
0000080: 3036 3132 d9cf 3fc1 5297 2c87 0033 eed0 0612..?.R.,..3..
0000090: 9f05 0000 9f05 0000 9b63 9e62 0505 0700 .........c.b....
00000a0: 4e31 3530 522d 5631 2e30 2e30 2e35 5f31 N150R-V1.0.0.5_1
00000b0: 2e30 2e31 0000 0000 0000 0000 0000 0000 .0.1............









share|improve this question



















  • 2





    Does mount -o loop file.img test do the job?

    – Arkadiusz Drabczyk
    Nov 25 '14 at 22:51











  • The file does probably not contain a file system directly at the beginning. Can you post xxd -a file.img | head, please?

    – jofel
    Nov 25 '14 at 23:07











  • @ArkadiuszDrabczyk Unfortunately that did not work. Thanks :)

    – RNikoopour
    Nov 26 '14 at 0:14












  • @jofel I have updated the main post

    – RNikoopour
    Nov 26 '14 at 0:16











  • @RNikoopour, where did you get this file in the first place? I mean, what makes you believe it has a filesystem within it. Asking because knowing its origin/story may also help knowing what file system it is supposed to contain. In addition what is the OS you are using, Linux, MacOSX, ...?

    – Marcelo
    Nov 26 '14 at 0:32














0












0








0








I'm trying to mount an img file but I can't seem to do it successfully.



When I fun the file command on that .img it returns the following:



$ file file.img 
file.img: data


When I try to use mount on it I get the following:



$ sudo mount file.img test/
mount: you must specify the filesystem type


When I try to tell to use "-t auto" I get the same output:



$ sudo mount -t auto file.img test
mount: you must specify the filesystem type


I don't really know how to extract the files from this img.



Edit 1:



Jofel the following is outputted



$ xxd -a N150R-V1.0.0.5_1.0.1.img | head
0000000: 6465 7669 6365 3a4e 3135 3052 0a76 6572 device:N150R.ver
0000010: 7369 6f6e 3a56 312e 302e 302e 355f 312e sion:V1.0.0.5_1.
0000020: 302e 310a 7265 6769 6f6e 3a0a 0000 0000 0.1.region:.....
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
*
0000070: 0000 0000 0000 0000 0000 0000 0000 1232 ...............2
0000080: 3036 3132 d9cf 3fc1 5297 2c87 0033 eed0 0612..?.R.,..3..
0000090: 9f05 0000 9f05 0000 9b63 9e62 0505 0700 .........c.b....
00000a0: 4e31 3530 522d 5631 2e30 2e30 2e35 5f31 N150R-V1.0.0.5_1
00000b0: 2e30 2e31 0000 0000 0000 0000 0000 0000 .0.1............









share|improve this question
















I'm trying to mount an img file but I can't seem to do it successfully.



When I fun the file command on that .img it returns the following:



$ file file.img 
file.img: data


When I try to use mount on it I get the following:



$ sudo mount file.img test/
mount: you must specify the filesystem type


When I try to tell to use "-t auto" I get the same output:



$ sudo mount -t auto file.img test
mount: you must specify the filesystem type


I don't really know how to extract the files from this img.



Edit 1:



Jofel the following is outputted



$ xxd -a N150R-V1.0.0.5_1.0.1.img | head
0000000: 6465 7669 6365 3a4e 3135 3052 0a76 6572 device:N150R.ver
0000010: 7369 6f6e 3a56 312e 302e 302e 355f 312e sion:V1.0.0.5_1.
0000020: 302e 310a 7265 6769 6f6e 3a0a 0000 0000 0.1.region:.....
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
*
0000070: 0000 0000 0000 0000 0000 0000 0000 1232 ...............2
0000080: 3036 3132 d9cf 3fc1 5297 2c87 0033 eed0 0612..?.R.,..3..
0000090: 9f05 0000 9f05 0000 9b63 9e62 0505 0700 .........c.b....
00000a0: 4e31 3530 522d 5631 2e30 2e30 2e35 5f31 N150R-V1.0.0.5_1
00000b0: 2e30 2e31 0000 0000 0000 0000 0000 0000 .0.1............






files mount






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 16 at 21:59









Rui F Ribeiro

39.8k1479133




39.8k1479133










asked Nov 25 '14 at 22:42









RNikoopourRNikoopour

1215




1215







  • 2





    Does mount -o loop file.img test do the job?

    – Arkadiusz Drabczyk
    Nov 25 '14 at 22:51











  • The file does probably not contain a file system directly at the beginning. Can you post xxd -a file.img | head, please?

    – jofel
    Nov 25 '14 at 23:07











  • @ArkadiuszDrabczyk Unfortunately that did not work. Thanks :)

    – RNikoopour
    Nov 26 '14 at 0:14












  • @jofel I have updated the main post

    – RNikoopour
    Nov 26 '14 at 0:16











  • @RNikoopour, where did you get this file in the first place? I mean, what makes you believe it has a filesystem within it. Asking because knowing its origin/story may also help knowing what file system it is supposed to contain. In addition what is the OS you are using, Linux, MacOSX, ...?

    – Marcelo
    Nov 26 '14 at 0:32













  • 2





    Does mount -o loop file.img test do the job?

    – Arkadiusz Drabczyk
    Nov 25 '14 at 22:51











  • The file does probably not contain a file system directly at the beginning. Can you post xxd -a file.img | head, please?

    – jofel
    Nov 25 '14 at 23:07











  • @ArkadiuszDrabczyk Unfortunately that did not work. Thanks :)

    – RNikoopour
    Nov 26 '14 at 0:14












  • @jofel I have updated the main post

    – RNikoopour
    Nov 26 '14 at 0:16











  • @RNikoopour, where did you get this file in the first place? I mean, what makes you believe it has a filesystem within it. Asking because knowing its origin/story may also help knowing what file system it is supposed to contain. In addition what is the OS you are using, Linux, MacOSX, ...?

    – Marcelo
    Nov 26 '14 at 0:32








2




2





Does mount -o loop file.img test do the job?

– Arkadiusz Drabczyk
Nov 25 '14 at 22:51





Does mount -o loop file.img test do the job?

– Arkadiusz Drabczyk
Nov 25 '14 at 22:51













The file does probably not contain a file system directly at the beginning. Can you post xxd -a file.img | head, please?

– jofel
Nov 25 '14 at 23:07





The file does probably not contain a file system directly at the beginning. Can you post xxd -a file.img | head, please?

– jofel
Nov 25 '14 at 23:07













@ArkadiuszDrabczyk Unfortunately that did not work. Thanks :)

– RNikoopour
Nov 26 '14 at 0:14






@ArkadiuszDrabczyk Unfortunately that did not work. Thanks :)

– RNikoopour
Nov 26 '14 at 0:14














@jofel I have updated the main post

– RNikoopour
Nov 26 '14 at 0:16





@jofel I have updated the main post

– RNikoopour
Nov 26 '14 at 0:16













@RNikoopour, where did you get this file in the first place? I mean, what makes you believe it has a filesystem within it. Asking because knowing its origin/story may also help knowing what file system it is supposed to contain. In addition what is the OS you are using, Linux, MacOSX, ...?

– Marcelo
Nov 26 '14 at 0:32






@RNikoopour, where did you get this file in the first place? I mean, what makes you believe it has a filesystem within it. Asking because knowing its origin/story may also help knowing what file system it is supposed to contain. In addition what is the OS you are using, Linux, MacOSX, ...?

– Marcelo
Nov 26 '14 at 0:32











1 Answer
1






active

oldest

votes


















1














This file is not an image of a filesystem.



Given the file name, it's a firmware image for an On Networks N150R router, which if I parse the OpenWRT makefiles correctly is a rebranded Netgear WNR612V2.



Given that the file has fairly even byte counts for every byte value except 0, I expect that the file contains:



  • a small bit of Atheros code at the beginning, since this device has an AR71xx chip;

  • a compressed image that is loaded by said bit of code.

  • some padding consisting of null bytes.

The compressed image may or may not be a filesystem, that's more reverse engineering than I care to do. If you want to see what's inside, you'll need to do some reverse engineering (or search the web, quite probably someone's already done it).






share|improve this answer























  • Hey man, You are definitely correct. I will take a look around. I'm just getting into reverse engineering so I'm sorry if this was too complex of a question for this forum. Thanks, Dhb!

    – RNikoopour
    Nov 26 '14 at 5:10











  • @RNikoopour There's a Stack Exchange for that: Reverse Engineering, if you need help along the way.

    – Gilles
    Nov 26 '14 at 9:48










Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f169947%2fmount-img-file%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














This file is not an image of a filesystem.



Given the file name, it's a firmware image for an On Networks N150R router, which if I parse the OpenWRT makefiles correctly is a rebranded Netgear WNR612V2.



Given that the file has fairly even byte counts for every byte value except 0, I expect that the file contains:



  • a small bit of Atheros code at the beginning, since this device has an AR71xx chip;

  • a compressed image that is loaded by said bit of code.

  • some padding consisting of null bytes.

The compressed image may or may not be a filesystem, that's more reverse engineering than I care to do. If you want to see what's inside, you'll need to do some reverse engineering (or search the web, quite probably someone's already done it).






share|improve this answer























  • Hey man, You are definitely correct. I will take a look around. I'm just getting into reverse engineering so I'm sorry if this was too complex of a question for this forum. Thanks, Dhb!

    – RNikoopour
    Nov 26 '14 at 5:10











  • @RNikoopour There's a Stack Exchange for that: Reverse Engineering, if you need help along the way.

    – Gilles
    Nov 26 '14 at 9:48















1














This file is not an image of a filesystem.



Given the file name, it's a firmware image for an On Networks N150R router, which if I parse the OpenWRT makefiles correctly is a rebranded Netgear WNR612V2.



Given that the file has fairly even byte counts for every byte value except 0, I expect that the file contains:



  • a small bit of Atheros code at the beginning, since this device has an AR71xx chip;

  • a compressed image that is loaded by said bit of code.

  • some padding consisting of null bytes.

The compressed image may or may not be a filesystem, that's more reverse engineering than I care to do. If you want to see what's inside, you'll need to do some reverse engineering (or search the web, quite probably someone's already done it).






share|improve this answer























  • Hey man, You are definitely correct. I will take a look around. I'm just getting into reverse engineering so I'm sorry if this was too complex of a question for this forum. Thanks, Dhb!

    – RNikoopour
    Nov 26 '14 at 5:10











  • @RNikoopour There's a Stack Exchange for that: Reverse Engineering, if you need help along the way.

    – Gilles
    Nov 26 '14 at 9:48













1












1








1







This file is not an image of a filesystem.



Given the file name, it's a firmware image for an On Networks N150R router, which if I parse the OpenWRT makefiles correctly is a rebranded Netgear WNR612V2.



Given that the file has fairly even byte counts for every byte value except 0, I expect that the file contains:



  • a small bit of Atheros code at the beginning, since this device has an AR71xx chip;

  • a compressed image that is loaded by said bit of code.

  • some padding consisting of null bytes.

The compressed image may or may not be a filesystem, that's more reverse engineering than I care to do. If you want to see what's inside, you'll need to do some reverse engineering (or search the web, quite probably someone's already done it).






share|improve this answer













This file is not an image of a filesystem.



Given the file name, it's a firmware image for an On Networks N150R router, which if I parse the OpenWRT makefiles correctly is a rebranded Netgear WNR612V2.



Given that the file has fairly even byte counts for every byte value except 0, I expect that the file contains:



  • a small bit of Atheros code at the beginning, since this device has an AR71xx chip;

  • a compressed image that is loaded by said bit of code.

  • some padding consisting of null bytes.

The compressed image may or may not be a filesystem, that's more reverse engineering than I care to do. If you want to see what's inside, you'll need to do some reverse engineering (or search the web, quite probably someone's already done it).







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 26 '14 at 2:01









GillesGilles

534k12810801597




534k12810801597












  • Hey man, You are definitely correct. I will take a look around. I'm just getting into reverse engineering so I'm sorry if this was too complex of a question for this forum. Thanks, Dhb!

    – RNikoopour
    Nov 26 '14 at 5:10











  • @RNikoopour There's a Stack Exchange for that: Reverse Engineering, if you need help along the way.

    – Gilles
    Nov 26 '14 at 9:48

















  • Hey man, You are definitely correct. I will take a look around. I'm just getting into reverse engineering so I'm sorry if this was too complex of a question for this forum. Thanks, Dhb!

    – RNikoopour
    Nov 26 '14 at 5:10











  • @RNikoopour There's a Stack Exchange for that: Reverse Engineering, if you need help along the way.

    – Gilles
    Nov 26 '14 at 9:48
















Hey man, You are definitely correct. I will take a look around. I'm just getting into reverse engineering so I'm sorry if this was too complex of a question for this forum. Thanks, Dhb!

– RNikoopour
Nov 26 '14 at 5:10





Hey man, You are definitely correct. I will take a look around. I'm just getting into reverse engineering so I'm sorry if this was too complex of a question for this forum. Thanks, Dhb!

– RNikoopour
Nov 26 '14 at 5:10













@RNikoopour There's a Stack Exchange for that: Reverse Engineering, if you need help along the way.

– Gilles
Nov 26 '14 at 9:48





@RNikoopour There's a Stack Exchange for that: Reverse Engineering, if you need help along the way.

– Gilles
Nov 26 '14 at 9:48

















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • 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%2funix.stackexchange.com%2fquestions%2f169947%2fmount-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

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)