Solved

trying to access files

Posted on 2014-01-29
12
411 Views
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.
0
Comment
Question by:citrine
  • 5
  • 4
  • 3
12 Comments
 
LVL 6

Expert Comment

by:Aditya Arora
ID: 39820007
Hi,

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.

Aditya
0
 
LVL 18

Expert Comment

by:TobiasHolm
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).
0
 
LVL 18

Accepted Solution

by:
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
or

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#
"
0
 

Author Comment

by:citrine
ID: 39820373
TobiasHolm,

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 .
0
 
LVL 18

Expert Comment

by:TobiasHolm
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
0
 

Author Comment

by:citrine
ID: 39827273
TobiasHolm,

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?
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 18

Expert Comment

by:TobiasHolm
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

0
 

Author Comment

by:citrine
ID: 39834805
TobiasHolm,

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.
0
 
LVL 18

Expert Comment

by:TobiasHolm
ID: 39835670
ok, that's great! Thanks!
0
 
LVL 6

Expert Comment

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

Author Comment

by:citrine
ID: 39837959
Aditya,

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.
0
 
LVL 6

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.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now