Solved

Restore from trash osx commandline

Posted on 2010-09-12
7
763 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
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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Apple's Mac OS X has become an official member of the malware club. The Flashback Trojan has affected over half million Macs, worldwide. It is behavior that ultimately gets malware onto a person’s computer. Obsolete or out-of-date software helps…
Create a default user profile for Mac OS X 10.7/10.8 Create a user account on OS X that will be a template for every other user of that computer. I usually call it “profile” and make it an administrator account for the time being. 1. Install a…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

911 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