home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!uwm.edu!rpi!crdgw1!rdsunx.crd.ge.com!ariel!davidsen
- From: davidsen@ariel.crd.GE.COM (william E Davidsen)
- Newsgroups: comp.os.linux
- Subject: Re: HELP! File system problem
- Message-ID: <1992Aug19.152339.10416@crd.ge.com>
- Date: 19 Aug 92 15:23:39 GMT
- Article-I.D.: crd.1992Aug19.152339.10416
- References: <1992Aug19.050740.16584@cc.umontreal.ca> <Aug.19.03.06.08.1992.18829@athos.rutgers.edu>
- Sender: usenet@crd.ge.com (Required for NNTP)
- Reply-To: davidsen@crd.ge.com (bill davidsen)
- Organization: GE Corporate R&D Center, Schenectady NY
- Lines: 23
- Nntp-Posting-Host: ariel.crd.ge.com
-
- In article <Aug.19.03.06.08.1992.18829@athos.rutgers.edu>, hedrick@athos.rutgers.edu (Charles Hedrick) writes:
-
- | Once you're running that kernel, make yourself a utility "unlink":
- |
- | main (argc, argv)
- | int argc;
- | char **argv;
- | { if (argc > 0)
- | unlink(argv[1])
- | };
- |
- | Use that to remove the bad directory. Now run fsck. (By the way,
- | although I've done this a couple of times in the past, I haven't kept
- | copies of my old changes, so I'm giving you this without having tested
- | it. That is, I know the method works, but there could be a typo in
- | what I'm giving you.)
-
- At least one, the test you have "argc > 0" is always true. I would use
- "argc==2" since there's no logic for other than one arg.
-
- --
- bill davidsen, GE Corp. R&D Center; Box 8; Schenectady NY 12345
- I admit that when I was in school I wrote COBOL. But I didn't compile.
-