Visit Our UNIX and Linux User Community


Help The Helpdesk?!!


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Help The Helpdesk?!!
# 1  
Old 09-11-2009
Help The Helpdesk?!!

-- Thanks in advance for any help --
This is a osx specific typically 10.5.x -10.6.x

I work at a mac helpdesk - and we do allot of Data Transfers/Migrations
As things go, at the helpdesk, with the world of computers; (hard drives) are not always willing to play nice.

So here is the proverbial scenario

Data Migration or Transfer from one computer to another, and from the computer we are transferring from the HD is mounting and smart status if passing... but...

1, Migration fails - due to hanging or data corruption
2. Imaging in Disk Utility fails with "Input/output error"
3. I use...

Cp -Rvf

And this generally this works for me because it will get everything off of the computer that it can read from the drive...

What I want to do, and do not know how, is three things essentially.

1. Run "Cp -Rvf" and log output to a "DT.txt file" as well
2. Run "Cp -Rvf" and log Just log (or filter) Just "Input/output errors" to and errors.txt
or Ideally
3. Run "Cp -Rvf" and log entire transfer to DT.txt and log just "Input/output errors" to errors.txt

Last edited by briandanielz; 09-13-2009 at 03:22 AM..
# 2  
Old 09-12-2009
Ad hoc (untested):

Code:
cp -rfv [blabla] 1> transfer.log 2> errors.log

# 3  
Old 09-13-2009
Thanks for your input -

That solves
1. Run "Cp -Rvf" and log output to a "DT.txt file" as well
But Now I would need to know how to filter the ".txt:" file with any thing that gives and "Output/input error"
Also this creates a new propblem - now when I run "Cp -Rvf [blah blah] 1>Transfer.txt
Terminal dose not show in verbose what is being transferred real time... It pauses and then goes to the bash prompt when its done.

Hope that makes sense?

Thanks for you help.

Last edited by briandanielz; 09-13-2009 at 03:22 AM..
# 4  
Old 09-13-2009
# 5  
Old 09-13-2009
Quote:
Originally Posted by dr.house
Great info!

But Im so lost when I try to decipher it.
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #361
Difficulty: Medium
The rmdir command remove directories, even if they are not empty.
True or False?

Featured Tech Videos