Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jun 2009 21:56:00 +0800 (KRAST)
From:      Eugene Grosbein <eugen@kuzbass.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        luigi@FreeBSD.org
Subject:   bin/135918: [patch] Make BootEasy compatible with NT Drive Serial Number by default
Message-ID:  <200906221356.n5MDu0sE041532@www.svzserv.kemerovo.su>
Resent-Message-ID: <200906221430.n5MEU6OM076737@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         135918
>Category:       bin
>Synopsis:       [patch] Make BootEasy compatible with NT Drive Serial Number by default
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 22 14:30:05 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Eugene Grosbein
>Release:        FreeBSD 7-STABLE
>Organization:
Svyaz-Service JSC
>Environment:
System: FreeBSD/Windows multiboot system

>Description:
	Release Notes for 7.2 say:

"The boot(8) now supports 4-byte volume ID that certain versions of Windows.
put into the MBR",

http://www.freebsd.org/releases/7.2R/relnotes-detailed.html#BOOT

	However, this support is not compiled by default and
	7.2 still destroys Serial Number that Windows Vista and later
	needs unconditionally (Windows XP needs it when its boot disk
	is not C:), so let's enable it. It works perfectly.
	
>How-To-Repeat:

	Make backup of MBR when your system has Windows Vista or later
	installed in one of slices then install BootEasy. Your Windows
	won't boot until MBR contents restored.

>Fix:

Index: src/sys/boot/i386/boot0/Makefile
===================================================================
RCS file: /home/ncvs/src/sys/boot/i386/boot0/Makefile,v
retrieving revision 1.32
diff -u -r1.32 Makefile
--- src/sys/boot/i386/boot0/Makefile	25 Apr 2005 17:41:35 -0000	1.32
+++ src/sys/boot/i386/boot0/Makefile	22 Jun 2009 13:51:23 -0000
@@ -52,6 +52,7 @@
 
 CFLAGS+=-DFLAGS=${BOOT_BOOT0_FLAGS} \
 	-DTICKS=${BOOT_BOOT0_TICKS} \
+	-DVOLUME_SERIAL \
 	-DCOMSPEED=${BOOT_BOOT0_COMCONSOLE_SPEED}
 
 LDFLAGS=-N -e start -Ttext ${BOOT_BOOT0_ORG} -Wl,-S,--oformat,binary



Eugene Grosbein
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906221356.n5MDu0sE041532>