[CUWiN-Dev] Re: Fail to boot after upgrade

Lu-chuan Kung kung at uiuc.edu
Thu Nov 2 16:39:18 CST 2006


Lu-chuan Kung <kung <at> uiuc.edu> writes:

> 5 partitions:
> #        size    offset     fstype [fsize bsize cpg/sgs]
>  a:     62512        32     4.2BSD      0     0     0  # (Cyl.      0*-    
> 488*)
>  c:     62512        32     unused      0     0        # (Cyl.      0*-    
> 488*)
>  d:    125056         0     unused      0     0        # (Cyl.      0 -    
976)
>  e:     62512     62544     4.2BSD   1024  8192  7816  # (Cyl.    488*-    
976)
> [snap]
> I noticed that in the output of disklabel. The number of total sectors of 
BIOS 
> disk geometry is negative. However, the individual parameters 
(Cyl,Head,S/Cyl) 
> seem to be correct and thus I couldn't fix it in disklabel.
> 
> And by the way, why do we need disk geometry when using "/sbin/upgrade"? I 
> didn't notice anything related to disk geometry in the source of the script.
> 
> Luke
> 

Hi Dave,

I actually solved the problem by myself and want to share this information 
here. The problem is actually caused by wrong block-size and fragment-size 
setting on /dev/wd0e. I changed the line that executes newfs in /sbin/upgrade
to:
    newfs -b 4096 -f 512

and then everything works.

Luke





More information about the CU-Wireless-Dev mailing list