[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: fs corruption problem
- From: fred smith <fredex fcshome stoneham ma us>
- To: redhat-list redhat com
- Subject: Re: fs corruption problem
- Date: Sun Jun 29 06:58:06 2003
On Sun, Jun 29, 2003 at 01:55:37AM -0500, Julian Opificius wrote:
> Help, please,
>
> As a result of an unclean shutdown, I have some rogue files on my 7.2
> installation, which are preventing a complete boot up.
>
> Somehow I have files called "/dev/log" and "/var/loc" in a director in
> /var/log.
> Yes, the files have the forward slashes in them, and the OS is all
> confused, thinking they're directories when they're really not. I can't
> delete them or rename them using rm, or rmdir. I've tried chattr, but that
> won't touch them either.
You should be able to do something like:
rm -f "/var/log/dev\/log"
or even write a short C program similar to this (untested) code:
---------------- foo.c --------------
#include <stdio.h>
#include <unistd.h>
main (int argc, char ** argv)
{
if (argc == 2)
{
unlink (argv[1]);
}
return 0;
}
-----------------------
compile it:
cc -o foo foo.c
run it:
./foo "/var/log/dev\/log"
>
> During the boot process, the OS sees the unclean state, which causes fsck
> to run. Fsck fails to solve the problem, which causes the boot process to
> fail, dumping me into a diagnostic shell.
>
> I'm also getting Input/Output errors on a couple of pid files.
>
> Is there a utility I can use to clean this up?
>
> Many thanks.
>
> Julian.
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request redhat com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
--
---- Fred Smith -- fredex fcshome stoneham ma us ------------------------ ----
Do you not know? Have you not heard?
The LORD is the everlasting God, the Creator of the ends of the earth.
He will not grow tired or weary, and his understanding no one can fathom.
----------------------------- Isaiah 40:28 (niv) -----------------------------
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]