Unable to delete files in /tmp/kdecache : Input/output error
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Unable to delete files in /tmp/kdecache : Input/output error
I upgraded my Acer travelmate laptop hdd end of last month from an 80g to a 120g using dd, this being the second time this year as it only had a 40g originally - so I had practice!
This time I started getting disk access problems------couldn't access stuff I seem to have lost my notes - they are spread around on bits of paper but I did run fsck on the drive and this is what I got....(28/09/08)
[root@max guest]# fsck /dev/hda7
fsck 1.39 (29-May-2006)
e2fsck 1.39 (29-May-2006)
/dev/hda7 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Running additional passes to resolve blocks claimed by more than one inode...
Pass 1B: Rescanning for multiply-claimed blocks
Multiply-claimed block(s) in inode 2583626: 5302845 5302827 5302828 5302827 5302
Pass 1C: Scanning directories for inodes with multiply-claimed blocks
Pass 1D: Reconciling multiply-claimed blocks
(There are 1 inodes containing multiply-claimed blocks.)
File /pierre/Movies/Arsenic And Old Lace (1944) DVDRip (SiRiUs sHaRe)/Arsenic An d Old Lace (1944) DVDRip (SiRiUs sHaRe).avi (inode #2583626, mod time Fri Aug 22 02:59:10 2008)
has 6 multiply-claimed block(s), shared with 0 file(s):
Clone multiply-claimed blocks<y>? yes
Free blocks count wrong for group #1 (23061, counted=23058).
Free blocks count wrong for group #161 (0, counted=3).
/dev/hda7: ***** FILE SYSTEM WAS MODIFIED *****
/dev/hda7: 14132/2714432 files (8.4% non-contiguous), 3057630/5419921 blocks
I stopped using ktorrent as it appeared to be the cause, it did cure the disk access problem, and I uninstalled it with synaptic and tried to remove all related files. I could not remove a chunk of files listed in /tmp/kdecache. I still have not come up with an answer to this so I thought I would post it!
[root@max /]# du -s
du: cannot access `./tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_7ef93615': Input/output error
du: cannot access `./tmp/kdecache-pierre/http/t/tracker.prq.to_announce.php_1e2649af': Input/output error
du: cannot access `./tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_72868d9a': Input/output error
du: cannot access `./tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_644a341e': Input/output error
du: cannot access `./tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_5a99c7e2': Input/output error
du: cannot access `./tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_6dbaadc7': Input/output error
du: cannot access `./tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_79ab5330': Input/output error
du: cannot access `./tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_67100bf5': Input/output error
du: cannot access `./tmp/kdecache-pierre/http/t/tracker.prq.to_announce.php_4f32a0ef': Input/output error
du: cannot access `./tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_7b6c3c03': Input/output error
du: cannot access `./tmp/kdecache-pierre/http/t/tracker.prq.to_announce.php_3f3aef48': Input/output error
du: cannot access `./tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_6d1d8e37': Input/output error
du: cannot access `./tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_7d6fe1e5': Input/output error
du: cannot access `./tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_6cb4e9d1': Input/output error
du: cannot access `./tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_6448d20b': Input/output error
du: cannot access `./tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_64a3c218': Input/output error
du: cannot access `./tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_56cadda9': Input/output error
I presume the 1.8T above is refering to capacity but this can't be right can it on an 20g drive!! being a newbie, well since the beginning of this year I feel this has something to do with inodes, as if this lot have lost theirs and thats why I can't delete them. Despite reading a lot on Linux, inodes still mystify me a bit. Sorry if this is long winded - just thought I would give you the whole story. Oh and I'm running PCLinuxOS.
First off when you copy partitions using dd you lay yourself open to all kinds of errors in the filesystem structure. I recommend that in the future you format the new partition using mkfs and then copy the files using cp. That will save you a lot of headaches in the long run.
As to your current problems in /tmp: By definition anything in /tmp is temporary. Boot a live CD and mount your / partition on a temporary directory. Then try deleting everything in your /tmp directory. Something like:
mount -t ext3 /dev/hda1 /deltmp
rm /deltmp/tmp/* -R
Take a look at the following man pages to tailor the commands to your needs:
If the rm command works without any errors then your /tmp should be OK when you reboot.