[comp.os.minix] Making a hard disk file system..

RLM@MAINE.BITNET (Robert L Metcalf NV1A) (12/06/90)

I am trying to create 2 hard disk file systems with Minix 1.2.  The
first partition is 2MB (Dos thinks this is its D: drive) and the
second partition is 19MB (E: drive)..  I tried typing:
 
mkfs /dev/hd1 proto
 
After I did this, I got an error that said something like "file proto
not found"  (I don't remember the exact wording.)
 
What needs to be in this file?  Am I going about this the right way?
 
Thanks!
Robert
 
***********************************************************************
** Robert L. Metcalf        **  "VM/SP programmers do it virtually   **
** Computing Center (CAPS)  **   all the time"                       **
** University Of Maine      *******************************************
** Orono, ME 04469          **   EMail:  RLM@Maine.CAPS.Maine.edu    **
***********************************************************************

D98E%DDATHD21.BITNET@cunyvm.cuny.edu (Peter Lautenschlaeger) (12/27/90)

At first I must say I'm only familiar with the procedure for 1.5, so
there may be differences. BE CAREFUL !!!

> I am trying to create 2 hard disk file systems with Minix 1.2.  The
> first partition is 2MB (Dos thinks this is its D: drive) and the
> second partition is 19MB (E: drive)..  I tried typing:
>
All I say is valid for 1.5, if you don't have a fdisk under MINIX so
forget about all I say now

1. You have to set up the partition table of your harddisk using the
   the fdisk program of MINIX (not DOS).
   fdisk -hn -sm /dev/hdx
   where n is the number of heads the harddisk has
         m is the number of sectors
         x is 0 in case of the first harddisk,
              5 in case of the second.
   As far as I remember in versions less then 1.5.? partitions have to
   start with an even sector number (again be careful).
   fdisk shows you the SIZE of a partition in 512 Byte blocks !!!

2. Reboot your system, so the kernel gets the new partition table.

3. Make the filesystems using mkfs
   mkfs /dev/hdy size
   where y is the number of the partition (1-4 for the first, 6-9 for
   the second harddisk). NEVER use /dev/hd0 or /dev/hd5 this destroys
   your partition table !!!!
   size is the number of 1K blocks the filesystem will occupy.
   NOTICE fdisk gives the partition sizes in 0.5K units mkfs wants
   them in 1K units.
   If there are badblocks in an inode area, you have to vary the
   partition sizes.

4. Mount the new filesystem(s) and run
   readall -b /dev/hdy > bad.y
   to find bad spots on your disk. You must NOT use a working directory
   on the partition you test, since umount invoked by readall will fail.

5. Mark the badblocks with
   sh bad.y

This should be the procedure for 1.5. I hope it will help you

Peter