home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!mcsun!sun4nl!fwi.uva.nl!gene.fwi.uva.nl!stolk
- From: stolk@fwi.uva.nl (Bram)
- Subject: '.' in /bin is a file *GROWL*
- Message-ID: <1992Nov9.185044.13436@fwi.uva.nl>
- Sender: news@fwi.uva.nl
- Nntp-Posting-Host: gene.fwi.uva.nl
- Organization: FWI, University of Amsterdam
- Date: Mon, 9 Nov 1992 18:50:44 GMT
- Lines: 58
-
-
- Hi all,
-
-
- When I fired up my machine today, Linux told me:
- 'exec rc failed'
-
- I thought this was because last time, I switched off my computer
- during a long swap session (the gif was just 2 big :-) during
- which I grew impatient (my window manager didnt even get CPU
- attendance anymore).
-
- I thought: I'll just log in and do a fsck -a
- But to my horror I saw I couldn't login anymore.
- /bin/login didnt exist anymore.
-
- When I rebooted with a floppy as rootdisk, I could mount the
- troubling partition and investigate matters.
-
- When I checked out bin, there seemed something very wrong with it.
- An ls in bin failed, compaining about '.'
- When I checked with 'ls -al .' I saw that the prot. bits were
- -rwxr-xr-x
- Thus: the '.' entry in bin was a file, not a dir.
-
- My first reaction was: let's remove the entire thing together, so
- I tried a rm --directory /mnt/bin
- This gave me: rm: bin: Operation not permitted.
- So I thought: this takes tougher measures, so:
- rm -rf /mnt/bin should work.
- This gave me very scary errors:
-
- free_inode: bit already cleared
- Deleting nonexisting file (0304:17384),0
- free_inode: bit already cleared
- Unable to handle kernel paging request at address cf797404
- Segmentation fault
-
- Strangly enough, there was no coredump.
-
- I tried ignoring the /bin dir by using alternatives /sbin and /usr/bin
- but somehow the file /bin/login seems to be hardwired somewhere, so I
- could not reroute that.
-
- When wrestling with errors like this, the most sensable thing to do is
- ofcourse a 'fsck -a'.
- But the fsck got confused as well...
- inode counts were exceeding limits,
- and fsck seemed to build up a recursive path with 'bin' in it.
- (something like //bin//..//bin//..//bin etc..)
-
- Does anyone know a way out?
- Please drop me a line in case you may have a solution.
-
- Thanks in advance,
-
- Bram Stolk
- stolk@fwi.uva.nl
-