LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mount .dmg file in Linux. (https://www.linuxquestions.org/questions/linux-software-2/mount-dmg-file-in-linux-4175610434/)

hack3rcon 07-23-2017 01:00 AM

Mount .dmg file in Linux.
 
Hello.
I want to mount .dmg file in Linux but I got:
Code:

$ sudo mount -t hfsplus Mac\ OS\ X\ Install\ DVD.dmg /mnt/usb/
[sudo] password for jason:
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.

Code:

$ dmesg | tail
[ 3320.071912] loop: module loaded
[ 3320.167901] hfsplus: unable to find HFS+ superblock

Any idea?

Thank you.

TheEzekielProject 07-23-2017 01:11 AM

Have a look at this

You need to convert .dmg to .img then try mounting again.

Also, make sure you actually installed the hfsplus package.

hack3rcon 07-26-2017 03:03 AM

Quote:

Originally Posted by TheEzekielProject (Post 5738825)
Have a look at this

You need to convert .dmg to .img then try mounting again.

Also, make sure you actually installed the hfsplus package.

I did it:
Code:

$ dmg2img Mac\ OS\ X\ Install\ DVD.dmg 1.img

dmg2img v1.6.5 (c) vu1tur (to@vu1tur.eu.org)

Mac OS X Install DVD.dmg --> 1.img


decompressing:
opening partition 0 ...            100.00%  ok
opening partition 1 ...            100.00%  ok
opening partition 2 ...            100.00%  ok
opening partition 3 ...            100.00%  ok
opening partition 4 ...            100.00%  ok
opening partition 5 ...            100.00%  ok

Archive successfully decompressed as 1.img

but got same error when mounting .img file !!!

AwesomeMachine 07-27-2017 01:27 AM

you need the option:
Code:

$ mount -o loop 1.img /home/user/mnt
to mount a loop device (disk image).

jefro 07-27-2017 03:18 PM

More ideas.

Not sure I'd mount it on usb unless that is a directory not related to usb.

http://eastmanreference.com/how-to-w...iles-on-linux/


All times are GMT -5. The time now is 11:39 AM.