From nobody@FreeBSD.org  Fri May 19 15:10:35 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E7D0D16A42A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 19 May 2006 15:10:35 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B438643D48
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 19 May 2006 15:10:35 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k4JFAZsL005350
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 19 May 2006 15:10:35 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k4JFAZrO005349;
	Fri, 19 May 2006 15:10:35 GMT
	(envelope-from nobody)
Message-Id: <200605191510.k4JFAZrO005349@www.freebsd.org>
Date: Fri, 19 May 2006 15:10:35 GMT
From: Helmut Schellong <var@schellong.biz>
To: freebsd-gnats-submit@FreeBSD.org
Subject: newfs has no option to clear the first 128 sectors
X-Send-Pr-Version: www-2.3

>Number:         97498
>Category:       bin
>Synopsis:       [request] newfs(8) has no option to clear the first 128 sectors
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-fs
>State:          suspended
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 19 15:20:16 GMT 2006
>Closed-Date:    
>Last-Modified:  Fri Sep 24 20:48:44 UTC 2010
>Originator:     Helmut Schellong
>Release:        6.1
>Organization:
private
>Environment:
FreeBSD fbsd.lokal.biz 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 08:45:34 CEST 2006
root@fbsd.lokal.biz:/usr/src/sys/i386/compile/BSD61  i386

>Description:
CF-Card 8 GB:
-------------
sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT)
    start 63, size 3666915 (1790 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 228/ head 65/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 3667041, size 12574674 (6139 Meg), flag 0
        beg: cyl 228/ head 67/ sector 1;
        end: cyl 1010/ head 254/ sector 63

Partition 2 first was FAT32.
newfs touches not the first 128 sectors.
I'm missing an option to clear this area automatically.
(When there is no bsdlabel in 2nd sector)
Because other OSes misinterpret: p1=1.75GB,FAT32  p2=2.4GB,FAT32
Correct would be: p1=1.75GB,FAT32  p2=6.0GB,unknown
I had used dd to correct, but an option would be better.
>How-To-Repeat:
newfs ...
>Fix:
Add an option.
(A OS from SCO has such an option: 1st 64KB = Zero)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->suspended 
State-Changed-By: linimon 
State-Changed-When: Sat Jun 3 21:14:56 UTC 2006 
State-Changed-Why:  
Mark suspended awaiting someone to create some patches. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=97498 
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: brucec 
Responsible-Changed-When: Fri Sep 24 20:48:25 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=97498 
>Unformatted:
