Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Mar 1997 17:52:04 +0000
From:      "Riley J. McIntire" <chaos@mail.tgci.com>
To:        Kenneth Ingham <ingham@i-pi.com>
Cc:        questions@freebsd.org
Subject:   Re: Bad file descriptor in security check output
Message-ID:  <199703220203.SAA18190@train.tgci.com>

next in thread | raw e-mail | index | archive | help
I tried this:

bash# clri /dev/wd0 64456
clri: /dev/wd0: superblock magic number 0xce0038, not 0x11954.

Trying  /dev/rwd0a etc produced a device busy error.  

The directory still looks like:

bash# ls -l
ls: #064448: Bad file descriptor
total 0
cr-srwsrwT  21077 57982986    2315373696  219, -2097151869 Nov 11  1975 #064456
br-srwSrwt  27506 1845521775  1869640805  116, 1819213941 Nov  4 11:56 #064504
br-xrw-r--  25902 96561670    9742848     101, 1768161394 May 26  1970 #064513
bash#

Cheers,

Riley


> From:          Kenneth Ingham <ingham@i-pi.com>
> Subject:       Re: Bad file descriptor in security check output
> To:            chaos@tgci.com
> Date:          Fri, 21 Mar 1997 15:34:57 -0700 (MST)
> Cc:            questions@freebsd.org

> Here's a solution, but it is somewhat drastic, and should be approached
> with caution.  Please read the man page clri before doing this.
> 
> take your system to single user.
> Note the device which contains the bad files.
> cd to the lost+found dir
> do a ls -i 
> Note the inode numbers of the offending files (they should be the same
> as the numbered part of the file name).
> type:
>     clri device inode1 inode2 ...
> where device is the device containing the files, and inode1, inode2, etc
> are the various inode numbers.
> 
> run fsck on the filesystem.  Expect to have to say 'y' to a few
> questions.
> 
> Kenneth
> 
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703220203.SAA18190>