home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / linux / 16165 < prev    next >
Encoding:
Text File  |  1992-11-09  |  2.1 KB  |  70 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!mcsun!sun4nl!fwi.uva.nl!gene.fwi.uva.nl!stolk
  3. From: stolk@fwi.uva.nl (Bram)
  4. Subject: '.' in /bin is a file *GROWL*
  5. Message-ID: <1992Nov9.185044.13436@fwi.uva.nl>
  6. Sender: news@fwi.uva.nl
  7. Nntp-Posting-Host: gene.fwi.uva.nl
  8. Organization: FWI, University of Amsterdam
  9. Date: Mon, 9 Nov 1992 18:50:44 GMT
  10. Lines: 58
  11.  
  12.  
  13. Hi all,
  14.  
  15.  
  16. When I fired up my machine today, Linux told me:
  17. 'exec rc failed'
  18.  
  19. I thought this was because last time, I switched off my computer
  20. during a long swap session (the gif was just 2 big :-) during
  21. which I grew impatient (my window manager didnt even get CPU
  22. attendance anymore).
  23.  
  24. I thought: I'll just log in and do a fsck -a
  25. But to my horror I saw I couldn't login anymore.
  26. /bin/login didnt exist anymore.
  27.  
  28. When I rebooted with a floppy as rootdisk, I could mount the
  29. troubling partition and investigate matters.
  30.  
  31. When I checked out bin, there seemed something very wrong with it.
  32. An ls in bin failed, compaining about '.'
  33. When I checked with 'ls -al .' I saw that the prot. bits were
  34. -rwxr-xr-x 
  35. Thus: the '.' entry in bin was a file, not a dir.
  36.  
  37. My first reaction was: let's remove the entire thing together, so
  38. I tried a rm --directory /mnt/bin
  39. This gave me: rm: bin: Operation not permitted.
  40. So I thought: this takes tougher measures, so:
  41. rm -rf /mnt/bin should work.
  42. This gave me very scary errors:
  43.  
  44. free_inode: bit already cleared
  45. Deleting nonexisting file (0304:17384),0
  46. free_inode: bit already cleared
  47. Unable to handle kernel paging request at address cf797404
  48. Segmentation fault
  49.  
  50. Strangly enough, there was no coredump.
  51.  
  52. I tried ignoring the /bin dir by using alternatives /sbin and /usr/bin
  53. but somehow the file /bin/login seems to be hardwired somewhere, so I
  54. could not reroute that.
  55.  
  56. When wrestling with errors like this, the most sensable thing to do is
  57. ofcourse a 'fsck -a'.
  58. But the fsck got confused as well...
  59. inode counts were exceeding limits,
  60. and fsck seemed to build up a recursive path with 'bin' in it.
  61. (something like //bin//..//bin//..//bin etc..)
  62.  
  63. Does anyone know a way out?
  64. Please drop me a line in case you may have a solution.
  65.  
  66.     Thanks in advance,
  67.  
  68.         Bram Stolk
  69.         stolk@fwi.uva.nl
  70.