Path: utzoo!mnetor!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!mailrus!umix!nancy!eecae!driscoll From: driscoll@eecae.UUCP (Mike Driscoll) Newsgroups: comp.os.minix Subject: Re: mkfs 1.2 problem Message-ID: <7930@eecae.UUCP> Date: 3 May 88 12:41:01 GMT References: <1867@ucdavis.ucdavis.edu> Organization: Engineering, Michigan State U., E. Lansing MI Lines: 47 in article <1867@ucdavis.ucdavis.edu>, wee@iris (Chris Wee) says: > > I have tried to use mkfs in minix to construct a file system us- > ing a proto file -- it does not work for me. Is anyone aware of > any problems with mkfs? Even the examples in the text and the > example files on the master distribution do not work. > > I get an "unexpected end of file" error on line #4. It is always > line #4, no matter what file is being used. > > The command line I use is, > # mkfs /dev/at0 proto > just like it says in the MINIX book. > > Please, if anyone can help, send mail directly me. > Thanks in advance :-). > > Chris Wee wee@iris.ucdavis.edu Sorry to post, but I couldn't find a valid path to Andy. I have just had the same problem. I have a copy of the 640K PC distribution, that I want to get up and running on my 512K AT. I will need to remake the kernel at some point to use at_wini.c. As a first step I proceeded to create the AT disk set from the proto files in the proto.a archive on the tools diskette and mkfs (running under MINIX). I get precisely the same error as Chris no matter what proto file is used. Even a minimal proto file (e.g. only a root directory and an empty subdirectory) creates only the root directory before giving the error message. I then made an empty root file system using the mkfs option on the startup menu and copied the neccesary files to create a root file system of the correct size. But, as pointed out in the READ_ME file in the distribution, since mknod cannot add sizes to the special files it creates, all the files in /dev have size 0, instead of 512 (for mem, kmem, etc.), 1200 for at0, at1, and so on. Is there a fix? Thanks, Mike -- Michael A. Driscoll UUCP: ...ihnp4!msudoc!eecae!driscoll Dept. of Electrical Engineering ARPA: driscoll@eecae.ee.msu.edu (35.8.8.151) Michigan State University Office: (517) 353-5337 E. Lansing, MI, 48824