Ubuntu :: Copy Cp Errors To A Log File?

Oct 29, 2010

I'm trying to restore a corrupt windows disk. When I try to copy the user's folder, the huge amount of errors exceeds the terminal's buffer and are lost. I would like to send cp errors to a file so that I have a list of the corrupt files. (hopefully the user will decide they are not important)

I'm presently using

Code:
sudo cp -rp (badfolder) (newfolder)

View 1 Replies


ADVERTISEMENT

General :: Copy A Read-Only File And Make The Copy Writable With A Single Cp Command?

Mar 1, 2011

How to copy a Read-Only file in Linux and make the copy writable with a single cp command in Linux (Ubuntu 10.04)? The --no-preserve and --preserve seemed to be good candidates, except that they should "and" the mode flags, while what I am looking for is something that will "or" them (add +w mode).

More details: I have to import a repository from GIT to Perforce. I want that all Perforce depot files are Read-Only (that is how Perforce was designed), while all other files that were derived/copied from depot files are writable. Currently if a Makefile tries to copy a Read-Only file then the derived file will also be Read-only. This leads to build-errors when cp tries to overwrite Read-Only file second time. Of course the --force is a workaround here but then the derived file is also Read-Only. Also I do not want to mess with "chmod" after each "cp" command - I will do that only as the last resort.

View 1 Replies View Related

Ubuntu :: Screenshoot Copy / Paste Kernel Errors - Error Occurred System Attempting To Hibernate

Aug 1, 2010

OS Ubuntu 10.04 Error occurred as system was attempting to hibernate Some error codes appeared Then I was returned to desktop environment. Question: Want to know how to copy the error to post

View 1 Replies View Related

General :: Configure File Successfully But Make File Displayed Some Errors?

Jun 29, 2010

i am having a problem concern zlib installation.i tried configure file successfully but make file displayed some errors.that usr/linux/limits.h not found.so i found that i have to install glibc-headers-devel...but there is no such a kind of package in ubuntu repository?/????/some people saying that libc6-devel is equal to them!

View 1 Replies View Related

Ubuntu :: Copy The File Via SSH \ Save The File Via SSH To This Server?

Mar 22, 2011

Now i install the Ubuntu 10.4 64 bit on Sunfire X4170I want to save the file via SSH to this server.But i m not sure how to configure.

View 4 Replies View Related

General :: Copy Certain File Types Recursively While Maintaining File Structure On Destination?

Jun 14, 2011

I have just been bothered by a fairly small issue for some time now. I am trying to search (using find -name) for some .jpg files recursively. This is a Redhat environment with bash.

I get this job done though I need to copy ALL of them and put them in a separate folder BUT I also need to keep the order intact after copying.

For e.g - If I get a JPG file under /home/usr/new/1/ then the destination also needs to be /test/old/new/1/.

At the moment, I am simply putting all files under /test/old/ and I can't somehow get the later /new/1/ folder path created under /test/old/

I understand this could well be done using while OR if else loop, though if someone can just guide me with a hint, I would be really grateful.

I will complete the rest of the steps and was asking here since I am still not comfortable with the shell/bash scripts yet and planning to be really good at it over the next couple of months.

View 1 Replies View Related

Programming :: Script To Copy Paste Text From One File To Another (overwriting Part Of The File)?

Apr 19, 2011

I have a .txt-file with ~50.000 lines of numbers, generated by a mathematics program. From this file, I need line ~ 1.100 to line ~16.000 (these lines are always the same btw, this may make the solution easier, dunno) to be copy/pasted to another file, where the lines ~500 to ~15.000 (also, every time the same) should be overwritten by the aforementioned lines...I haven't found or come up with anything that works yet, mostly I find solutions to copy everything from one file to another but I can't find something to specifically overwrite a part of a file with part of another.

View 4 Replies View Related

Debian Configuration :: Can't Copy A File From SMB Share To The Local File System

Aug 17, 2015

There is this bug in the latest version of Ubuntu, which is also Jessie, which is:

Can't copy a file from SMB share to the local file system: Software caused connection abort

The problem, apparently, is that newer versions of Samba hit servers with multiple requests at the same time, and for some reason the Zyxel and Iomega boxes can't handle this. The best solution they've come up with is to modify the smb.conf file on your server to include this setting: "max mux = 1".

Here is the reference material on this bug: [URL] ....

People who develop samba have fixed it in the latest version but neither the ubuntu nor Debian have released the fixed version of nautilus, as of yet. Here, is the reference: [URL] ....

View 0 Replies View Related

General :: Copy File Whose Source Path Is Mentioned In File To Specified Destination

Jun 3, 2010

