LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-16-2005, 05:04 AM   #1
conn-fused
Member
 
Registered: Jun 2004
Posts: 124

Rep: Reputation: 15
Advice sought RE Input/output errors during backup attempt


Hi all,

Recently I was trying to do my (far too infrequent) full system backup.

I was using sdvdbackup (part of the scdbackup package). Halfway through one disc, the program reported a read error accessing a file in /sys/devices/pci0000:00/0000:<something>/<something> (Sorry, I can't be more precise. I'm not at my machine right now, but I don't think the specific file matters for this question.) The backup then failed.

I tried explicitly excluding the offending file, but hit another read error on the next file in the directory.

Exitting the backup program, I tried to "cat" these files. I recieved several input/output errors. Uh-oh.

I don't know too much about this corner of the linux directory tree, and I need some advice:

Should I delete the problem files and replace them with copies from my last backup? I don't think I've installed any new PCI devices since that backup; only a new second HDD.

How likely is it that there is physical damage to my disc? How can I check?

Should a disc that has suffered some damage be replaced at once, or might there be a long interval before further damage? Can the damaged area be "cordoned off" in some way?

Is there another way to repair damage that might be better than a restore from backups?

I know that's a lot of questions. All thoughts are welcome. Being denied a successful backup has really underscored its urgency for me. Thanks for your help!
 
Old 12-16-2005, 09:58 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Do not backup /sys and /proc. And, assuming you have a modern system using udev or devfs, do not backup /dev.

/sys and /proc do not contain real files, but are actually hooks into the kernel represented as a filesystem. In other words, the kernel exports data through these dynamically.
 
Old 12-17-2005, 01:25 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,770

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
To modify the advice given by Matir, if your backup utility allows you to prune the directories (i.e. preserve the directory structure, but not the files within), then do so. You won't have to recreate the directories manually later.

I use DAR for my backups, which has excellent filtering for just that purpose. I've tried Kdar, but it seems to lack the full functionality of the command-line DAR. DAR lends itself to the creation of a script to include all that you want it to do in re backups, what to compress or not compress, what to exclude, what directory tree to preserve but not the files within, and much more.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
KNOPPIX 4.02 Input/Output Errors nomind Linux - Newbie 2 11-03-2005 10:17 PM
Input/Output errors on files Poetics Slackware 4 08-25-2003 05:57 PM
Input/Output errors on Mandrake 9.1 exalik Linux - Distributions 2 08-18-2003 04:20 PM
overcoming input/output errors heiseltc Linux - General 0 02-26-2003 12:29 PM
CHMOD and Input/Output errors lachlan Linux - General 3 12-30-2002 04:11 AM


All times are GMT -5. The time now is 02:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration