Path: utzoo!attcan!uunet!mcsun!hp4nl!phigate!prle!prles2!cst!meulenbr From: meulenbr@cst.philips.nl (Frans Meulenbroeks) Newsgroups: comp.os.minix Subject: Re: patches to 1.5.10 (ST) Keywords: minix, atari, patches Message-ID: Date: 24 Sep 90 10:49:24 GMT References: <2768@idunno.Princeton.EDU> Sender: news@prles2.prl.philips.nl Lines: 45 tasayco@phoenix.Princeton.EDU (Maria Tasayco) writes: >Hi! I just applied the patches (1 and 2) to the atari minix 1.5.10 >and I am having some problems. I have my root device on /dev/hd3 >(which gets copied to /dev/ram on boot-up) and the kernel does >recognize this but can't read /dev/hd4, where I have the /usr stuff. >It tells me that there is an error reading block 1 of /dev/hd4. Now, I >know that the recommended names for partitions changed (although I >don't quite agree with the change) but I can't believe that is the >problem, since the kernel does find and read /dev/hd3. Any help will >be appreciated. Thanks! Yes. This problem has been brought to my attention before. Since other people might have the same problem, I'll answer it in public. Both the ST 1.1 and 1.5 documentation mention that you should not use the last sector of the hard disk due to an error in HDX.PRG. After 1.5.10 in stwini.c a sanity check which checks if the end of a partition is beyon the end of the disk is added. If this is the case the partition is not recognized. The check if around line 343 and goes: /* some sanity checks */ if ((pi[minor].pi_start + pi[minor].pi_size - 1 >= hi.hd_pi[r].pi_start + hi.hd_pi[r].pi_size) || (pi[minor].pi_start < hi.hd_pi[r].pi_start) || (pi[minor].pi_size < 0)) pi[minor].pi_flag = PI_INVALID; So if the partition end is beyond the disk end, or the partition start is before the disk start, or the partition size is < 0, the partition is not recognized. Note that the >= in the first line refuses to mount the partition if the last sector of the disk is part of the partition. General cure: re-partition your disk so the last sector is not used. If you have data which you don't want to loose you can also change the test above. Enjoy, -- Frans Meulenbroeks (meulenbr@cst.philips.nl) Centre for Software Technology ( or try: ...!mcsun!phigate!prle!cst!meulenbr)