LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 10-27-2008, 07:11 PM   #1
wurzeld
LQ Newbie
 
Registered: Aug 2008
Location: Cumberland, England
Distribution: PCLinuxOS
Posts: 2

Rep: Reputation: 0
Unable to delete files in /tmp/kdecache : Input/output error


Hello everyone,

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
828 5302845
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

Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 3A: Optimizing directories
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences: -5302821 -(5302835--5302836)
Fix<y>? yes

Free blocks count wrong for group #1 (23061, counted=23058).
Fix<y>? yes

Free blocks count wrong for group #161 (0, counted=3).
Fix<y>? yes

/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 http]# ls -la /tmp/kdecache-pierre/http/t/
ls: /tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_7ef93615: Input/output error
ls: /tmp/kdecache-pierre/http/t/tracker.prq.to_announce.php_1e2649af: Input/output error
ls: /tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_72868d9a: Input/output error
ls: /tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_644a341e: Input/output error
ls: /tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_5a99c7e2: Input/output error
ls: /tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_6dbaadc7: Input/output error
ls: /tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_79ab5330: Input/output error
ls: /tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_67100bf5: Input/output error
ls: /tmp/kdecache-pierre/http/t/tracker.prq.to_announce.php_4f32a0ef: Input/output error
ls: /tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_7b6c3c03: Input/output error
ls: /tmp/kdecache-pierre/http/t/tracker.prq.to_announce.php_3f3aef48: Input/output error
ls: /tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_6d1d8e37: Input/output error
ls: /tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_7d6fe1e5: Input/output error
ls: /tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_6cb4e9d1: Input/output error
ls: /tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_6448d20b: Input/output error
ls: /tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_64a3c218: Input/output error
ls: /tmp/kdecache-pierre/http/t/tpb.tracker.thepiratebay.org_announce_56cadda9: Input/output error
total 244
drwx------ 2 pierre pierre 241664 Oct 27 22:26 ./
drwx------ 19 pierre pierre 4096 Oct 19 21:15 ../

If I try to delete the directory I get

[root@max http]# rm -r t
rm: descend into directory `t'? y
rm: cannot lstat `t/tpb.tracker.thepiratebay.org_announce_7ef93615': Input/output error
rm: remove regular file `t/thelandroverchronicles.com_thelandroverpub-1001.jpg_72cb6020'? y
rm: cannot lstat `t/tracker.prq.to_announce.php_1e2649af': Input/output error
rm: cannot lstat `t/tpb.tracker.thepiratebay.org_announce_72868d9a': Input/output error
rm: cannot lstat `t/tpb.tracker.thepiratebay.org_announce_644a341e': Input/output error
rm: cannot lstat `t/tpb.tracker.thepiratebay.org_announce_5a99c7e2': Input/output error
rm: cannot lstat `t/tpb.tracker.thepiratebay.org_announce_6dbaadc7': Input/output error
rm: cannot lstat `t/tpb.tracker.thepiratebay.org_announce_79ab5330': Input/output error
rm: cannot lstat `t/tpb.tracker.thepiratebay.org_announce_67100bf5': Input/output error
rm: cannot lstat `t/tracker.prq.to_announce.php_4f32a0ef': Input/output error
rm: cannot lstat `t/tpb.tracker.thepiratebay.org_announce_7b6c3c03': Input/output error
rm: cannot lstat `t/tracker.prq.to_announce.php_3f3aef48': Input/output error
rm: cannot lstat `t/tpb.tracker.thepiratebay.org_announce_6d1d8e37': Input/output error
rm: cannot lstat `t/tpb.tracker.thepiratebay.org_announce_7d6fe1e5': Input/output error
rm: cannot lstat `t/tpb.tracker.thepiratebay.org_announce_6cb4e9d1': Input/output error
rm: cannot lstat `t/tpb.tracker.thepiratebay.org_announce_6448d20b': Input/output error
rm: cannot lstat `t/tpb.tracker.thepiratebay.org_announce_64a3c218': Input/output error
rm: cannot lstat `t/tpb.tracker.thepiratebay.org_announce_56cadda9': Input/output error

[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
1.8T .

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.
Thanks.
 
Old 10-27-2008, 07:25 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
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:

mkdir /deltmp
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:

man mkdir
man mount
man rm

If the rm command works without any errors then your /tmp should be OK when you reboot.


-------------------------
Steve Stites
 
Old 10-28-2008, 02:24 PM   #3
wurzeld
LQ Newbie
 
Registered: Aug 2008
Location: Cumberland, England
Distribution: PCLinuxOS
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks Steve,

I used dd because it seemed the logical and most straightforward thing to do and it had worked without fault before, I also have a partition containing xp that I wanted to keep.

Anyway, tried your suggestion, booted up with my live cd and followed your instruction substituting the relevant partition but it still cannot delete anything under /tmp/kdecache-pierre/http/t/

Thanks again for your quick reply
 
  


Reply

Tags
filesystem



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
rsync error: errors selecting input/output files, dirs (code 3) at main.c(323) cucolin@ Linux - Networking 4 09-17-2020 02:03 PM
cp command failing for large files - Input/Output error googs Linux - General 5 08-09-2012 12:28 PM
k3b unable to PERFORM OPC: Input/output error librano Linux - Software 2 04-18-2006 10:18 AM
Gentoo X server freezes /var/lib/init.d/ files input output error bendeg Linux - Software 0 12-01-2005 05:01 AM
:-( unable to GET EVENT: Input/output error WilliamS Slackware 1 10-12-2004 02:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:53 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration