Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I delete a corrupted (reiserfs) file?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
The Goose
n00b
n00b


Joined: 27 May 2003
Posts: 11

PostPosted: Fri Feb 16, 2007 12:09 am    Post subject: How do I delete a corrupted (reiserfs) file? Reply with quote

Code:
# ls -al . | egrep DSC_026
ls: cannot access DSC_0263.jpg: Permission denied
-rw-r--r--  1 johndoe users 2445494 May  5  2003 DSC_0260.jpg
-rw-r--r--  1 johndoe users 2323315 May  5  2003 DSC_0261.jpg
-rw-r--r--  1 johndoe users 2583318 May  5  2003 DSC_0262.jpg
??????????  ? ?      ?           ?            ? DSC_0263.jpg
-rw-r--r--  1 johndoe users 2512916 May  5  2003 DSC_0264.jpg
-rw-r--r--  1 johndoe users 3007485 May  5  2003 DSC_0265.jpg
-rw-r--r--  1 johndoe users 2451867 May  5  2003 DSC_0266.jpg
-rw-r--r--  1 johndoe users 2118985 May  5  2003 DSC_0267.jpg
-rw-r--r--  1 johndoe users 2180109 May  5  2003 DSC_0268.jpg
-rw-r--r--  1 johndoe users 2478363 May  5  2003 DSC_0269.jpg
# rm DSC_0263.jpg
rm: cannot remove `DSC_0263.jpg': Permission denied
# unlink DSC_0263.jpg
unlink: cannot unlink `DSC_0263.jpg': Permission denied

How do I delete this file?!??!

/var/log/messages show's disk errors:
Code:
Feb 15 19:05:29 big hdb: read_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
Feb 15 19:05:29 big hdb: read_intr: error=0x40 { UncorrectableError }, LBAsect=219285, high=0, low=219285, sector=219222
Feb 15 19:05:29 big end_request: I/O error, dev 03:41 (hdb), sector 219222


- Robert

P.S. Before you ask, yes, I do have a current backup of all my critical data on this drive.
Back to top
View user's profile Send private message
thorpe
l33t
l33t


Joined: 09 May 2005
Posts: 618
Location: Sydney, Australia.

PostPosted: Fri Feb 16, 2007 12:29 am    Post subject: Reply with quote

Silly question but have you tried?

Code:

sudo rm DSC_0263.jpg

_________________
Research before taking any advice from me. I'm still coming to grips with this myself.
Back to top
View user's profile Send private message
The Goose
n00b
n00b


Joined: 27 May 2003
Posts: 11

PostPosted: Fri Feb 16, 2007 12:31 am    Post subject: Reply with quote

In my original example I was running as root. Sorry if I wasn't clear about that.
Back to top
View user's profile Send private message
BWoso
l33t
l33t


Joined: 31 Dec 2003
Posts: 920
Location: Cleveland Ohio, USA

PostPosted: Fri Feb 16, 2007 5:15 am    Post subject: Reply with quote

Hey,
I am having the same problem here. I think what I was told to do, run fsck. . . which for reiserfs is either reiserfsck or fsck.reiserfs . . . will work. You need to mount the drive as read only to run fsck. It may be a different problem since you are getting a permission denied error, which is different than mine, but it's worth a try.
_________________
I think that the forums are the greatest thing about Gentoo, thanks to everyone that posts on them!

The best way to cheer yourself up is to try to cheer somebody else up.
-Mark Twain-
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Thu Aug 16, 2007 5:25 am    Post subject: Reply with quote

Hi,

I'm having the same problem with the ??????? ???? ??? settings on a file I can't delete.

Did you find a fix?

Thanks.

Rich.
Back to top
View user's profile Send private message
PeterF
n00b
n00b


Joined: 08 Feb 2004
Posts: 8
Location: GMT-6

PostPosted: Fri Aug 17, 2007 3:10 pm    Post subject: Reply with quote

I had a file ls reported "permission denied" that I could not delete -- fsck.reiserfs ultimately fixed it, but not before failing to complete "Pass 2".

I started with sys-fs/reiserfsprogs-3.6.19-r1. I unmounted the filesystem, ran fsck (which seemed to run resierfsck). Once completed, it found further corruption and wanted to be run with "--rebuild-tree". That took hours and hours and hours on this ~600gb filesystem with ~1500 files (mythtv). Problem is it would "hang" during "Pass 2" (starts with Pass 0), but still consume some cpu cycles. After letting it run "stuck" for 24 hours, I reluctently killed and restarted the process a few times over a few days. I figured everything was lost -- filesystem won't mount...

Reading the namesys site said a standard step was to make sure the latest reiserfsprogs was installed. So I unmasked and keyworded sys-fs/reiserfsprogs (v3.6.20-r1 at the time) and surprisingly, it completed Pass 2! File system now mounts. No obvious file loss, but still testing. I never really paid much attention, but it seems reiserfsck got renamed fsck.reiserfs.
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Fri Aug 17, 2007 3:58 pm    Post subject: Reply with quote

I have a whole load of these I can't delete:

Code:
drwxrwxrwt 22 root root 1152 Aug 17 16:57 ..
??????????  ? ?    ?       ?            ? CFLAGS
??????????  ? ?    ?       ?            ? CHOST
??????????  ? ?    ?       ?            ? CONTENTS
??????????  ? ?    ?       ?            ? COUNTER
??????????  ? ?    ?       ?            ? CXXFLAGS
??????????  ? ?    ?       ?            ? DEPEND
??????????  ? ?    ?       ?            ? DESCRIPTION
??????????  ? ?    ?       ?            ? EAPI
??????????  ? ?    ?       ?            ? FEATURES
??????????  ? ?    ?       ?            ? HOMEPAGE
??????????  ? ?    ?       ?            ? INHERITED
??????????  ? ?    ?       ?            ? IUSE
??????????  ? ?    ?       ?            ? KEYWORDS
??????????  ? ?    ?       ?            ? LICENSE
??????????  ? ?    ?       ?            ? NEEDED
??????????  ? ?    ?       ?            ? PDEPEND
??????????  ? ?    ?       ?            ? PF
??????????  ? ?    ?       ?            ? RDEPEND
??????????  ? ?    ?       ?            ? SLOT
??????????  ? ?    ?       ?            ? SRC_URI
??????????  ? ?    ?       ?            ? USE


V odd! :?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum