External hfs formated disk access denied via terminal mount command?

Howdy all;

I have a 2Tb harddisk connceted via USB toaster to my MacMini Mavericks. It was used to recuperate as much data as possible from my son's MacBook Pro (OS 10.6.8) before reformatting and reinstalling OS 10 (Disk Utility: the disk is not repairable). I used Carbon Copy Cloner to do the data recuperation.


DiskUtil list shows:

/dev/disk0

#: TYPE NAME SIZE

IDENTIFIER

0: GUID_partition_scheme *500.1 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_HFS Macintosh HD 467.2 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Basic Data BOOTCAMP 32.0 GB disk0s4

/dev/disk1

#: TYPE NAME SIZE

IDENTIFIER

0: GUID_partition_scheme *2.0 TB disk1

1: EFI EFI 314.6 MB disk1s1

2: Apple_HFS SEAGATE_** 2.0 TB disk1s2

/dev/disk2

#: TYPE NAME SIZE

IDENTIFIER

0: GUID_partition_scheme *2.0 TB disk2

1: EFI EFI 209.7 MB disk2s1

2: Apple_HFS Seagate2TSL 1000.0 GB disk2s2

3: Apple_HFS SeaGate2T 999.9 GB disk2s3


The disk in question is disk2 (Seagate2TSL and SeaGate2T). In theory, Seagate2TSL is bootable (OS 10.6).


I've tried the following sudo mounts:


sudo mount -t hfs /dev/disk2s2/Volumes/Seagate2TSL/

sudo mount -uw -t hfs /dev/disk2s2/Volumes/Seagate2TSL/

sudo mount -uw -t hfs, local, nosuid, journaled, noowners /dev/disk2s2/Volumes/Seagate2TSL/


Each time, Terminal asks for my password and then gives me the "usage:" list for the "mount" command. I dont understand what "mount" wants that I'm not giving it. Is there a syntax error or a missing parameter in this thing somewhere? I am not a real terminal expert, but I did read the "man mount" pages and I found some examples on the internet, especially here.

Is it possible to tell me what I'm doing wrong here?


If I try to open the disk in the Finder, it says I don't have permission to view the disk contents. If I diskutil mountDisk and catalog the disk (ls -la in Terminal), I get lines like these:


ls: MacBookProHDDbu: Permission denied

ls: Network: Permission denied

ls: SeaGate2T: Permission denied

ls: System: Permission denied

ls: TerminalSavedOutputDownloads.txt: Permission denied


This external HDD was formatted into 2 partitions (one bootable) using the MacBook Pro (Before it died), the original Snow Leopard install DVD and the same password as on the Mini.

TIA s99p

0down votefavorite


Mac mini, OS X Mavericks (10.9.5), MacBook Pro OS 10.6.8, exteral HDD

Posted on Mar 22, 2016 5:48 PM

Reply
8 replies

Mar 24, 2016 8:13 PM in response to s99p

sudo mount -t hfs /dev/disk2s2/Volumes/Seagate2TSL/

sudo mount -uw -t hfs /dev/disk2s2/Volumes/Seagate2TSL/

sudo mount -uw -t hfs, local, nosuid, journaled, noowners /dev/disk2s2/Volumes/Seagate2TSL/

Do you have a space between disk2s2 and /Volumes? Because what you posted above does not have a space.


The 'mount' command wants a directory to mount on top of, so does /Volumes/Seagate2TSL exist?


You could also try

sudo diskutil mount /dev/disk2s2

Or

sudo diskutil mount -mountpoint /Volumes/Seagate2TSL /dev/disk2s2

Mar 26, 2016 7:49 PM in response to s99p

sudo mount -t hfs /dev/disk2s2 /Volumes/Seagate2TSL I get 'resource busy' as answer.

This is from 'man mount'

[EBUSY] Another process currently holds a reference to dir.

That implies that something else is current using /Volumes/Seagate2TSL.


Does

sudo /bin/ls -laeO@ /Volumes/Seagate2TSL

Does this give you useful information?


Is ownership enabled on the external volume?

Select the mounted drive in the Finder, then Finder -> File -> Get Info and look at the bottom for "[_] Ignore ownership on this volume". Is it checked or unchecked? If you check it, does it change anything on the volume?

User uploaded file


NOTE: Some of the stuff I'm suggesting, is just wild guesses.

Mar 27, 2016 2:23 PM in response to BobHarris

Thanks again, Bob; when I I type sudo /bin/ls -laeO@ /Volumes/Seagate2TSL I get this list:


User uploaded file



Then wrt your earlier question, here is my list of devices:


User uploaded file


If I click on Segate2TSL or SeaGate2T (the other partition on this Volume) it tells me I don't have permission to view the contents


WRT those boxes in the Get Info window:


User uploaded file



I've tried shared folder checked and unchecked; Ignore ownership on this volume checked and unChecked;

When I change anybody's permissions to read/write, it just goes right back to Custom. Closing/leaving open the lock and trying to access the contents has no effect either.


PS: is there a course/book/online resource for someone like myself who wants to learn some command line stuff (other than just trying to figure out the manual)? TIA



PPS: Happy Easter to all! :-)

Mar 25, 2016 10:00 PM in response to BobHarris

Thanks, Bob. That was indeed an error on my part. If I type:


sudo mount -t hfs /dev/disk2s2 /Volumes/Seagate2TSL I get 'resource busy' as answer.


sudo diskutil mount /dev/disk2s2 mounts the disk but again if I ask for the directory (ls -la /Volumes/Seagate2TSL)


I get again the list of all files in the form :


ls: .: Permission denied

ls: ..: Permission denied

ls: .CFUserTextEncoding: Permission denied

ls: .DS_Store: Permission denied ..... etc.


sudo diskutil mount -mountpoint /Volumes/Seagate2TSL /dev/disk2s2 again mounts the disk and the directory gives the same Permission denied stuff.


Then I combined some stuff from an earlier post by BDAqua in post External hard drive permissions :


chown root /Volumes/Seagate2TSL

chmod 1775 /Volumes/Seagate2TSL which gives the reply:

chmod: Unable to change file mode on /Volumes/Seagate2TSL: Operation not permitted

sudo chmod etc.... gives the same thing


I think the chown root is wrong, because I'm not in root, I'm in my own session. So if I type:


sudo chown s99p /Volumes/Seagate2TSL


I get again:


chown: /Volumes/Seagate2TSL: Operation not permitted


I am the administrator of the Mini and I formatted this external disk. The session on the disk it my son's password protected original session copied from the now-dead Macbook Pro. Is it possible this is what is blocking me? I have his session name and password, but I've not been asked for them.


TIA

Mar 27, 2016 2:52 PM in response to s99p

PS: is there a course/book/online resource for someone like myself who wants to learn some command line stuff (other than just trying to figure out the manual)? TIA

Google "os x command line books"


For generic command line usage, books on 'bash' which is the name of the command line shell that reads you keyboard, finds the program/command you specified, and launch it. You can find books on 'bash' in may book stores (might even be able to find Learning OS X Unix in a bookstore), and then get a beverage in the bookstore cafe and browse to get a feel if you like how the author words things.


Or you can get job working with Unix back in the '80s and learn how much you do not know yet by the 2016's 🙂


There are also various web sites that will give you overviews of things in the Unix side of the house.


The Terminal just passes your keyboard input the shell or program/command running, and displays what it returned. In other words the Terminal is just a human input/output device. The shell gives you a prompt, read what you enter, tries to find a program in PATH that matches the name of the first word on the command line. PATH is a list of directories to search. Typical directories are /bin, /usr/bin, /usr/local/bin, $HOME/bin, but the list can be much longer, it all depends on whether you have added to the search list. Once the program is started it reads its command line and does what the arguments and options tell it. Unix shells all have a scripting language that allows you to write simple (or rather complex) scripts, putting them in a file and allowing you to invoke the script just like any other command/program. Unix shells also allow piping the output from one command into another command to be processed. chaining commands together via pipes is very common in Unix. The classic example is something like

ls | grep fred

where you are using the general regular expression processor (grep) to select output from the input based on a regular expression string 'fred' is a rather simple string to look for, but it can be much more complex.


And of course you can create scripts that are processed by other scripting tools, such as awk, perl, python, etc... (lots of scripting languages out there).

Mar 27, 2016 3:13 PM in response to s99p

It does appear that root can access the volume via 'sudo'


sudo this

sudo that

sudo etc...


should give you access to most of the data. If you have another copy (as in a backup of this data), you could experiment with changing permissions and ownership, but DO NOT start this if it is the only copy of the data, because if something goes wrong you could loose it.


If you have another drive you could create a clean file system and try moving what you really need over via 'sudo cp -R from to'


If you have Carbon Copy Cloner, it runs as root, and should be able to move data, but CCC may also transfer all the ownership and permissions which seem to be annoying you.


I do not know what else to tell you about getting control of this external disk. I've exhausted all my tricks.

Mar 14, 2017 1:32 PM in response to s99p

First off I tried several Commands and ultimately what worked was stopping fsck_hfs in activity monitor. Something so simple, a little time & effort from the Genuine Genius of Google and these forums helped so much. So to all on here helping one another I say THANK YOU!

If your just looking for a Fix, stopping the fsck_hfs fixed all my issues.

<Edited by Host>

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

External hfs formated disk access denied via terminal mount command?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.