Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


Search this Thread
Old 12-10-2008, 08:04 AM   #1
LQ Newbie
Registered: Dec 2008
Distribution: Suse 11
Posts: 2

Rep: Reputation: 0
how to mount a mac drive?

hi girls!
got linux two days ago and never worked with it before. my imac´s logicboard died and now i'm working with a pc, again
my problem is that i cant reach my old data on the mac-hd, wich i build into the pc. i know that there are a lots of threads about how-to-mount-a-hfsplus and something. but my newbie-state-of-mind dont check how to getting through and mount that peace of hell.

so, can anybody help?
thank a lot
Old 12-10-2008, 08:56 AM   #2
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
According to the man-page of mount,
       -t vfstype
              The  argument following the -t is used to indicate the file sys‐
              tem type.  The file system types which are  currently  supported
              include:  adfs,  affs,  autofs,  cifs,  coda,  coherent, cramfs,
              debugfs, devpts, efs,  ext,  ext2,  ext3,  hfs,  hfsplus,  hpfs,
              iso9660,  jfs, minix, msdos, ncpfs, nfs, nfs4, ntfs, proc, qnx4,
              ramfs, reiserfs, romfs, smbfs, sysv, tmpfs,  udf,  ufs,  umsdos,
              usbfs,  vfat,  xenix,  xfs, xiafs.  Note that coherent, sysv and
              xenix are equivalent and that xenix and coherent will be removed
              at  some  point  in  the future — use sysv instead. Since kernel
              version 2.1.21 the types ext and xiafs  do  not  exist  anymore.
              Earlier,  usbfs  was  known as usbdevfs.  Note, the real list of
              all supported filesystems depends on your kernel.
you should be able to mount the hfsplus filesystem just as you would any other filesystem, provided that support for that filesystem is enabled in your kernel (either built-int or as module). Can't say what your kernel supports, but for a start you could add the Linux distribution name you use to your profile so it would be displayed in your user info in your posts (it may help answering some distribution-specific questions, and if it's in your profile, it does not need to be asked separately).

So try it the usual way; if your graphical user interface doesn't automatically mount the partition(s) on the disk, try (if the disk is indeed connected to your computer):
mount -t hfsplus /dev/sdb1 /mnt
This would try to mount the device represented by the device file /dev/sdb1 (you may need to change that to the real device file name assigned to the partition!) to the /mnt directory (provided that it exists; you should make sure it's empty or use different mount point) with filesystem type hfsplus. Actually if the filesystem is supported, you probably don't need to specify it in the command. To find out the correct device file, see what's under /dev and know, make a guess or just try..or search for what it should be on the web.

If the mount command fails, perhaps saying that the filesystem is not supported, chances are your kernel does not have the hfsplus filesystem support enabled. In a bad case you need to recompile your kernel; not a difficult task nowadays, but extra work nevertheless.

EDIT: oh, forgot to mention: very probably you need to run the mount command with root privileges or as root (regular users aren't usually allowed to mount filesystems). This means:

- either use sudo (your user password is asked, this only works if your user is allowed to use sudo)
sudo mount /dev/hdb1 /mnt
- or temporarily become root (root password is asked)
su -
mount /dev/hdb1 /mnt
- or log in as root and do it that way.

To unmount the device, if you need, simply run (again with root privileges or as root)
umount /mnt

Last edited by b0uncer; 12-10-2008 at 09:02 AM.
Old 12-10-2008, 10:02 AM   #3
LQ Newbie
Registered: Dec 2008
Distribution: Suse 11
Posts: 2

Original Poster
Rep: Reputation: 0
I use suse 11.
- "sudo mount -t hfsplus /dev/sdb1 /mnt" gives the answer "mount: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error"

- "sudo mount /dev/hdb1 /mnt" answers "mount: Gerätedatei /dev/hdb1 existiert nicht"

what do i wrong?
Old 01-24-2009, 09:07 PM   #4
LQ Newbie
Registered: Feb 2007
Location: Atlanta, GA, USA
Distribution: KnoppMyth, Ubuntu
Posts: 18

Rep: Reputation: 1
I've had problems with this as well. My problem (I think) is that I have a Journaled HFS+ drive. :-(
Old 01-25-2009, 08:57 AM   #5
Senior Member
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
To the OP - have you tried with /dev/sdb instead of /dev/sdb1? I believe Mac disks may come without the typical numbered partition structure.

To RichardBronosky:
You should be able to mount HFS+ read/write with the option '-o force', which bypasses the journalling. I am not completely familiar with the possible perils of doing this - use at your own risk! But I have been using it to read and write to an HFS+ formatted external HD, apparently without problems.

I think an alternative (if you have a working Mac) is to turn off journalling somewhere in Disk Utilities (necessary for doing some iPod tricks I think).
Old 01-25-2009, 08:42 PM   #6
Registered: Jan 2009
Posts: 100

Rep: Reputation: 17
Try running
sudo /bin/fdisk -l
to list the available devices and see what partition numbering scheme is used on the Mac disk. Also good to check the file system type. If everything else fails, try mounting /dev/sdb (without a number).


Last edited by servat78; 02-19-2009 at 12:18 PM.
Old 01-25-2009, 09:31 PM   #7
Registered: Jan 2007
Location: lexington NC.
Distribution: Ultimalinux 8.4 & Slackware 12.0.0
Posts: 82

Rep: Reputation: 16
I'm sorey but I half to ask !!!!

is it wise to have him try to mount his drive on /mnt without asking if thares eneything elce allredey mounted thare?
shouldent he first make a DIR thare then mount the new DIR with the new disk or partition on it?

I could be way of bace ......but I dont think so.
Old 01-25-2009, 10:16 PM   #8
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
Vinnywrite: Good point. Umounting would reveal what was hidden, but it may be likely that the data will be copied to another drive mounted on /mmt.

The Rover: Determine which device node it uses. The "/dev/sdb1" was an example. Is this drive assigned a different device node?
I have a SuSE distro installed on a PowerPC MAC. There were a number of initial empty partitions, on the drive, so I don't think /dev/sdb1 is the correct device node.

Look at the output of "sudo /sbin/fdisk -l" for a list of drives and partitions.
SuSE has a handy program called halmount. Entering "halmount" by itself will also return information about the drives and partitions on your system. Linux PPC installations use pdisk instead of fdisk. I don't know how fdisk will perform with a mac formatted drive, but it should be fine to provide partitioning information. You can also use "udevinfo" to provide information about the filesystem on a partition. "udevinfo -q env -n /dev/sdb5" for example.

Also, make sure you have the hfs and hfsplus kernel modules loaded. Otherwise mounting won't work if the kernel doesn't have the kernel modules needed to recognize and read the filesystem.
# load the needed filesystem kernel modules
sudo /sbin/modprobe hfs
sudo /sbin/modprobe hfsplus

# create a mount point where you'll mount the filesystem
sudo mkdir /mnt/macdrive

# discover the drives and partitions on your system
sudo /sbin/fdisk -l

# As an example, if the partition to mount is /dev/sdb5, then try mounting it:
sudo mount -t hfsplus /dev/sdb5 /mnt/macdrive


hfsplus, linux, mac, mount, os x

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 usb drive, umount and mount another drive arubin Linux - Hardware 9 01-17-2007 04:46 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 08:16 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 1 12-24-2005 05:25 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 03:15 AM
Is it possible to mount an external mac formatted firewire drive? BrianK Linux - General 1 06-03-2004 08:08 PM

All times are GMT -5. The time now is 10:11 PM.

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