LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-02-2010, 01:17 PM   #1
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 690

Rep: Reputation: 34
Fedora 12 : mount dmg-files


Hello.

I'm trying to mount a dmg-file.

I'v done the following :

--> yum install hfsutils hfsplusutils

--> modprobe hfsplus

--> mount -t hfs -o loop file.dmg /mnt

I get :
Code:
[root@jonas jonas]# mount -t hfs -o loop file.dmg /mnt
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
dmesg shows :
Code:
hfs: can't find a HFS filesystem on dev loop0.
/var/log/messages says :
Code:
May  2 20:05:00 jonas kernel: hfs: can't find a HFS filesystem on dev loop0.
Isn't the hfs-filesystem installed and loaded ?!
 
Old 05-02-2010, 05:32 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
I'm not 100% sure but I think hfs and hfsplus are two different filesystems. What happens when you try -t hfsplus instead of -t hfs? Ot better yet, omit the -t argument and let the kernel figure out the filesystem type (if it's one it recognizes, it will do so automatically).
 
Old 05-02-2010, 06:57 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
fedora dose not allow direct mounting to /
so mounting it as /mnt will not work
try
Code:
mkdir /mnt/dmg
mount -t hfs -o loop file.dmg /mnt/dmg
 
Old 05-03-2010, 02:12 AM   #4
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 690

Original Poster
Rep: Reputation: 34
Thank you for your reply. I really want to sort this out...

Code:
[root@jonas Desktop]# ls -l /mnt/
total 4
drwxr-xr-x. 2 root root 4096 2010-05-03 09:09 zumba

[root@jonas Desktop]# modprobe -l | grep hfs
kernel/fs/squashfs/squashfs.ko
kernel/fs/hfsplus/hfsplus.ko
kernel/fs/hfs/hfs.ko
kernel/net/sched/sch_hfsc.ko

[root@jonas Desktop]# mount -o loop -t hfsplus file.dmg /mnt/zumba/
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

[root@jonas Desktop]# dmesg | tail
...
hfs: unable to find HFS+ superblock
[root@jonas Desktop]# mount -o loop -t hfs file.dmg /mnt/zumba/
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

[root@jonas Desktop]# dmesg | tail
...
hfs: unable to find HFS+ superblock
hfs: can't find a HFS filesystem on dev loop0.
And a mount without filetype :
Code:
[root@jonas Desktop]# mount file.dmg /mnt/zumba/
mount: you must specify the filesystem type

Any ideas ?

Last edited by jonaskellens; 05-03-2010 at 02:18 AM.
 
Old 05-06-2010, 04:10 AM   #5
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 690

Original Poster
Rep: Reputation: 34
Is anyone else able to mount dmg-files in Fedora 12 ?
 
Old 05-06-2010, 01:24 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
a question
from this
Quote:
[root@jonas Desktop]# mount -o loop -t hfsplus file.dmg /mnt/zumba/
the "file.dmg" is ON the ROOT's desktop ?
so you DID use the fedora hack to start Gnome GUI as ROOT
-- that is very ill advised - things will NOT WORK IN THE ROOT GUI !!!!

DO NOT TRY to mount a file from the root account desktop folder ( or even your normal user's .desktop folder )

i think everyone here( including me) thought you had the file.dmg in /
 
Old 05-07-2010, 02:00 AM   #7
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 690

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by John VV View Post
a question
from this

the "file.dmg" is ON the ROOT's desktop ?
so you DID use the fedora hack to start Gnome GUI as ROOT
-- that is very ill advised - things will NOT WORK IN THE ROOT GUI !!!!

DO NOT TRY to mount a file from the root account desktop folder ( or even your normal user's .desktop folder )

i think everyone here( including me) thought you had the file.dmg in /
This file is not on root's desktop, but on my normal user's desktop :
Code:
[root@jonas Desktop]# pwd
/home/jonas/Desktop
I just placed the file their for easy access...

It makes no difference :
Code:
[root@jonas Documents]# pwd
/home/jonas/Documents
[root@jonas Documents]# mount -o loop -t hfs file.dmg /mnt/zumba/
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

[root@jonas Documents]# mount -o loop -t hfsplus file.dmg /mnt/zumba/
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:
[root@jonas Documents]# dmesg | tail
hfs: can't find a HFS filesystem on dev loop0.
hfs: unable to find HFS+ superblock
I don't think the place of the file.dmg is the problem, I think the problems lies with the HFS-filesystem.
Is this HFS-filesystem working for any Linux-user ??

Last edited by jonaskellens; 05-07-2010 at 02:02 AM.
 
  


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
Burning *.dmg files netpumber Slackware 11 09-18-2009 06:13 AM
burning *.dmg files kurrupt Linux - Software 4 05-25-2005 12:24 AM
what tha hell .dmg files?!? Y3k Linux - Newbie 1 06-04-2004 07:36 AM
can linux do anything with .dmg files? Mugatu Linux - Software 3 06-01-2004 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:46 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