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
ADVERTISEMENT
Apr 8, 2011
Recently my Ubuntu system decided to crash. Sometimes the mouse freezes, sometimes I just can't open anything, and other times I can access the terminal but can't write. I can open files as read only both in my /home partition and in /var/log, but I can't write at all. Sometimes I get Bash: input/output error. I *can* "ls /proc", if that makes any difference.
I find that if I reboot, the problem goes away for a few minutes and then reoccurs. I can read/write to my other (windows) drive, although when I did a chkdsk in win7, I get a "An index entry from index $0 of file 25 is incorrect" message. Is the disk failing? Just a few bad sectors? Maybe the filesystem is corrupt? Why can I read but not write?
View 9 Replies
View Related
Nov 17, 2009
Ive installed Gaussian '03 on fedora Core 10, but I'm unable to run it. It aborts and i get the following error
Code:
Erroneous write during file extend. write -1 instead of 4096
Probably out of disk space.
Write error in NtrExt1
View 3 Replies
View Related
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
Jul 26, 2009
Its been a while (maybe too long) since I last used yum to check for updates / install anything on my server, but when I tried the other day I got the following response:
# yum list updates
Loading "installonlyn" plugin
Setting up repositories
Error: Cannot find a valid baseurl for repo: updates[code]......
Trying other mirror.Error: Cannot open/read repomd.xml file for repository: updates
A few weeks ago there were some network changes, but nothing else should have changed OS side.I have checked /etc/resolv.conf and that looks ok - ping and wget have no problem resolving hostnames.I tried setting enabled=0 in yhe .repos files - this allowed me to do a 'yum list', but 'yum list updates' returned an empty list - I am definitely not 100% up to date!
P.S. Attachment not there at the moment - getting the following error when I try to upload the zip file...Errors Returned While Uploading
Failed to open directory with write permission: /var/wwwthtml/oldwebcopy.centos.org/uploads/newbb
View 7 Replies
View Related
Jul 30, 2010
When I ls -l /etc/passwd, -rw-r--r-- 1 root root /etc/passwd When I login as myself, and rm /etc/passwd, it asks: rm: remove write-protected file '/etc/passwd'? If I say yes, will it actually delete the passwd file?
View 1 Replies
View Related
Feb 4, 2010
What are the possible problem when Windows access the file from Ubuntu got Read Only even though have a full permission to read, write and execute the file? Ubuntu to Ubuntu accessing the file there is no problem only Windows got a problem.
View 1 Replies
View Related
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
View Related
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
Jan 26, 2011
I have tried for some time to write an .img file to a USB and a SD Card to boot from to my Netbook. The .img file is from Moblin and they suggest that I use Win32 Disk Imager to write the file to my USB. Though it haven't worked for me even if i use the SD Card and other computers.
The easiest for me would be if i could write the .img file on my SD Card and i have search for some tutorials but haven't found a way to write the file.
I've read something about "dd" but don't get the "command", "code" - thingy. If any one know an easy tutorial for it would be great! Or even better would be a tip to another program/utility like the Win32 Disk Imager that works.
I Use a Windows 7. HP Pavilion Elite and a Windows XP. Compaq Mini 110
View 1 Replies
View Related
Aug 21, 2011
I have created a file newfile.txt using: touch newfile.txt Now I want to write to that file from terminal i.e whatever I will type after the $ will be written to the file this is what I want. How can I do that?
View 6 Replies
View Related
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
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
Aug 27, 2010
how can I install 10.04 over 7.04 (which is partitioned with XP) which I want to retain WITHOUT over writing XP and WITHOUT losing my data files stored in 7.04?
View 2 Replies
View Related
Sep 7, 2010
I have a file system that I can't seem to read and write to. I've tried everything I can think of.
Code:
root@xubuntu:/mnt/t1# ls -la
ls: cannot access .Trash-1000: Input/output error
[code]....
View 2 Replies
View Related
Nov 12, 2010
I am trying to change the write permissions on a file and On the screenshot you will see where i have underlined, its states i dont have owner rights to modify this file, how do I get owner Permissions when this is my installation..
View 9 Replies
View Related
Jan 18, 2011
How do i write ping output to txt file?
View 3 Replies
View Related
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
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
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
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
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
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
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
Jul 24, 2009
I have a PHP script that's attempting to open a file for writing, but I am getting an error message:
Is this a php.ini setting, or some redhat setting?
View 1 Replies
View Related
May 24, 2011
I'm writing a script/plugin for Nagios for testing a WebLogic server.. I redirect some output to a file, and then i read that file to get some data, but i can't seem to write to that file with my script :s... this is the most important code
[Code]...
* EDIT * When i execute this script through a local terminal (PuTTy), it works but when i execute it from Nagios, it doesn't work..
View 5 Replies
View Related
Feb 22, 2010
I',m executing ping, but it didn't work, in order to find the mistake in my network I would like to know how to see the errors:
Code:
18 packets transmitted, 0 received, +12 errors, 100% packet loss, time 17038ms, pipe 4 I want to see this +12 errors. Could I do that?
View 2 Replies
View Related
May 29, 2010
I'm trying to write a script to generate an html file (complete with formatting- echo "[random formatting]" >> index.html) for all the files in the given directory. So far, it works pretty well. HOWEVER, I want the listed files to be treated as links. I'm using awk to grab the part of the filename I want, but I don't know how to do this out as it fails if there is more than one file. The HTML side would look something like this:
Code:
<li><a href="2010.05.29.html">May 29</a></li>
It all works fine up to the actual number of the day- fine with one file, fails with more than one. My code is this:
Code:
# Grabs all the files and puts them in a list with anchor text "Listed"
ls | find 2*.html | sed -e 's/^/<li><a href="/'
[Code]...
View 2 Replies
View Related
Jan 5, 2011
Preferably synchronized lyrics, and would also be best if it automatically was able to fetch them from some website.
View 4 Replies
View Related
Feb 9, 2009
After the syslog facility rolls logs weekly, the Postfix cannot seem to write properly to the mail.log file. What I don't quite understand is that Postfix is still able to write the following error to the log file: ..."status=deferred (temporary failure. Command output: Can't open log file /var/log/mail.log: Permission denied )"It is my understanding that Postfix uses several different processes to write to log files, but I'm confused as to why it is able to write errors to the log but not able to write when sending/receiving mail. After I chmod 777 the mail.log file, Postfix slowly clears the queue and the mails are then received. Everything functions fine for another week, until the logs roll again.
View 6 Replies
View Related