Solved

Restore from trash osx commandline

Posted on 2010-09-12
7
777 Views
Last Modified: 2012-08-14
I actually deleted some files (Privateframeworks), so I can only boot to the commandline.
I can see the directory in .Trash.  Is there some command so that I can restore it
(I have tried mv, cp -r etc).

-Alternatively - how can I get to boot so I can use the finder, or make sure I have a backup of the directories in trash?

0
Comment
Question by:Olav00007
[X]
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
7 Comments
 
LVL 8

Expert Comment

by:et01267
ID: 33659277
What happened when you tried mv, cp -r, etc ?  
0
 
LVL 1

Author Comment

by:Olav00007
ID: 33659576
for cp
bad filedescriptor, no such file or directory, unable to copy exyened attributes

for mv
Read-only filesystem
0
 
LVL 12

Expert Comment

by:nxnw
ID: 33659651
You do not automatically have a mounted volume and root access when you do a single user login. I think you can boot from the installer disk, run terminal from there and then use mv or cp.
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 12

Expert Comment

by:nxnw
ID: 33659672
Also, in single user boot:

/sbin/mount -wu

should mount the file system as read write
0
 
LVL 12

Accepted Solution

by:
nxnw earned 500 total points
ID: 33659737
Sorry, typo:

/sbin/mount -wu /

0
 
LVL 8

Expert Comment

by:Mac2010
ID: 33660452
Booting from the DVD, or connect the Mac to another Mac after booting in target mode (press T on startup) make good sense to me. Then start the Terminal.

It all the commands do not give the desired result, reinstalling the system ('archive and install option', or default option on 10.6) may be the quickest solution.
0
 
LVL 1

Author Closing Comment

by:Olav00007
ID: 33675038
Actually these commands are actually shown when startup is finished.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article describes in detail how to set up the iPad in the Enterprise using iPCU aka iPhone Configuration Utility.  This could also be used for the iPhone although I have not detailed out any differences. Preparation as an iPad Administrator:…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

739 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