Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

dmg2img "Error: can't open input file"

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
erw1
Posts: 6
Joined: 2018-03-29 03:30

dmg2img "Error: can't open input file"

#1 Post by erw1 »

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.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

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

#2 Post by debiman »

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.

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

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

#3 Post by erw1 »

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?

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2042
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 149 times
Been thanked: 212 times

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

#4 Post by Hallvor »

Maybe try adding -V to get more verbose output. http://manpages.ubuntu.com/manpages/pre ... img.1.html
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

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

#5 Post by debiman »

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.

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

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

#6 Post by erw1 »

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"

#7 Post by erw1 »

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"

#8 Post by erw1 »

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"

#9 Post by erw1 »

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

dmg2img

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2042
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 149 times
Been thanked: 212 times

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

#10 Post by Hallvor »

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
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

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

#11 Post by debiman »

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?

bardackx
Posts: 1
Joined: 2019-02-19 21:46

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

#12 Post by bardackx »

I had the same error, it happened that I was misspelling the input file name, I wish the error message was more descriptive

Post Reply