Subject: install/20252: sysinst does not align MBR parts on cylinder boundaries on i386
To: None <gnats-bugs@gnats.netbsd.org>
From: None <grant@netbsd.org>
List: netbsd-bugs
Date: 02/08/2003 18:47:27
>Number:         20252
>Category:       install
>Synopsis:       sysinst does not align MBR parts on cylinder boundaries on i386
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 07 23:48:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     grant beattie
>Release:        NetBSD 1.6M
>Organization:
>Environment:
System: NetBSD mofo 1.6M NetBSD 1.6M (MOFO) #1: Thu Jan 23 18:33:53 EST 2003 grant@mofo:/usr/src/sys/arch/i386/compile/MOFO i386
Architecture: i386
Machine: i386
>Description:
The sysinst text implies that partitions will be aligned on cylinder
boundaries if Megabytes is chosen as the unit of measure.

However, this is not always the case as this code is MD.

On i386, having MBR parts which don't start and end on cylinder
boundaries causes problems when installing non-NetBSD operating
systems on the same disk. Windows and RedHat typically get confused
and cannot create MBR partitions.

I'm send-pr'ing this so I don't forget it, the fix is easy, but as yet
untested.
>How-To-Repeat:

>Fix:
Index: md.c
===================================================================
RCS file: /cvsroot/src/distrib/utils/sysinst/arch/i386/md.c,v
retrieving revision 1.71
diff -u -r1.71 md.c
--- md.c	2003/01/20 05:29:54	1.71
+++ md.c	2003/02/08 07:46:45
@@ -708,7 +708,7 @@
 md_set_sizemultname()
 {
 
-	set_sizemultname_meg();
+	set_sizemultname_cyl();
 }
 #endif
 
>Release-Note:
>Audit-Trail:
>Unformatted: