Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

File I cannot delete

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
george
n00b
n00b
Posts: 67
Joined: Wed Jun 12, 2002 12:57 pm
Location: UK

File I cannot delete

  • Quote

Post by george » Mon Sep 12, 2005 5:15 pm

Having had problems on a partition, I'm now left with what should be a file which has an obviously corrupted directory entry that I cannot delete - and I have to.

It should be:

Code: Select all

-rw-rw-r-- 1 root root
but it shows as:

Code: Select all

d--S------ 2 root 512
Running as root, I'm not allowed to chown, chmod, rm , rmdir or unlink it.

I've booted from CD and run fsck (a few times) but it's happy. I've tried lsattr but it shows nothing. It's an ext3 filesystem.

Can anyone offer me any other suggestions please.
Top
Dlareh
Advocate
Advocate
User avatar
Posts: 2102
Joined: Sat Aug 06, 2005 8:33 pm

  • Quote

Post by Dlareh » Mon Sep 12, 2005 5:41 pm

The best advice for these sorts of problems tends to be to rsync -ax everything somewhere else, make a new filesystem, and rsync -a everything back.
"Mr Thomas Edison has been up on the two previous nights discovering 'a bug' in his phonograph." --Pall Mall Gazette (1889)
Are we THERE yet?
Top
george
n00b
n00b
Posts: 67
Joined: Wed Jun 12, 2002 12:57 pm
Location: UK

  • Quote

Post by george » Mon Sep 12, 2005 6:49 pm

I must admit I was hoping for something a little less drastic but if I don't get any suggestions or find anything myself, I think I'll have to take the pain in the morning. :(
Top
Dlareh
Advocate
Advocate
User avatar
Posts: 2102
Joined: Sat Aug 06, 2005 8:33 pm

  • Quote

Post by Dlareh » Mon Sep 12, 2005 7:01 pm

Well at least let the initial -ax run overnight, if you have the space somewhere : )
"Mr Thomas Edison has been up on the two previous nights discovering 'a bug' in his phonograph." --Pall Mall Gazette (1889)
Are we THERE yet?
Top
toralf
Developer
Developer
User avatar
Posts: 3944
Joined: Sun Feb 01, 2004 2:58 pm
Location: Hamburg
Contact:
Contact toralf
Website

  • Quote

Post by toralf » Mon Sep 12, 2005 7:15 pm

why rsync ? "tar -cvjpf ./foo.tbz2 ./foo" or "cp -ax foo bar" should do the trick.
Top
Dlareh
Advocate
Advocate
User avatar
Posts: 2102
Joined: Sat Aug 06, 2005 8:33 pm

  • Quote

Post by Dlareh » Mon Sep 12, 2005 11:39 pm

toralf wrote:why rsync ? "tar -cvjpf ./foo.tbz2 ./foo" or "cp -ax foo bar" should do the trick.
filesize limitations of tar, filesize limitations of bzip2, unreliableness of cp, and the fact that rsync totally kicks ass
"Mr Thomas Edison has been up on the two previous nights discovering 'a bug' in his phonograph." --Pall Mall Gazette (1889)
Are we THERE yet?
Top
george
n00b
n00b
Posts: 67
Joined: Wed Jun 12, 2002 12:57 pm
Location: UK

  • Quote

Post by george » Tue Sep 13, 2005 10:52 am

I avoided recreating the partition by moving the parent directory out of the way and then restoring it in the right place. Now I've just got 72k of junk which I can ignore.

If anyone does have any suggestions for getting rid of it I would still appreciate it as part of my ongoing education. :)
Top
Post Reply

7 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic