change flags for Library unhidden in external drive

I have a clients drive that is failing. I have pulled it and placed it in an external case. I can get it to mount out of the machine in the external HD case. I have restored the data except in the hidden home library which is 10 days old from the last Time Machine back up. I am aware of the change flags cmd on a boot drive. How do I make the home Library of the external drive visible or un hidden so I can retreive the mail for the10 days missing? Thanks, Steve

Posted on Jan 21, 2012 11:29 AM

Reply
21 replies

Jan 21, 2012 2:13 PM in response to Barney-15E

understood. I have tried prior to your suggestion.


chflags nohidden/Volumes/Macintosh HD/Users/username/~Library

chflags nohidden/Volumes/Macintosh HD/Users/username/Library

/Volumes/Macintosh HD/Users/username/~Library/chflags nohidden

/Volumes/Macintosh HD/Users/username/Library/chflags nohidden


I get the msg's chflags:

invalid flag: nohidden/Volumes/Macintosh and

-bash: /Volumes/Macintosh: No such file or directory

with the combinations above.

If you could create a string for me. I can fill in the appropriate user name.

Thanks, Steve

Jan 21, 2012 2:37 PM in response to Barney-15E

Oh I forgot to mention I actually had that command when I dragged the hard drive icon to the terminal after putting in thecommand. Here is the result:


chflags nohidden /Volumes/Macintosh\ HD/Users/username/Library

chflags: /Volumes/Macintosh HD/Users/username/Library: No such file or directory


And yes I am replacing username with the account users name.


A little harder than I thought his would be.


Thoughts? Have you actually done this or just textbook as I am trying?


Thanks, Steve

Jan 21, 2012 3:13 PM in response to Barney-15E

same result:

-bash: cd: /Volumes/Macintosh HD/Users/username/Library: No such file or directory


I am begining to wonder about this. In that folder there should be other pertinent folders that are not present. We may have the commands right but if there is a bad block or something at the point of this Library folder it may be fubared enough to not have a directory.


I will do a test in the next few days with an external of mine or my laptop in firewire mode with the same criteria only it will be a good known working drive. I trust your UNIX commands. :-)


I will let you know if it works or not and that will prove the theory of mine that the drive is messed up. It won't boot, shows as a start up disc but fails to boot.


Thanks for your help and confirming the correct commands. Steve

Jan 23, 2012 9:08 AM in response to macmanaspen

I know the account. I am changing thename to "username" to not post my clients name.


I tried this with a internal drive of mine with the library hidden in 10.7.2. Used this command and got this result:


chflags nohidden/Volumes/TMM\ 1TB\ HD/Users/steve/Library

usage: chflags [-fhv] [-R [-H | -L | -P]] flags file ...


Nothing changed in the above string.


And this did not make thelibrary visable.


Any ideas?


Thanks, Steve

Jan 23, 2012 9:27 AM in response to macmanaspen

Hidden, or not, you should still be able to cd to the directory, and since you're getting a "No such file or directory" error when you try to cd, then the directory does not exist.


Try to navigate with Finder by showing all hidden files with:

defaults write com.apple.finder AppleShowAllFiles 1

killall Finder

Then in Finder, ⇧⌘G, enter "/Volumes", and navigate to the user account

Jan 23, 2012 10:02 AM in response to Tony T1

this correctly shows the user name.


Still at the same point.


chflags nohidden /Volumes/Macintosh\ HD/Users/username/Library

chflags: /Volumes/Macintosh HD/Users/username/Library: No such file or directory


And again the user name has been changed to username from it's original name.


I will try the below next


Try to navigate with Finder by showing all hidden files with:

defaults write com.apple.finder AppleShowAllFiles 1

killall Finder

Then in Finder, ⇧⌘G, enter "/Volumes", and navigate to the user account

Jan 23, 2012 10:23 AM in response to macmanaspen

Thats not what I suggested. I suggested showing all hidden files so you could navigate with Finder as you appear to be having difficulty finding the directory with Terminal. (Turn off showing hidden files when done).


Either you have a typo when using Terminal, or the user Library does not exist. ("-bash: cd: /Volumes/Macintosh HD/Users/username/Library: No such file or directory")

Jan 23, 2012 10:30 AM in response to Tony T1

I have confirmined on this discussion there was not a typo and the user libray does exist as I can see it in the finder. And it came up with


cd: /Volu[tab]Mac[tab]Users[tab][tab]

( [tab][tab] will give you a list of all users in that location )


[tab]=press tab key


The user account shows no problem.


I am pretty sure the drive has a bad blcok in that area, thus the drive crash, thus the msg's of a failing drive, thus we can't get to the library any way.


I will try your suggestion. But what is the command to hide the hidden files again?


Thanks, Steve

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.

change flags for Library unhidden in external drive

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