Subject: install/8384: Unable to rewrite disk partition map in sysinst/mac68k
To: None <>
From: None <>
List: netbsd-bugs
Date: 09/12/1999 08:21:17
>Number:         8384
>Category:       install
>Synopsis:       Unable to rewrite disk partition map in sysinst/mac68k
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager (NetBSD system installation bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 12 08:20:02 1999
>Originator:     Bob Nestor
>Release:        NetBSD-1.4.1
NetBSD pluto 1.4.1 NetBSD 1.4.1 (GENERICSBC) #0: Wed Aug 11 07:03:00 CDT 1999     fredb@corwin.home:/usr/src/sys/arch/mac68k/compile/GENERICSBC mac68k

The device name used to open the raw disk for re-writing the Apple Disk
Partition Map is missing the leading "/", therefore the open fails with
an unknown device error.
Build and run sysinst/mac68k attempting to modify the disk partition

Apply the following patch to the file

--- md.c.orig	Sun Sep 12 09:56:41 1999
+++ md.c	Sun Sep 12 09:57:14 1999
@@ -639,7 +639,7 @@
     printf ("%s", msg_string (MSG_dodiskmap));
-    snprintf (devname, sizeof(devname), "dev/r%sc", diskdev);
+    snprintf (devname, sizeof(devname), "/dev/r%sc", diskdev);
      * Open the disk as a raw device