Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uwm.edu!wuarchive!udel!mmdf From: Peter_Van_Epp@cc.sfu.ca Newsgroups: comp.os.minix Subject: Re: warning about 1.5.0 (root partition trashed) Message-ID: <7314@nigel.udel.EDU> Date: 3 Jan 90 17:29:55 GMT Sender: mmdf@udel.EDU Lines: 50 >From: flong@SDSU.EDU >Subject: Re: warning about 1.5.0 (root partition trashed) > >In article <13505@fluke.COM> dcd@tc.fluke.COM (David Dyck) writes: >> >>Warning about 1.5.0 (maybe I did something wrong, > maybe I didn't......) >> >>I was able to extract/patch all the 1.5.0 postings >>to match the crc's except a few of the >>doc and man files, and have built new library and kernel, >>mm, fs, and tools. >> >>Unfortunately, when I booted the new kernel, the superblock of my >>hard disk partition was no longer readable to >>1.5.0 and protected mode 1.3. BE CAREFUL! >> > >I'm having a similar problem. I compiled libc.a and rebuilt the kernel >with seemingly no problems, but for some reason minix 1.5.0 says one >of my filesystems is bad, but works OK with the other partition. After >trying bios_wini among other things, somehow the superblock on my "bad" hand. I still don't know what's wrong. I'm going to try using the >old libc.a from 1.3 and see what happens. > >FL >----- >Fred J. E. Long >ARPA: flong@midgard.ucsc.edu, flong@sdsu.edu >UUCP: ...!ucsd!sdsu!flong >-- I can probably shed some light on this, if the partition that was trashed/ wouldn't mount was the first partition on your hard disk then you need to modify xt_wini.c (and probably at_wini.c too but I don't know!) to not bother checking for an old style partition (the code isn't here so I can't give the exact symbol name but send me mail if you need to know), the problem is that the code is looking for a partition type of 0x80 to indicate an old style partition needing the adjustment (that STUPID_WINI_ADJUST was supposed to set but doesn't!), I suspect that the 1.3 Fdisk sets this but since I didn't use Minix fdisk to set up my disk mine isn't. Forcing this adjustment always allowed me to mount my hard drive, when the unmodfied code reported an invalid file system. I suspect that the superblock corruption is happening when the wini driver for some reason tries to write something to the disk when it isn't correctly aligned on the partition. I intend on backing everything up and using the 1.5.0 fdisk to make a new style non adjusted partition later and then remove the patch in xt_wini.c. Hope this helps!