LinuxQuestions.org
Help answer threads with 0 replies.
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, 02:17 PM   #1
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

Rep: Reputation: 33
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, 06:32 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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, 07:57 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,990

Rep: Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448
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, 03:12 AM   #4
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

Original Poster
Rep: Reputation: 33
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 03:18 AM.
 
Old 05-06-2010, 05:10 AM   #5
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

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

Rep: Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448
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, 03:00 AM   #7
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

Original Poster
Rep: Reputation: 33
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 03:02 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 05:15 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration