LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-23-2017, 01:00 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Post 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.
 
Old 07-23-2017, 01:11 AM   #2
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
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.
 
Old 07-26-2017, 03:03 AM   #3
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by TheEzekielProject View Post
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 !!!
 
Old 07-27-2017, 01:27 AM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
you need the option:
Code:
$ mount -o loop 1.img /home/user/mnt
to mount a loop device (disk image).

Last edited by AwesomeMachine; 07-28-2017 at 09:05 PM.
 
Old 07-27-2017, 03:18 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
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/

Last edited by jefro; 07-27-2017 at 03:19 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount an Encrypted DMG in Ubuntu or Linux in General flouran Linux - General 3 11-09-2011 11:56 AM
How do I properly mount a DMG file on ubuntu? iBasher Linux - Newbie 4 07-30-2011 01:45 PM
Fedora 12 : mount dmg-files jonaskellens Linux - Newbie 6 05-07-2010 02:00 AM
running the apple sdk on linux a .dmg file hoosierfan24 Linux - Software 0 05-23-2009 09:17 PM
How to burn MacOS .dmg file on a Linux system AIM Systems Linux - Software 3 03-09-2009 11:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration