Solved

Restore from trash osx commandline

Posted on 2010-09-12
7
762 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

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

21 Experts available now in Live!

Get 1:1 Help Now