NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/41655: "fdisk -i" on netbsd 5.x/i386 doesn't



>Number:         41655
>Category:       bin
>Synopsis:       fdisk -i doesn't initialize the mbr
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 30 21:55:00 +0000 2009
>Originator:     Christoph Badura
>Release:        NetBSD 5.0_STABLE iso-image from 20090625 autobuild
>Organization:
>Environment:
        
        
System: NetBSD 5.x
Architecture: i386
Machine: i386
>Description:
        
Trying to install a system on a previously FreeDOS formatted IDE disk, I
discovered that fdisk isn't able to update the mbr to the correct one for
NetBSD.
>How-To-Repeat:
        

The original command where I discoved the failure was:

        fdisk -uaif -2 -s 169/63/39102273 wd0

afterwards

        installboot -v /dev/rwd0a /usr/mdec/bootxx_ffsv1

complained

        installboot: Old BPB too big, use -f (may invalidated filesystem)
        installboot: Set bootstrap operation failed.

rebooting from the harddisk prints "loading FreeDOS" and then hangs.

Neither
        fdisk -fi wd0
nor
        fdisk -i wd0
initialise the MBR with the NetBSD version.

fdisk does not report an error.  Adding "-v" options doesn't produce any
output, either.

The behaviour is the same on 5.0_STABLE and on -current.

Zeroing the first 64KB of the disk causes fdisk to correctly initialize the
MBR.

Below are the first 64KB of the disk which are sufficient to reproduce the
bug.

>Fix:
        
unknown.

begin 664 start-of-disk.gz
M'XL(`/)L2DH"`^W=?6P391P'\-]U9=>Q;&LR`5$(IU',C,X-,9%-TV[9FCD'
M--VK-1G4K#<'V)'VBD$W+`Z4KE+1D&CB/_@"Z%B4F*HCT]I:E1C3N/B/&!(S
M$.6DB"]#AMO8^3QM-\:+9C$2$+Z?[>F]/,]SS]->[]F3>_;DBB/!@0^I(Q@)
M'OAX?F9X?H>U<=_WPM`;[V4,[?G2-_+\!MV[/ILMW"*J%J%_N[CUG=NIVZ+?
M%%%N]6T@GU?O+]R4[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
MX>D9+,;C=+0Z%.>BHM8['VEO5R[,JJ/D]\'(PI:7B'[-8.=^RA/EI7G"O_X.
M\CKLVBVR@U`JL!=>%NF)1`,E2S6E(HB7PI]D;YKZ';S@R?8\?=&4_$5LVSRY
MK=M]1##1VBGQ5S>WN\RQH*V:-.;<F/H>M(#7,IQ_`(!KN?_/NHTKB@N+_N/^
M?W%D)#CP(76,YBY(S&T>ZS5$E*Q0;K](<6/B]^(([UN?3)Q1CVAUC[9Y)/;K
M:E<DA\1[GXY'UCBEEC;/ZD+)NL;I\#BE-I?'Z3XG6E[3OG;M>LGA:LF9N=;M
M]'C8ZGIIM7.]I+1+BIO%M#K:7(6%A3DS<9;__N^_S>8HP^=P]??_M33T_P#G
M'P``````X-K%AT'YV.[U+#3-2.WC]PM*3`]4\]@Y@V+JSI\YE9BG3R>C^_A+
M1-/HM*;ELM5L2@ZM)@^80:G[AC1UG-7([QNFTS`KZV?0Q.@Q+V_)RUL>3];!
MD"XOG88'7H=DVCI6SWHAN2Z,$9T9%HB7S7;X[E(<[E:GXK[H.#;`)7#]EF>C
MY&.!+R>8KZ`*2JE%6WKS]9.I9=[/J2OOL6D>IC79'IR]H'F[0%/:C$O*?'D^
M4GVZC=,EVT2=WLSV:.E_0-'$L^F$B;8IK6ZN@`L#````````````````+HO_
MZ_@_IQLC&A\6*#D4)R0/#7#YF:^@NDCG;O)KAN/7#2=.\S`E&/_'^#\`````
M````````````````````````````````7%+UNBQRIN?U"D1U?%Y]`5O?M9#H
M*UMJ#K]!2H6B])36\^>Z3O4F"[TLO,U"8391>2G1@7N(CK.PY_:+YW%.SBN^
4N/$"'K1IP:S;Z?L+F&82;````0`L
`
end

>Unformatted:
                 NetBSD 5.99.14 iso-image from 20090627 autobuild
        
        


Home | Main Index | Thread Index | Old Index