Restore from trash osx commandline

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?

LVL 1
Olav00007Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
nxnwConnect With a Mentor Commented:
Sorry, typo:

/sbin/mount -wu /

0
 
et01267Commented:
What happened when you tried mv, cp -r, etc ?  
0
 
Olav00007Author Commented:
for cp
bad filedescriptor, no such file or directory, unable to copy exyened attributes

for mv
Read-only filesystem
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
nxnwCommented:
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
 
nxnwCommented:
Also, in single user boot:

/sbin/mount -wu

should mount the file system as read write
0
 
Mac2010Commented:
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
 
Olav00007Author Commented:
Actually these commands are actually shown when startup is finished.
0
All Courses

From novice to tech pro — start learning today.