dmg2img "Error: can't open input file"

If none of the more specific forums is the right place to ask

dmg2img "Error: can't open input file"

Postby erw1 » 2018-03-29 03:51

PROBLEM: As stated in the title.

SETUP:
Guest OS: Debian 9.4.0
Host: Win 10 Pro
Via: VB 5.2.8

SCREENSHOTS:

postimg[dot]org/gallery/12qko8rvs/

QUESTION: please help troubleshoot.
erw1
 
Posts: 6
Joined: 2018-03-29 03:30

Re: dmg2img "Error: can't open input file"

Postby debiman » 2018-03-29 07:08

a screenshot gallery does not replace a problem description.
if you take the time & effort to provide an understandable problem description, you are usually more than half way towards a solution.
if you don't, the help you get will only reflect your laziness.
User avatar
debiman
 
Posts: 2126
Joined: 2013-03-12 07:18

Re: dmg2img "Error: can't open input file"

Postby erw1 » 2018-03-29 13:43

I would have used the word "negligence", rather than "laziness", but it's still more considerate than no feedback.

Here's the description of the problem in words:

In the terminal, I cd to folder where resides InstalledESD.dmg, a 6GB file written to an exFat external drive. Then, I type

Code: Select all
$dmg2img InstalledESD.dmg osx-install.iso

and I get the msg:

dmg2img v 1.6.5
ERROR: can't open input file InstalledESD.dmg


What could be causing this error?
erw1
 
Posts: 6
Joined: 2018-03-29 03:30

Re: dmg2img "Error: can't open input file"

Postby Hallvor » 2018-03-29 13:52

Maybe try adding -V to get more verbose output. http://manpages.ubuntu.com/manpages/pre ... img.1.html
Intel Core i5 3320-M CPU @ 2.60 GHz, 6 GB RAM, Intel HD 4000 graphics, 240 GB SSD, Debian Stretch (KDE)
User avatar
Hallvor
 
Posts: 798
Joined: 2009-04-16 18:35
Location: Norway

Re: dmg2img "Error: can't open input file"

Postby debiman » 2018-03-29 14:44

so there's an apple mac os image that needs to be extracted with dmg2img.
- have you used that application succesfully before?
- did you read its man page? maybe it can be tested? maybe it requires something else?
- what are the permissions on the image file - do an 'ls -l' - and as what user are you executing the command?
- what does that virtualbox screenshot have to do with any of this???

erw1 wrote:I would have used the word "negligence", rather than "laziness", but it's still more considerate than no feedback.

thank you for correcting me.
i could not think of a better word last night. yep, negligence would have worked, too.
User avatar
debiman
 
Posts: 2126
Joined: 2013-03-12 07:18

Re: dmg2img "Error: can't open input file"

Postby erw1 » 2018-03-29 20:27

Would have liked to try this suggestion, but Debian boot stalls at:

/dev/sda1: recovering journal
/dev/sda1: clean xxxx/yyyy, xxxxxxx/yyyyyy blocks


Apparently, trying to copy the dmg file from external drive to the virtual hard disk (file too big shouldn't have happened with dynamic allocation) messed things up... Will update when I have a new installation.
erw1
 
Posts: 6
Joined: 2018-03-29 03:30

Re: dmg2img "Error: can't open input file"

Postby erw1 » 2018-03-29 22:58

debiman wrote:- what does that virtualbox screenshot have to do with any of this???
The first screen short show you input/output on the command line and the second one the VB set up. I don't see how it could hurt or even irrelevant. Thanks for the other suggestions.
erw1
 
Posts: 6
Joined: 2018-03-29 03:30

Re: dmg2img "Error: can't open input file"

Postby erw1 » 2018-03-30 03:40

erw1 wrote: Will update when I have a new installation.


I have new installation + extension pack to to access the external device through USB 2.0 or 3.0.

I haven't tried dmg2img before and have no other dmg file at hand to test it, but I did open a pdf file just fine on the same ext. drive, which tells you read access works, and created an empty file with 'touch', which tells you write access works, all without root privileges.

Back to the original problem, with the suggested option,

Code: Select all
$dmg2img -V InstallESD.dmg osx.iso


returns the same error msg without any detail. Would appreciate troubleshooting suggestions.

Details about the input file
Calling dmg2img
erw1
 
Posts: 6
Joined: 2018-03-29 03:30

Re: dmg2img "Error: can't open input file"

Postby erw1 » 2018-03-30 04:24

PS: it turns out there exists a Windows version of dmg2img and the same command returns the same error msg.

dmg2img
erw1
 
Posts: 6
Joined: 2018-03-29 03:30

Re: dmg2img "Error: can't open input file"

Postby Hallvor » 2018-03-30 06:37

Just out of curiosity, is the result any different if you try the following syntax?

Code: Select all
dmg2img -i InstalledESD.dmg -o osx.img
Intel Core i5 3320-M CPU @ 2.60 GHz, 6 GB RAM, Intel HD 4000 graphics, 240 GB SSD, Debian Stretch (KDE)
User avatar
Hallvor
 
Posts: 798
Joined: 2009-04-16 18:35
Location: Norway

Re: dmg2img "Error: can't open input file"

Postby debiman » 2018-03-30 11:22

op failed to inform us that they're running debian in a vm, and the file in question is on soem sort of usb drive.
just one more important piece of information we had to puzzle together... :roll:

if you get the same error across OSs, it would suggest that the file is indeed unreadable.
maybe it's broken.
how did you come by it? download? did you check checksums afterwards?
User avatar
debiman
 
Posts: 2126
Joined: 2013-03-12 07:18


Return to General Questions

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable