Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!munnari.oz.au!metro!dmssyd.syd.dms.CSIRO.AU!ditsydh.syd.dit.CSIRO.AU!evans From: evans@syd.dit.CSIRO.AU (Bruce.Evans) Newsgroups: comp.os.minix Subject: Re: mkfs and readall that Message-ID: <1991May28.104227.706@syd.dit.CSIRO.AU> Date: 28 May 91 10:42:27 GMT Article-I.D.: syd.1991May28.104227.706 References: <78380001@otter.hpl.hp.com> Organization: CSIRO Division of Info Tech, Sydney, Australia Lines: 52 In article <78380001@otter.hpl.hp.com> nt@otter.hpl.hp.com (Nicolas Tripon) writes: >... >partition 3 for the ram disk. fdisk reports the following : > > ---first---- ----last--- -----sectors---- >Num Sorted Active Type cyl head sec cyl head sec base last size >1 1 MINIX 0 0 2 554 3 16 1+ 37738 37738 >2 3# 0 0 0 0 0 0 0 0 0 >3 2# MINIX 555 0 1 613 3 17 37740 41751 4012 >4 4 0 0 0 0 0 0 0 0 0 > >When trying to make the file system, I get : ># mkfs /dev/hd3 2000 >Unrecoverable write error on device 3/3, block 1999. >Error : file system is too big for minor device. This is because the driver sorts :-( the partitions. hd3 is empty. Be very careful about this when you have a precious partition in the middle. >If I continue, I get : ># mkfs /dev/hd1 18000 ># /etc/mount /dev/hd1 /user ># readall -b /dev/hd1 >Controller not ready in com_out >general protection >process number -6, pc=0x0005:0x00001593 >kernel panic exception in kernel, mm or fs This looks like a disk controller problem or incompatibility but there must be a kernel bug to cause the panic. >If I go back to fdisk and modify as follows : > > ---first---- ----last--- -----sectors---- >Num Sorted Active Type cyl head sec cyl head sec base last size >1 1 MINIX 0 0 2 613 3 16 1+ 41750 41750 >2 2 0 0 0 0 0 0 0 0 0 >3 3 0 0 0 0 0 0 0 0 0 >4 4 0 0 0 0 0 0 0 0 0 > >then, upon exit, fdisk complains : >disk appears to have mis-specified number of heads or sectors ; try > fdisk -h4 -s16 /dev/hd0 >instead of > fdisk -h4 -s17 /dev/hd0 This is a minor bug in fdisk. It doesn't see any sector numbers higher than 16 (it reduced the last sector from 17 to 16 to make the size even) so it so it wonders if the default of 17 is wrong. However, it could do better by checking against the sizes instead of the maximum last sector. -- Bruce Evans evans@syd.dit.csiro.au