trying to access files

Posted on 2014-01-29
Last Modified: 2014-02-05
I'm trying to get access to some files on a mac drive.
I cant mount the drive in a mac.
However it mounts in Ubuntu.

When I get to the folders I need access, I receive the following message

"The folder contents could not be displayed
You do not have the permissions necessary to view the contents of "Documents"."

Any help to access the files/folders would be appreciated.
Question by:citrine
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 3

Expert Comment

by:Aditya Arora
ID: 39820007

Mac uses a file system hfs+ or hfsplus

It doesn`t support linux file permissions. It will always mount read only, meaning you cannot copy stuff to it or from it unless you use some hacks. Try to connect mac.

LVL 18

Expert Comment

ID: 39820029
Have you used a terminal and the command 'sudo'?

Open up a terminal (CTRL+ALT+t).
Type 'sudo ls /media/YOURMACHDNAME'

(Replace YOURMACHDNAME with your media name).
LVL 18

Accepted Solution

TobiasHolm earned 500 total points
ID: 39820080
"First, make sure that you have hfsprogs installed. Example installation command:

sudo apt-get install hfsprogs
Next, mount or remount the HFS+ drive; commands need to be as follows:

sudo mount -t hfsplus -o force,rw /dev/sdx# /media/mntpoint

sudo mount -t hfsplus -o remount,force,rw /mount/point
Finally, if the drive was improperly unmounted or has otherwise become partially corrupted run fsck.hfsplus (provided here by Jayson) as such:

sudo fsck.hfsplus /dev/sdx#
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments


Author Comment

ID: 39820373

I tried:  sudo mount -t hfsplus -o force,rw /dev/sdx# /media/mntpoint

and got the following.

mount: mount point /media/mntpoint does not exist

sudo mount -t hfsplus -o remount,force,rw /mount/point

gives me:

Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted filesystems
       mount -l                 : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
       mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
       mount device             : mount device at the known place
       mount directory          : mount known device here
       mount -t type dev dir    : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
       mount --bind olddir newdir
or move a subtree:
       mount --move olddir newdir
One can change the type of mount containing the directory dir:
       mount --make-shared dir
       mount --make-slave dir
       mount --make-private dir
       mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
       mount --make-rshared dir
       mount --make-rslave dir
       mount --make-rprivate dir
       mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using  -L label  or by uuid, using  -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say  man 8 mount .
LVL 18

Expert Comment

ID: 39820523
>I tried:  sudo mount -t hfsplus -o force,rw /dev/sdx# /media/mntpoint

You must replace sdx# with a valid device (type ls /dev to list your devices). And you must replace /media/mntpoint with a valid mountpoint. First create the mountpoint by typing:

ls /media
sudo mkdir /media/mymountpoint
ls /media

Author Comment

ID: 39827273

Trying to fumble my way through.
After I plug in the USB HDD and type ls /dev  "sbd", "sdb1" and "sbd2" appears
So do I put in all three (one at a time)?

Also, after I create the mountpoint, I get:
floppy  floppy0  markabc mymountpoint

 which part do I replace  "/media/mntpoint" with?
LVL 18

Expert Comment

ID: 39828202
ok. Try this (This will list your hard drives):
sudo fdisk -l

Open in new window

Try to locate your Mac disk, see if you can find a disk that uses hfs. In the example below I've assumed you found your disk on /dev/sdb
sudo mount -t hfsplus -o force,rw /dev/sdb /media/mymountpoint

Open in new window


Author Comment

ID: 39834805

I plugged the drive back into the Mac and Abracadabra it works!
Unsure if what you said helped, but happy to give you the points.
LVL 18

Expert Comment

ID: 39835670
ok, that's great! Thanks!

Expert Comment

by:Aditya Arora
ID: 39837908
Finally what i said works. :)

Author Comment

ID: 39837959

I had tried what you suggested dozens of times before posting the question.
It wasn't till after I attempted the advice of TobiasHolm that plugging the drive back into a mac worked. So I gave the points to TobiasHolm, I hope you understand.

Expert Comment

by:Aditya Arora
ID: 39837969
Citrine, Points is no issue i am happy that you get your data back and what i advise is correct. i already tried to access mac drive in Linux system but not able to do that.

Featured Post

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

this article is a guided solution for most of the common server issues in server hardware tasks we are facing in our routine job works. the topics in the following article covered are, 1) dell hardware raidlevel (Perc) 2) adding HDD 3) how t…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question