Advice sought RE Input/output errors during backup attempt
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.