I had a situation in which the the path of the file to be copied is written in other file and I had to copy it using shell script..I can use cp $(cat /home/robert/location.txt) /media/sda1 on normal linux shell...But I am using buildroot script where $(cat /home/robert/location.txt) evaluate to nothing..is just blank..

View 1 Replies View Related

Programming :: Copy One File Content To Multiple File

May 28, 2010

I wanted to copy one file to multiple new files. I have an idea to write a script and do the operation. But here i m looking for any particular command to do this operation.

View 1 Replies View Related

General :: When Copy File And Then Power Off / On Copied File Is Gone

Nov 16, 2010

I have an embedded linux system (Debian 'Lenny') which booting from a microSD flash. If I make a copy of a file on the flash file system (cp test test1) and then power off (disconnect power spontanious). Connects power again and the system come up, but the file test1 is gone. How can I secure that test1 is NOT disappear if the power get lost?If I copy file and then restart system with reboot command, the file test1 does not disappear.

View 7 Replies View Related

General :: Copy Some Text In One File And Paste It To Another File?

Sep 19, 2009

favor and let me know how can I copy some text in one file and paste it to another file ,when both of the files are being opened by vi text editor ?

View 7 Replies View Related

General :: Wrong File Permission / When Copy File

Oct 18, 2010

I have a C-function that create a file and then make a copy in the same directory, but somethin is wrong with permission or owners.The program starts as root user.The file creates by the program:

-rwxrwxrwx 1 root staff 199680 Oct 18 10:58 test

Ok, but after copying the permission is not the same.The file after copying (with new name) by the program:
-rw-r--r-- 1 root root 199680 Oct 18 10:58 test_copy

I want to have full permission of the copy, how to do??

View 2 Replies View Related

Ubuntu :: Write Tar Errors To A File?

Mar 10, 2010

I want to backup my Ubuntu box and I found a couple very helpful articles that describe how to use tar for backup and restore. So far so good. I've dabbled in Lin/Unix in the past, mainly on work systems, but Linux on my personal PC is new to me.

When I ran the tar command as root (su -) I noticed several errors scrolling by in the window. It's scrolling too fast to note the exact errors, but I did notice "permission denied" a few times.

Is there some way that I can capture the output of the tar command to a file so I can review it for errors and/or permission denied statements?

Can I just add some arguments to tar?

tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys /

View 2 Replies View Related

Ubuntu :: Downloaded ISO File - Errors While Installing

Mar 28, 2010

I have been having problems with Ubuntu. I just downloaded it yesterday and burned it to CD. However, when attempting to install it, I get errors. Unfortunately, I cannot recall the exact error but it stops the install. I will give further information later but wanted to ask if anyone has heard of this happening and if so, what the problems might be? I checked it with the MD5 and it appears to be a valid file, but the disk is giving me errors!

View 6 Replies View Related

Ubuntu :: "Error Splicing File: File Too Large" - Copy To A 500G USB Drive?

Sep 10, 2010

I have seen this 3 times now - it's an updated Lucid with EXT4, trying to copy to a 500G USB drive?

View 3 Replies View Related

Ubuntu :: Nautilus Copy File/directory Path Should Not Put "file://" Prefix

Dec 27, 2010

I really missed the old Ubuntu file/dir. copying feature. When I copied in nautilus file explorer and paste into a terminal or text editor, I got the exact path (eg. /home/user/abc.txt), but when coming the Ubuntu 10.04, it added some "file://" prefix to the actual path (eg. file:///home/user/abc.txt), and I always had to manually delete the "file://" prefix. I don't see clearly that we need to place "file://" in front of the actual path (maybe just in the case we want to put the path in an Internet browser?). Wish this reversed back.

View 1 Replies View Related

Ubuntu Networking :: When Click Auto Run Or Setup.exe File All Get Is Errors?

Jan 24, 2010

i am useing a D-link wireless usb adapter .i put it in to the usb port and tryed installing useing the diskand when i click auto run or setup.exe file all i get is errorsi have been trying everything posable but no luck.i dont have a sweet clue about this OS lolmy first time useing ituseing a gigabit mobo8800 gforce vid card2.9 ghz prosesser cor 2 duo650 psu newest ubuntu OS i would like to add that its not picking up any think i plug in to the usb ports

View 3 Replies View Related

Ubuntu :: Grub2 Errors: Can't Read File And Need To Load Kernel First?

May 19, 2011

I've got a Lucid system (normal Ubuntu, not any of the derivative distros) which has been throwing up the following error message this morning when trying to boot:

Code:
error: couldn't read file.
error: you need to load the kernel first.

[code]....

View 9 Replies View Related

Ubuntu :: Can't Copy File / What To Do?

Jan 30, 2010

I just got utorrent working and i need to place the file from my desktop to /usr/local/bin/ but when i do it says permission denied. So i tried sudo cp /home/username/Desktop/uTorrent /usr/local/bin/ but when i do that the terminal just shows > and just sits their and no commands work after that. Can someone tell me a alternative way or tell me why the terminal is doing this?

View 3 Replies View Related

Ubuntu :: Can't Copy A File

Oct 1, 2010

When i do cp filename destinationfolder it isn't happening. I don't get any error messages or any indication that the file copy didn't happen. But when I go to the destination folder and do ls; the file(s) not there. I tried it with sudo also and i get the same results. When I first did the copy it actually copied it somwhere but not where i wanted it. It copied it to folder name Desktop. So i tried copying it from Desktop and again same results.

View 2 Replies View Related

General :: Get Socket.h Header File / Copy Pasting This Header File In 'incl' Directory Allow To Use It In The Program?

Apr 22, 2011

where can i get socket.h header file? will copy pasting this header file in 'incl' directory allow me to use it in the my program?

View 1 Replies View Related

General :: Copy One File To Different File

Jan 18, 2011

I have a sample.log file which contains 100 lines. I need to copy last 50 lines from this file to a new text file. how can I do this.

View 4 Replies View Related

Debian Programming :: Correcting SRT File OCR Errors

Mar 2, 2012

I've generated some srt subtitle files using gocr from pgm files used in DVD's. The ocr program gets confused between lower case L and upper case i and sees them as the same thing. This results in words with capital i's in them instead of lower case L.

What is the best way to automate the correction without a spell checker? I tried sed, but it's difficult to tell between the i's that you want and those that need changing. I figured that any word that consists solely of capital i's is ok, e.g. Roman Numerals, but any capital i not at the beginning of a word needs changing.

View 13 Replies View Related

Fedora :: Getting The Following Errors On Startup - ICEauthority File ?

Jan 21, 2011

I just installed Fedora and it worked for a few reboots. I am getting the following errors on startup:

Could not update ICEauthority file. /var/lib/gdm/.ICEauthority

There is a problem with the configuration server.

View 1 Replies View Related

General :: Troubleshooting File I/O Errors And Logging?

Jun 14, 2011

I have an oracle database that is getting file i/o errors. I don't think it is the fault of oracle, but the nfs mounted filesystems. So ... to troubleshoot my next step is to see if Linux is having trouble with i/o. These are nfs mounted and there are many files located on the filesystem which is having the error. The error only occurs on one file.Does anyone know how to turn on logging for any errors received? I assume I need need logging for nfs daemon, but not sure. Please correct me if I'm wrong.

View 1 Replies View Related

Ubuntu :: How To Check Windows 7 For File System Errors Since Grub Is Blocking It

Apr 25, 2010

Dual booting Mint 8 and Windows 7. Windows is reporting a file system error. I go into properties and check for errors, but since it's in use it asks me to reboot. I do, and grub comes up. I select windows and it just takes me to windows without checking the file system.

View 1 Replies View Related

Ubuntu :: When Try And Install Any Codecs To Play The AVI Videos Or A Music File - Always Get Errors

Jun 28, 2010

I have just updated my Ubuntu to the new 10.04 LTS after coming back from holiday,

When I try and install any codecs to play the AVI videos, or a Music file I always get errors:

For the AVI video:

And the music gets the same error, does anyone know how to solve this?

View 1 Replies View Related

Ubuntu :: Permission Denied Errors When Executing A File On A Different Hard Drive?

Sep 8, 2010

I installed Ubuntu 10.10 beta yesterday and most of it is working very well. However, I ran into a problem with permissions today.I have a HDD containing my home folder and a HDD containing my data folder. The HDD with the data folder is mounted on /media/data/data_1.

Code:
jensen@jensen-desktop:~$ ll /media/data/ | grep data_1
drwxrwxrwx 8 jensen jensen 4.0K 2010-09-07 23:10 data_1/[code]....

I made sure I had set a+x rights on the file, tried executing it as root but the permission error stayed.When I copy that same file to my Desktop folder I can perfectly execute it.When it's located on the other hard drive I can't. I tried several command line scripts and they all work when I execute them from my OS hard drive,but not from another hard drive.

View 2 Replies View Related

Ubuntu :: Every Time Boot 10.04 On My Laptop The File ~/.xsession-errors Is Created ?

Jan 23, 2011

Every time I boot 10.04 on my laptop, the file ~/.xsession-errors is created.

I post here the content of my ~/.xsession-errors and the output of dmesg:

NB: I'm running 10.04 on a Dell laptop m101z.

~/.xsession-errors:

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved