[comp.os.minix] help with invalid partition table

carty@dteng1.enet.dec.com (Hugh Carty) (04/09/91)

System is a 80286 with 20 mb hard disk.Booted system with #2 flopppy
disk ie AT disk
and entered date and time etc as boork says.
I 'm using 1.5 minix.
Now would like to use hard disk partition and my 4 mb of RAM.
So did fdisk -h4 -s17 /dev/hd0
 came bak with three partitions.
I changed these to
/dev/hd0 20400 
/dev/hd1 6800
/dev/hd2  14828  ie I wanted this as my RAM disk
sync.and reboot
Did a mkfs /dev/ho0 10200
          mkfs /dev/hd1 3400
           mkfs /dev/hd2 7414

and readall -b badblocks and there were none found
Did /etc/setup_root /dev/hd3 7414 10200 3400 7414 0
and this gave no indication that I did something wrong
Reboot and left # 2 in diskettte drive and now hit the =
key.Result panic .... error message came and went 
almost immediately.
Rebooted machine and tried again but when now enter the = key
the system prints out at the bottom of the screen 
Invalid partition table on Winchester 0
Cannot run mkfs on any partition other than hd0
mkfs /dev/hd1  3400 now  returns 
Unrecoverable writr error on devive 3/1 block 3399
error:File system is too big for minor device
Line 1 being processed when error detected.

I cannot get rid of this error on boot up and cannot find where menu is
referenced
is sources to see what it's looking for when you type the =.

Would love to get back to beginning or have I created a problem with the
disk now.




Hugh Carty

card@masi.ibp.fr (Remy CARD) (04/09/91)

	Hugh Carty <carty%DTENG1.ENET.DEC.COM@VM1.NoDak.EDU> says :
	
> System is a 80286 with 20 mb hard disk.Booted system with #2 flopppy
> disk ie AT disk
> and entered date and time etc as boork says.
> I 'm using 1.5 minix.
> Now would like to use hard disk partition and my 4 mb of RAM.
> So did fdisk -h4 -s17 /dev/hd0
>  came bak with three partitions.
> I changed these to
> /dev/hd0 20400
> /dev/hd1 6800
> /dev/hd2  14828  ie I wanted this as my RAM disk
> sync.and reboot
> Did a mkfs /dev/ho0 10200
>           mkfs /dev/hd1 3400
>            mkfs /dev/hd2 7414
> 
> and readall -b badblocks and there were none found
> Did /etc/setup_root /dev/hd3 7414 10200 3400 7414 0
> and this gave no indication that I did something wrong
> Reboot and left # 2 in diskettte drive and now hit the =
> key.Result panic .... error message came and went
> almost immediately.
> Rebooted machine and tried again but when now enter the = key
> the system prints out at the bottom of the screen
> Invalid partition table on Winchester 0
> Cannot run mkfs on any partition other than hd0
> mkfs /dev/hd1  3400 now  returns
> Unrecoverable writr error on devive 3/1 block 3399
> error:File system is too big for minor device
> Line 1 being processed when error detected.


	/dev/hd0 is used to access all the disk, not the first partition. You
must never use it to create a file system !!!

	/dev/hd1 is the first partition of the disk.

	When you create a file system on hd0, you corrupt then partition
table at the beginning of the disk so you can't use it.

	You have to use fdisk to re-create the partition table and then
you can create your file systems on hd1, hd2, hd3.

+-----------------------------------o--------------------------------------+
| Remy CARD                         | E-mail : card@masi.ibp.fr            |
| Universite Pierre et Marie Curie  |                                      |
| Laboratoire MASI, CNRS UA 818     |                                      |
| 4 Place Jussieu                   | Tel : +33 (1) 44.27.34.23            |
| F-75252 PARIS CEDEX 05            | Fax : +33 (1) 44.27.62.86            |
| FRANCE                            | Telex : UPMCSIX 200-145 F            |
+-----------------------------------o--------------------------------------+